git: c2afa5ef0bf7 - main - japanese/py-jaconv: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Apr 2024 19:48:03 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c2afa5ef0bf7d80298d987ef0dd88fca92a4ec80
commit c2afa5ef0bf7d80298d987ef0dd88fca92a4ec80
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-10 19:47:35 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-10 19:47:35 +0000
japanese/py-jaconv: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
---
japanese/py-jaconv/Makefile | 6 +++++-
japanese/py-jaconv/files/patch-setup.py | 11 +++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/japanese/py-jaconv/Makefile b/japanese/py-jaconv/Makefile
index d54d511c6a91..99d1994c6557 100644
--- a/japanese/py-jaconv/Makefile
+++ b/japanese/py-jaconv/Makefile
@@ -1,5 +1,6 @@
PORTNAME= jaconv
PORTVERSION= 0.3.4
+PORTREVISION= 1
CATEGORIES= japanese python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,8 +13,11 @@ WWW= https://ikegami-yukino.github.io/jaconv/jaconv.html \
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
USES= python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
diff --git a/japanese/py-jaconv/files/patch-setup.py b/japanese/py-jaconv/files/patch-setup.py
new file mode 100644
index 000000000000..e5d1463d06c8
--- /dev/null
+++ b/japanese/py-jaconv/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2023-02-17 17:05:21 UTC
++++ setup.py
+@@ -39,7 +39,7 @@ setup(name='jaconv',
+ 'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: 3.11', 'Topic :: Text Processing'
+ ],
+- data_files=[('', ['README.rst', 'CHANGES.rst'])],
++ package_data={'': ['README.rst', 'CHANGES.rst']},
+ long_description='%s\n\n%s' %
+ (open('README.rst', encoding='utf8').read(),
+ open('CHANGES.rst', encoding='utf8').read()),