2007-10-08 04:22:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2007/10/08 08:22:40 steven 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
|
|
|
|
|
|
|
DISTNAME= Pyrex-0.9.4.1
|
2007-10-08 04:22:38 -04:00
|
|
|
PKGNAME= ${DISTNAME:L}p0
|
2006-11-15 20:09:38 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
|
|
|
|
|
|
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
|
|
|
|
|
|
|
# Free, check README.txt for details
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
|
|
|
#USE_GMAKE= Yes
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
REGRESS_DEPENDS=:py-Numeric-*:math/py-Numeric
|
|
|
|
|
|
|
|
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} ${WRKSRC}/Doc/* ${PREFIX}/share/doc/pyrex/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pyrex
|
|
|
|
@cd ${WRKSRC}/Demos && tar cvf - . | \
|
|
|
|
(cd ${PREFIX}/share/examples/pyrex && tar xf -)
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC}/Demos && \
|
|
|
|
make test PYTHON="PYTHONPATH=${WRKSRC} ${MODPY_BIN}"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|