mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 12:26:27 -04:00
Changes: https://github.com/python-cffi/cffi/releases https://cffi.readthedocs.io/en/latest/whatsnew.html
34 lines
993 B
Makefile
34 lines
993 B
Makefile
PORTNAME= cffi
|
|
PORTVERSION= 1.17.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Foreign Function Interface for Python calling C code
|
|
WWW= https://cffi.readthedocs.io/en/latest/ \
|
|
https://github.com/python-cffi/cffi
|
|
|
|
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}
|
|
LIB_DEPENDS= libffi.so:devel/libffi
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=0:devel/py-pycparser@${PY_FLAVOR}
|
|
|
|
USES= compiler:c11 localbase python
|
|
USE_PYTHON= autoplist concurrent cython pep517 pytest
|
|
|
|
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
|
CFLAGS+= -Wno-shift-negative-value
|
|
.endif
|
|
|
|
post-install:
|
|
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
|
|
|
|
.include <bsd.port.post.mk>
|