summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/py-compiler/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/py-compiler/Makefile b/lang/py-compiler/Makefile
index 98ceefa..8331614 100644
--- a/lang/py-compiler/Makefile
+++ b/lang/py-compiler/Makefile
@@ -23,6 +23,11 @@ DIST_SUBDIR= python
USE_PYTHON= yes
WRKSRC= ${PYTHON_WRKSRC}/Tools/${PORTNAME}
+.include <bsd.port.pre.mk>
+.if ${PYTHON_REL} >= 220
+FORBIDDEN= "Part of the standard library from Python 2.2 upwards"
+.endif
+
do-build:
@ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build
@@ -30,4 +35,4 @@ do-install:
@ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \
setup.py install -c -O1 --prefix=${PREFIX}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud