2011-09-16 05:24:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2011/09/16 09:24:56 espie Exp $
|
2006-11-15 20:09:38 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= Python-alike language for writing Python extension modules
|
2006-11-15 20:09:38 -05:00
|
|
|
|
2010-09-05 13:18:22 -04:00
|
|
|
MODPY_EGG_VERSION= 0.9.9
|
|
|
|
DISTNAME= Pyrex-${MODPY_EGG_VERSION}
|
2010-08-30 18:24:14 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}
|
2011-09-16 05:24:48 -04:00
|
|
|
REVISION = 1
|
2006-11-15 20:09:38 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
|
|
|
|
|
|
|
# Free, check README.txt for details
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-09-12 12:49:08 -04:00
|
|
|
MASTER_SITES= http://distfiles.nl/ \
|
2010-09-07 09:48:40 -04:00
|
|
|
${HOMEPAGE}
|
2006-11-15 20:09:38 -05:00
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
REGRESS_DEPENDS=math/py-Numeric
|
2006-11-15 20:09:38 -05:00
|
|
|
|
|
|
|
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 -)
|
2008-01-22 08:35:01 -05:00
|
|
|
@cd ${WRKSRC}/Doc && tar cvf - . | \
|
|
|
|
(cd ${PREFIX}/share/doc/pyrex && tar xf -)
|
2006-11-15 20:09:38 -05:00
|
|
|
|
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC}/Demos && \
|
|
|
|
make test PYTHON="PYTHONPATH=${WRKSRC} ${MODPY_BIN}"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|