aboutsummaryrefslogtreecommitdiff
path: root/lang/python36
diff options
context:
space:
mode:
authorJason Unovitch <junovitch@FreeBSD.org>2017-04-25 02:13:34 +0000
committerJason Unovitch <junovitch@FreeBSD.org>2017-04-25 02:13:34 +0000
commit3b9570d7d45f1ca490979e8784e946dd8e7c7fd0 (patch)
treee09a228ad7aa1ca02a3b356aebbf23bd490276bf /lang/python36
parent0aa70bac5825f1acd247d8c9345b8ca282f740fe (diff)
Notes
Diffstat (limited to 'lang/python36')
-rw-r--r--lang/python36/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python36/Makefile b/lang/python36/Makefile
index f20268b77d63..b399db294baa 100644
--- a/lang/python36/Makefile
+++ b/lang/python36/Makefile
@@ -3,6 +3,7 @@
PORTNAME= python
PORTVERSION= ${PYTHON_PORTVERSION}
+PORTREVISION= 1
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PYTHON_PORTVERSION}
PKGNAMESUFFIX= ${PYTHON_SUFFIX}
@@ -14,10 +15,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}
@@ -118,6 +121,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