if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
39 lines
991 B
Makefile
39 lines
991 B
Makefile
# $OpenBSD: Makefile,v 1.21 2021/02/23 19:39:20 sthen Exp $
|
|
|
|
COMMENT= Python-alike language for writing Python extension modules
|
|
|
|
MODPY_EGG_VERSION= 0.9.9
|
|
DISTNAME= Pyrex-${MODPY_EGG_VERSION}
|
|
PKGNAME= ${DISTNAME:L}
|
|
REVISION = 2
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
|
|
|
# Free, check README.txt for details
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES= https://distfiles.sigtrap.nl/ \
|
|
${HOMEPAGE}
|
|
|
|
MODULES= lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
|
|
pre-build:
|
|
@perl -pi -e "s,/usr/bin/env python,${MODPY_BIN}," \
|
|
${WRKSRC}/bin/pyrexc
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pyrex
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pyrex
|
|
@cd ${WRKSRC}/Demos && tar cvf - . | \
|
|
(cd ${PREFIX}/share/examples/pyrex && tar xf -)
|
|
@cd ${WRKSRC}/Doc && tar cvf - . | \
|
|
(cd ${PREFIX}/share/doc/pyrex && tar xf -)
|
|
|
|
do-test:
|
|
@cd ${WRKSRC}/Demos && \
|
|
make test PYTHON="PYTHONPATH=${WRKSRC} ${MODPY_BIN}"
|
|
|
|
.include <bsd.port.mk>
|