# Created by: William Grzybowski # $FreeBSD: head/devel/py-cffi/Makefile 483807 2018-11-02 13:32:34Z rene $ PORTNAME= cffi PORTVERSION= 1.15.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= wg@FreeBSD.org COMMENT= Foreign Function Interface for Python calling C code LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libffi.so:devel/libffi RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:devel/py-pycparser TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest # Actually 2.6-2.7,3.2-3.5 USES= localbase python compiler:gcc-c++11-lib USE_PYTHON= autoplist distutils .include .if ${COMPILER_TYPE:Mclang} CFLAGS+= -Wno-shift-negative-value .endif post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_cffi_backend${PYTHON_EXT_SUFFIX}.so do-test: @(cd ${TEST_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ ${PYDISTUTILS_SETUP} build_ext -i) @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -rs) .include