diff options
Diffstat (limited to 'lang/python27/Makefile')
| -rw-r--r-- | lang/python27/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile index 0eba3df2f32c..8b97efb8729d 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -4,8 +4,8 @@ # # $FreeBSD$ -PORTNAME= python26 -PORTVERSION= 2.6.5 +PORTNAME= python27 +PORTVERSION= 2.7.0 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -27,7 +27,7 @@ INSTALL_TARGET= altinstall MAN1= ${PYTHON_VERSION}.1 USE_PYTHON= yes -PYTHON_VERSION= python2.6 +PYTHON_VERSION= python2.7 PYTHON_NO_DEPENDS= yes SHARED_WRKSRC= ${PYTHON_WRKSRC}/portbld.shared @@ -38,8 +38,7 @@ PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \ EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_VERSION} DATADIR= ${PREFIX}/share/${PYTHON_VERSION} -PLATFORMS= plat-freebsd4 plat-freebsd5 plat-freebsd6 \ - plat-freebsd7 plat-freebsd8 plat-freebsd9 +PLATFORMS= plat-freebsd6 plat-freebsd7 plat-freebsd8 plat-freebsd9 BIN_SCRIPTS= 2to3 idle pydoc smtpd.py BIN_FILES= python python-shared python-config python-shared-config \ @@ -163,7 +162,8 @@ pre-patch: 's|^\( *prefixes = .*\)\]$$|\1, "${LOCALBASE}"]|g' \ ${PATCH_WRKSRC}/Lib/site.py ${REINPLACE_CMD} -e \ - 's|^ \(..ASDLGEN.*\)$$| ${TRUE}|g' \ + 's|^ \(..ASDLGEN.*\)$$| ${TRUE}|g; \ + s|[(]LIBDIR[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ ${PATCH_WRKSRC}/Makefile.pre.in ${REINPLACE_CMD} -e \ @@ -215,7 +215,9 @@ pre-su-install: pre-install: ${CAT} ${PLIST_TEMPLATE} | ${AWK} '{ print $$0; } \ - /LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST} + /LIBDIR.*\.py$$/ && \ + !/\/bad|tests\/data/ \ + { print $$0 "o"; print $$0 "c"; }' > ${PLIST} @# if openssl 0.9.8 is detected, _sha{256,512} module won't be installed ([ -f ${WRKSRC}/.without_own_sha ] && \ |
