aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-23 14:20:40 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-23 14:31:04 +0000
commit88316fb64f42a517b898c71a1648078a4d94fe9e (patch)
treea2e6551453c60431395d1692ffe35743b78dfce0
parentb0e00dd6326e63d15bf0c53911e035eb3c78c65c (diff)
databases/py-kyotocabinet: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
-rw-r--r--databases/py-kyotocabinet/Makefile5
-rw-r--r--databases/py-kyotocabinet/files/patch-setup.py13
2 files changed, 17 insertions, 1 deletions
diff --git a/databases/py-kyotocabinet/Makefile b/databases/py-kyotocabinet/Makefile
index 32d2693e1eac..e378df24f392 100644
--- a/databases/py-kyotocabinet/Makefile
+++ b/databases/py-kyotocabinet/Makefile
@@ -1,6 +1,7 @@
PORTNAME= kyotocabinet
PORTVERSION= 1.23
DISTVERSIONPREFIX= python-
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= https://dbmx.net/kyotocabinet/pythonpkg/ \
LOCAL/sunpoet
@@ -13,9 +14,11 @@ WWW= https://dbmx.net/kyotocabinet/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet
USES= python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
.include <bsd.port.mk>
diff --git a/databases/py-kyotocabinet/files/patch-setup.py b/databases/py-kyotocabinet/files/patch-setup.py
new file mode 100644
index 000000000000..d50a2aa8a424
--- /dev/null
+++ b/databases/py-kyotocabinet/files/patch-setup.py
@@ -0,0 +1,13 @@
+--- setup.py.orig 2010-12-16 23:41:42 UTC
++++ setup.py
+@@ -1,8 +1,8 @@ from subprocess import *
+ from distutils.core import *
+ from subprocess import *
+
+-package_name = 'Kyoto Cabinet'
+-package_version = '1.5'
++package_name = 'kyotocabinet'
++package_version = '1.23'
+ package_description = 'a straightforward implementation of DBM'
+ package_author = 'FAL Labs'
+ package_author_email = 'info@fallabs.com'