ports/databases/py-psycopg-c/Makefile
Po-Chuan Hsieh 180cd7365c
Mk/Uses/python.mk: Introduce PY_TOMLI
- Convert ports to use PY_TOMLI to simplify Makefile.

The minimal version is set to 2.0.1 because it is required by multiple ports such as devel/py-poetry.
The upper bound of version is set to 3 because it is limited by devel/py-poetry.

With hat:	python
2024-07-22 00:55:40 +08:00

26 lines
785 B
Makefile

PORTNAME= psycopg-c
PORTVERSION= 3.1.20
CATEGORIES= databases python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= psycopg_c-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PostgreSQL database adapter for Python - C optimization distribution
WWW= https://www.psycopg.org/psycopg3/ \
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} \
${PY_TOMLI} \
${PYTHON_PKGNAMEPREFIX}wheel>=0.37:devel/py-wheel@${PY_FLAVOR}
USES= pgsql python
USE_PYTHON= autoplist concurrent cython pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>