d858b7cc2a
setuptools (it's used as a package locator but importlib.metadata in newer Python core or the external importlib_metadata are preferred). So drop the RDEP in that case (it's still kept for py27) and bump revisions.
50 lines
915 B
Makefile
50 lines
915 B
Makefile
COMMENT = optimising static compiler for Python and Cython
|
|
|
|
MODPY_EGG_VERSION = 0.29.32
|
|
DISTNAME = Cython-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-cython-${MODPY_EGG_VERSION}
|
|
CATEGORIES = lang
|
|
REVISION = 1
|
|
|
|
EPOCH = 0
|
|
|
|
HOMEPAGE = https://cython.org/
|
|
|
|
# Apache 2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += pthread ${MODPY_WANTLIB}
|
|
|
|
MODULES = lang/python
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
BUILD_DEPENDS = devel/py-setuptools_git${MODPY_FLAVOR}
|
|
|
|
.if ${FLAVOR:Mpython3}
|
|
TEST_DEPENDS += math/py-numpy${MODPY_FLAVOR}
|
|
.else
|
|
NO_TEST = Yes
|
|
.endif
|
|
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
TEST_TARGET = test
|
|
|
|
MAKE_ENV += PYTHON=${MODPY_BIN}
|
|
|
|
do-test:
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} TESTOPTS=-j${MAKE_JOBS} \
|
|
${MAKE_PROGRAM} ${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
|
|
|
|
post-install:
|
|
.for i in cygdb cython cythonize
|
|
mv ${PREFIX}/bin/$i{,${MODPY_BIN_SUFFIX}}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|