diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2017-10-15 15:01:15 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2017-10-15 15:01:15 +0000 |
commit | 5729569bacdc122960dad042300266eba8f3d7d5 (patch) | |
tree | bfa9fb263de8de1254c4379bb4775434cc596fba /lang/python27 | |
parent | f5487036679db51ba0b15689e896028b6248c47e (diff) | |
download | ports-5729569bacdc122960dad042300266eba8f3d7d5.tar.gz ports-5729569bacdc122960dad042300266eba8f3d7d5.zip |
Notes
Diffstat (limited to 'lang/python27')
-rw-r--r-- | lang/python27/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile index 1e465bf76cc8..ae01cf0be349 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -2,6 +2,7 @@ PORTNAME= python27 PORTVERSION= ${PYTHON_PORTVERSION} +PORTREVISION= 1 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} DISTNAME= Python-${PORTVERSION} @@ -143,6 +144,12 @@ post-install: .if ${CC} == /nxb-bin/usr/bin/cc @${REINPLACE_CMD} -e 's=/nxb-bin==' \ ${STAGEDIR}${PREFIX}/lib/python2.7/_sysconfigdata.py + @cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \ + ./python -E -m compileall -d ${PREFIX}/lib/python2.7 \ + ${STAGEDIR}${PREFIX}/lib/python2.7/_sysconfigdata.py + @cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \ + ./python -E -O -m compileall -d ${PREFIX}/lib/python2.7 \ + ${STAGEDIR}${PREFIX}/lib/python2.7/_sysconfigdata.py @${REINPLACE_CMD} -e 's=/nxb-bin==' \ ${STAGEDIR}${PREFIX}/lib/python2.7/config/Makefile .endif |