2018-04-25 09:34:53 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2018/04/25 09:34:53 juanfra Exp $
|
2011-06-29 08:27:26 +00:00
|
|
|
|
2017-08-01 20:44:18 +00:00
|
|
|
COMMENT = optimising static compiler for Python and Cython
|
2011-06-29 08:27:26 +00:00
|
|
|
|
2018-04-25 09:34:53 +00:00
|
|
|
MODPY_EGG_VERSION = 0.28.2
|
2011-06-29 08:27:26 +00:00
|
|
|
DISTNAME = Cython-${MODPY_EGG_VERSION}
|
2017-09-01 18:08:07 +00:00
|
|
|
PKGNAME = py-cython-${MODPY_EGG_VERSION}
|
2011-06-29 08:27:26 +00:00
|
|
|
CATEGORIES = lang
|
|
|
|
|
|
|
|
HOMEPAGE = http://www.cython.org/
|
|
|
|
MASTER_SITES = ${HOMEPAGE}release/ \
|
|
|
|
${MASTER_SITE_PYPI:=C/Cython/}
|
|
|
|
|
2017-04-23 23:11:49 +00:00
|
|
|
MAINTAINER = Juan Francisco Cantero Hurtado <juanfra@openbsd.org>
|
|
|
|
|
2011-06-29 08:27:26 +00:00
|
|
|
# Apache 2
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2017-04-24 21:00:27 +00:00
|
|
|
WANTLIB += pthread ${MODPY_WANTLIB}
|
2011-06-29 08:27:26 +00:00
|
|
|
|
2012-08-23 19:19:16 +00:00
|
|
|
MODULES = lang/python
|
2016-11-05 10:29:38 +00:00
|
|
|
MODPY_PI = Yes
|
2015-12-25 02:18:09 +00:00
|
|
|
MODPY_SETUPTOOLS = Yes
|
2018-03-11 00:18:12 +00:00
|
|
|
BUILD_DEPENDS = devel/py-setuptools_git${MODPY_FLAVOR}
|
2011-06-29 08:27:26 +00:00
|
|
|
|
2017-09-01 18:08:07 +00:00
|
|
|
FLAVORS = python3
|
|
|
|
FLAVOR ?=
|
2017-08-30 22:43:54 +00:00
|
|
|
|
2017-04-24 21:00:27 +00:00
|
|
|
TEST_TARGET = test
|
2011-07-01 12:41:23 +00:00
|
|
|
|
|
|
|
MAKE_ENV += PYTHON=${MODPY_BIN}
|
|
|
|
|
2013-03-11 11:20:26 +00:00
|
|
|
do-test:
|
2011-06-29 08:27:26 +00:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
2017-08-01 20:44:18 +00:00
|
|
|
${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
|
2011-06-29 08:27:26 +00:00
|
|
|
|
2017-09-01 18:08:07 +00:00
|
|
|
post-install:
|
|
|
|
.for i in cygdb cython cythonize
|
|
|
|
mv ${PREFIX}/bin/$i{,${MODPY_BIN_SUFFIX}}
|
|
|
|
.endfor
|
|
|
|
|
2011-06-29 08:27:26 +00:00
|
|
|
.include <bsd.port.mk>
|