Changeset View
Changeset View
Standalone View
Standalone View
head/lang/python33/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= python33 | PORTNAME= python33 | ||||
PORTVERSION= ${PYTHON_PORTVERSION} | PORTVERSION= ${PYTHON_PORTVERSION} | ||||
PORTREVISION= 9 | PORTREVISION= 10 | ||||
CATEGORIES= lang python ipv6 | CATEGORIES= lang python ipv6 | ||||
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} | MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} | ||||
DISTNAME= Python-${PORTVERSION} | DISTNAME= Python-${PORTVERSION} | ||||
DIST_SUBDIR= python | DIST_SUBDIR= python | ||||
MAINTAINER= python@FreeBSD.org | MAINTAINER= python@FreeBSD.org | ||||
COMMENT= Interpreted object-oriented programming language | COMMENT= Interpreted object-oriented programming language | ||||
LICENSE= PSFL | LICENSE= PSFL | ||||
DEPRECATED= No longer receives bug fixes, only security updates. Please update to Python 3.6 | DEPRECATED= No longer receives bug fixes, only security updates. Please update to Python 3.6 | ||||
EXPIRATION_DATE= 2017-09-01 | EXPIRATION_DATE= 2017-09-01 | ||||
USES= cpe ncurses pathfix pkgconfig readline ssl tar:xz shebangfix | USES= cpe ncurses pathfix pkgconfig readline:port ssl tar:xz shebangfix | ||||
PATHFIX_MAKEFILEIN= Makefile.pre.in | PATHFIX_MAKEFILEIN= Makefile.pre.in | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
python_CMD= ${PREFIX}/bin/python${PYTHON_PORTVERSION:R} | python_CMD= ${PREFIX}/bin/python${PYTHON_PORTVERSION:R} | ||||
SHEBANG_FILES= Lib/lib2to3/tests/data/*.py Lib/encodings/*.py | SHEBANG_FILES= Lib/lib2to3/tests/data/*.py Lib/encodings/*.py | ||||
CPE_VENDOR= python | CPE_VENDOR= python | ||||
CPE_PRODUCT= ${CPE_VENDOR} | CPE_PRODUCT= ${CPE_VENDOR} | ||||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
# See http://bugs.freebsd.org/115940 and http://bugs.freebsd.org/193650 | # See http://bugs.freebsd.org/115940 and http://bugs.freebsd.org/193650 | ||||
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | ||||
PLIST_SUB+= NO_NIS="@comment " | PLIST_SUB+= NO_NIS="@comment " | ||||
.else | .else | ||||
PLIST_SUB+= NO_NIS="" | PLIST_SUB+= NO_NIS="" | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
# readline shared library is present on base before FreeBSD 11 - r268461 | |||||
# force setup.py ignore base and use readline from ports | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 | |||||
${REINPLACE_CMD} -e \ | |||||
"s|lib_dirs,\ \'readline\'|[\'${LOCALBASE}/lib\',\ \'.\'],\ \'readline\'|" \ | |||||
${WRKSRC}/setup.py | |||||
.endif | |||||
${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ | ${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ | ||||
${WRKSRC}/Lib/cgi.py | ${WRKSRC}/Lib/cgi.py | ||||
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | ||||
@${REINPLACE_CMD} -e 's/disabled_module_list =[^]]*/&, "nis"/' \ | @${REINPLACE_CMD} -e 's/disabled_module_list =[^]]*/&, "nis"/' \ | ||||
${WRKSRC}/setup.py | ${WRKSRC}/setup.py | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
Show All 9 Lines |