Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2026 23:28:51 +0000
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a23e72e46d45 - main - misc/iso-codes: Use upstream release archive and improve port
Message-ID:  <695eec33.27320.2a0a126b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a23e72e46d454e84ef1d5781faacc393c2e28767

commit a23e72e46d454e84ef1d5781faacc393c2e28767
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2026-01-07 22:23:43 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2026-01-07 23:27:30 +0000

    misc/iso-codes: Use upstream release archive and improve port
    
    * Use release release archive as recommended by Porters Handbook
    * Add USES= shebangfix
    * Replace calls to python3 with PYTHON_CMD variable
    * Style Makefile to follow Porters Handbook more closely
    
    PR:             291749
    Approved by:    maintainer timeout, 3+ weeks
---
 misc/iso-codes/Makefile | 21 +++++++++++++--------
 misc/iso-codes/distinfo |  6 +++---
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/misc/iso-codes/Makefile b/misc/iso-codes/Makefile
index 631a82618ccb..9d419f142957 100644
--- a/misc/iso-codes/Makefile
+++ b/misc/iso-codes/Makefile
@@ -1,7 +1,8 @@
 PORTNAME=	iso-codes
-PORTVERSION=	4.19.0
-DISTVERSIONPREFIX=	v
+DISTVERSION=	4.19.0
 CATEGORIES=	misc
+MASTER_SITES=	DEBIAN_POOL
+DISTNAME=	${PORTNAME}_${DISTVERSION}.orig
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Lists of ISO standards, e.g. country, language, language scripts and currency names
@@ -10,14 +11,18 @@ WWW=		https://salsa.debian.org/iso-codes-team/iso-codes
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		gettext-tools gmake python:build tar:bz2
+USES=		gettext-tools gmake python:build shebangfix tar:xz
+SHEBANG_FILES=	scripts/*.py
 
-BINARY_ALIAS=	python3=${PYTHON_VERSION}
-GNU_CONFIGURE=	yes
 NO_ARCH=	yes
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
+
+GNU_CONFIGURE=	yes
 
-USE_GITLAB=	yes
-GL_SITE=	https://salsa.debian.org
-GL_ACCOUNT=	iso-codes-team
+post-patch:
+	@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g' \
+	    ${PATCH_WRKSRC}/*/Makefile.in
+	@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g' \
+	   ${PATCH_WRKSRC}/common.mk
 
 .include <bsd.port.mk>
diff --git a/misc/iso-codes/distinfo b/misc/iso-codes/distinfo
index 2847d06ffa97..b7664b932dfe 100644
--- a/misc/iso-codes/distinfo
+++ b/misc/iso-codes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1765895856
-SHA256 (iso-codes-v4.19.0.tar.bz2) = fbb26e873f360badc72234fb34848cf9c5eff58c1506ebc7a1ccdf5a70bcb197
-SIZE (iso-codes-v4.19.0.tar.bz2) = 9907799
+TIMESTAMP = 1765927180
+SHA256 (iso-codes_4.19.0.orig.tar.xz) = 3f74176b82f03294d9043ee24596d2b91e97e50c2c26124236aa7a6214ab7c06
+SIZE (iso-codes_4.19.0.orig.tar.xz) = 4576848


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?695eec33.27320.2a0a126b>