pkgsrc/devel/py-cython/Makefile
leot ad5ebd63f2 Fix MASTER_SITES (no longer here, switch to MASTER_SITE_PYPI)
Thanks to Bernhard Riedel for noticing it!
2016-08-15 00:07:28 +00:00

38 lines
993 B
Makefile

# $NetBSD: Makefile,v 1.33 2016/08/15 00:07:28 leot Exp $
DISTNAME= Cython-0.24
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Cy/cy/}
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cython/}
MAINTAINER= jihbed.research@gmail.com
HOMEPAGE= http://cython.org/
COMMENT= C-Extensions for Python
LICENSE= apache-1.1
USE_LANGUAGES= c
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
PLIST_VARS= cygdb
REPLACE_PYTHON+= Cython/Build/Cythonize.py
REPLACE_PYTHON+= Cython/Debugger/Cygdb.py
REPLACE_PYTHON+= Cython/Debugger/libpython.py
REPLACE_PYTHON+= cython.py
# for test only
#USE_LANGUAGES+= c++
do-test:
(cd ${WRKSRC} && ${PYTHONBIN} runtests.py)
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} cython cython${PYVERSSUFFIX} && \
${MV} cythonize cythonize${PYVERSSUFFIX} && \
${MV} cygdb cygdb${PYVERSSUFFIX}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
# for test only
#.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"