aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-05 17:15:45 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-05 17:30:12 +0000
commitbc1fef11085525334a8b0068dc63007e27536e45 (patch)
tree26f3bf271b9a8adb6a3756f0818e7765f4da20ad
parent8b9e9bf4d80fe7fffb0c214fdebb46b20376e2be (diff)
downloadports-bc1fef11085525334a8b0068dc63007e27536e45.tar.gz
ports-bc1fef11085525334a8b0068dc63007e27536e45.zip
databases/py-psycopg-c: Convert to USE_PYTHON=pep517
- Update WWW and clean up pkg-descr - Bump PORTREVISION for package change
-rw-r--r--databases/py-psycopg-c/Makefile10
-rw-r--r--databases/py-psycopg-c/pkg-descr2
2 files changed, 8 insertions, 4 deletions
diff --git a/databases/py-psycopg-c/Makefile b/databases/py-psycopg-c/Makefile
index 5e8fca2b0fae..52e2fd3c404b 100644
--- a/databases/py-psycopg-c/Makefile
+++ b/databases/py-psycopg-c/Makefile
@@ -1,18 +1,24 @@
PORTNAME= psycopg-c
PORTVERSION= 3.1.8
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PostgreSQL database adapter for Python - C optimization distribution
-WWW= https://www.psycopg.org/
+WWW= https://www.psycopg.org/ \
+ https://github.com/psycopg/psycopg/tree/master/psycopg_c
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=49.2.0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.37:devel/py-wheel@${PY_FLAVOR}
+
USES= pgsql python:3.7+
-USE_PYTHON= autoplist concurrent cython distutils
+USE_PYTHON= autoplist concurrent cython pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/databases/py-psycopg-c/pkg-descr b/databases/py-psycopg-c/pkg-descr
index 0d5b1bf52d89..304f1b7fe017 100644
--- a/databases/py-psycopg-c/pkg-descr
+++ b/databases/py-psycopg-c/pkg-descr
@@ -1,5 +1,3 @@
PostgreSQL database adapter for Python - optimization package
Psycopg 3 is a modern implementation of a PostgreSQL adapter for Python.
-
-See also: https://github.com/psycopg/psycopg/tree/master/psycopg_c