aboutsummaryrefslogtreecommitdiff
path: root/lang/python26/Makefile
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2010-09-12 09:07:44 +0000
committerWen Heping <wen@FreeBSD.org>2010-09-12 09:07:44 +0000
commita332f5435d7cffa7d4da8d3a89c4d8a7bbc38b7b (patch)
treee5185e5550af10260b626e4095f653d33debe3bf /lang/python26/Makefile
parent3494ab1c719c61a6105430169132d3b2527fcc67 (diff)
Notes
Diffstat (limited to 'lang/python26/Makefile')
-rw-r--r--lang/python26/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index e614a36c188e..1aa95f034409 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -5,8 +5,7 @@
# $FreeBSD$
PORTNAME= python26
-PORTVERSION= 2.6.5
-PORTREVISION= 1
+PORTVERSION= 2.6.6
CATEGORIES= lang python ipv6
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
@@ -39,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 \
@@ -164,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 \
@@ -216,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 ] && \