diff options
| author | Jason Unovitch <junovitch@FreeBSD.org> | 2017-04-25 02:13:34 +0000 |
|---|---|---|
| committer | Jason Unovitch <junovitch@FreeBSD.org> | 2017-04-25 02:13:34 +0000 |
| commit | 3b9570d7d45f1ca490979e8784e946dd8e7c7fd0 (patch) | |
| tree | e09a228ad7aa1ca02a3b356aebbf23bd490276bf /lang/python34 | |
| parent | 0aa70bac5825f1acd247d8c9345b8ca282f740fe (diff) | |
Notes
Diffstat (limited to 'lang/python34')
| -rw-r--r-- | lang/python34/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python34/Makefile b/lang/python34/Makefile index aeafd9d96133..ad2e50ffad9f 100644 --- a/lang/python34/Makefile +++ b/lang/python34/Makefile @@ -3,6 +3,7 @@ PORTNAME= python34 PORTVERSION= ${PYTHON_PORTVERSION} +PORTREVISION= 1 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} DISTNAME= Python-${PORTVERSION} @@ -13,10 +14,12 @@ COMMENT= Interpreted object-oriented programming language LICENSE= PSFL -USES= cpe ncurses pathfix pkgconfig readline ssl tar:xz +USES= cpe ncurses pathfix pkgconfig readline ssl tar:xz shebangfix PATHFIX_MAKEFILEIN= Makefile.pre.in USE_LDCONFIG= yes GNU_CONFIGURE= yes +python_CMD= ${PREFIX}/bin/python${PYTHON_PORTVERSION:R} +SHEBANG_FILES= Lib/lib2to3/tests/data/*.py Lib/encodings/*.py CPE_VENDOR= python CPE_PRODUCT= ${CPE_VENDOR} @@ -114,6 +117,10 @@ DISABLED_EXTENSIONS+= nis PLIST_SUB+= NO_NIS="" .endif +post-patch: + ${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ + ${WRKSRC}/Lib/cgi.py + post-install: .if ! ${PORT_OPTIONS:MDEBUG} ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: http://bugs.python.org/issue17975 |
