diff --git a/devel/py-setuptools-gettext/Makefile b/devel/py-setuptools-gettext/Makefile index 4566a04236b4..e94484f73d9d 100644 --- a/devel/py-setuptools-gettext/Makefile +++ b/devel/py-setuptools-gettext/Makefile @@ -1,20 +1,23 @@ PORTNAME= setuptools-gettext -PORTVERSION= 0.1.3 -PORTREVISION= 1 +DISTVERSION= 0.1.18 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= setuptools_gettext-${DISTVERSION} -MAINTAINER= fullermd@over-yonder.net +MAINTAINER= eduardo@FreeBSD.org COMMENT= Setuptools plugin for gettext WWW= https://github.com/breezy-team/setuptools-gettext LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= python -USE_PYTHON= autoplist concurrent distutils +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= gettext-tools python +USE_PYTHON= autoplist concurrent pep517 pytest NO_ARCH= yes .include diff --git a/devel/py-setuptools-gettext/distinfo b/devel/py-setuptools-gettext/distinfo index ee198209683f..609e3e6162ee 100644 --- a/devel/py-setuptools-gettext/distinfo +++ b/devel/py-setuptools-gettext/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1679867854 -SHA256 (setuptools-gettext-0.1.3.tar.gz) = 1a76c6e73d2c4f5f72b4def0e539c268b72b0856f473c1ddcb279a0885f4636c -SIZE (setuptools-gettext-0.1.3.tar.gz) = 10654 +TIMESTAMP = 1786559784 +SHA256 (setuptools_gettext-0.1.18.tar.gz) = c92b0ae486def502686cd944f16559819e42f8dc0b9d683cf62e7415397f2b35 +SIZE (setuptools_gettext-0.1.18.tar.gz) = 20769 diff --git a/devel/py-setuptools-gettext/files/patch-setuptools__gettext_____init____.py b/devel/py-setuptools-gettext/files/patch-setuptools__gettext_____init____.py new file mode 100644 index 000000000000..964cc639c586 --- /dev/null +++ b/devel/py-setuptools-gettext/files/patch-setuptools__gettext_____init____.py @@ -0,0 +1,16 @@ +Fix import failure with setuptools < 69.0 (setuptools.modified) + +--- setuptools_gettext/__init__.py.orig 2026-08-12 19:21:26 UTC ++++ setuptools_gettext/__init__.py +@@ -28,7 +28,10 @@ from setuptools.errors import OptionError + from setuptools import Command + from setuptools.dist import Distribution + from setuptools.errors import OptionError +-from setuptools.modified import newer ++try: ++ from setuptools.modified import newer ++except ImportError: # setuptools < 69.0 ++ from setuptools._distutils.dep_util import newer + + from .catalog import ( + LC_MESSAGES,