openbsd-ports/devel/pyrex/Makefile
alek fdda5d4300 Import pyrex 0.9.4.1
Pyrex is a language specially designed for writing Python extension
modules. It's designed to bridge the gap between the nice, high-level,
easy-to-use world of Python and the messy, low-level world of C.
2006-11-16 01:09:38 +00:00

44 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2006/11/16 01:09:38 alek Exp $
SHARED_ONLY= Yes
COMMENT= "Python-alike language for writing Python extension modules"
DISTNAME= Pyrex-0.9.4.1
PKGNAME= ${DISTNAME:L}
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>