aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pyrex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/pyrex/Makefile')
-rw-r--r--devel/pyrex/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/devel/pyrex/Makefile b/devel/pyrex/Makefile
new file mode 100644
index 00000000000..e8a21a95503
--- /dev/null
+++ b/devel/pyrex/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: pyrex
+# Date created: 11 April 2002
+# Whom: Hye-Shik Chang
+#
+# $FreeBSD$
+#
+
+PORTNAME= pyrex
+PORTVERSION= 0.3.2
+CATEGORIES= devel lang python
+MASTER_SITES= http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
+PKGNAMEPREFIX= ${PYTHONPKGNAMEPREFIX}
+DISTNAME= Pyrex${PORTVERSION}
+
+MAINTAINER= perky@FreeBSD.org
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Plex/__init__.py:${PORTSDIR}/textproc/py-plex
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Plex/__init__.py:${PORTSDIR}/textproc/py-plex
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+USE_REINPLACE= yes
+
+post-patch:
+ @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${FILESDIR}/setup.py \
+ > ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} -e 's|^PYINCLUDE =.*|PYINCLUDE=${PYTHON_INCLUDEDIR}|g' \
+ -e 's|\.\./py|${PREFIX}/bin/py|g' ${WRKSRC}/Demos/Makefile
+ @${RM} -f ${WRKSRC}/Demos/Makefile.bak
+
+post-install:
+ @# precompile lexicon pickle
+ @cd ${WRKSRC}/Demos && ${PYTHON_CMD} ${PREFIX}/bin/pyrexc primes.pyx
+
+.if !defined(NOPORTDOCS)
+ @cd ${WRKSRC}/Demos && ${MAKE} clean
+
+ @${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC}/Doc && ${INSTALL_DATA} ./* ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
+ @cd ${WRKSRC}/Demos && ${INSTALL_DATA} ./* ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>