diff options
author | perky <perky@FreeBSD.org> | 2006-06-23 11:09:16 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2006-06-23 11:09:16 +0800 |
commit | 8342526ecc5ee64a83625891f59ab9ac05dfb511 (patch) | |
tree | 3c3e2e5fa1295bae3c21990fc5710024d39dae14 /lang/python-devel/Makefile | |
parent | 5794efba15317603523fc3992dff0b463be99e3f (diff) | |
download | freebsd-ports-gnome-8342526ecc5ee64a83625891f59ab9ac05dfb511.tar.gz freebsd-ports-gnome-8342526ecc5ee64a83625891f59ab9ac05dfb511.tar.zst freebsd-ports-gnome-8342526ecc5ee64a83625891f59ab9ac05dfb511.zip |
Update python-devel to 2.5b1.
Diffstat (limited to 'lang/python-devel/Makefile')
-rw-r--r-- | lang/python-devel/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lang/python-devel/Makefile b/lang/python-devel/Makefile index 9d55275a9027..422999516df3 100644 --- a/lang/python-devel/Makefile +++ b/lang/python-devel/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ PORTNAME= python -PORTVERSION= 2.5.a0.20060326 +PORTVERSION= 2.5.b1 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -32,7 +32,8 @@ PYTHON_NO_DEPENDS= yes LATEST_LINK= ${PYTHON_VERSION:S/.//} SHARED_WRKSRC= ${PYTHON_WRKSRC}/portbld.shared -PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} +PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \ + PYVER_WITHPAT=${PORTVERSION:S/.b/b/} DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION} TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} @@ -133,6 +134,15 @@ pre-patch: 's|^ \(..ASDLGEN.*\)$$| ${TRUE}|g' \ ${PATCH_WRKSRC}/Makefile.pre.in + ${REINPLACE_CMD} -e \ + 's|*\(..INSTALL_SCRIPT.*\)python-config$$|#port \1|' \ + ${PATCH_WRKSRC}/Makefile.pre.in + + ${SED} -e 's|^#!.*|#!${PREFIX}/bin/${PYTHON_VERSION}|' \ + ${PATCH_WRKSRC}/Misc/python-config.in > ${WRKDIR}/${PYTHON_VERSION}-config + ${SED} -e 's|^#!.*|#!${PREFIX}/bin/${PYTHON_VERSION:S/thon/thon-shared/}|' \ + ${PATCH_WRKSRC}/Misc/python-config.in > ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config + post-configure: ${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf - ${LN} -sf ${PYTHON_WRKSRC}/Lib ${WRKSRC}/Lib @@ -165,6 +175,10 @@ pre-install: ${PLIST_TEMPLATE} > ${PLIST} post-install: + @# install config providers + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config ${PREFIX}/bin + @# shared version of executable and library ${INSTALL_PROGRAM} ${SHARED_WRKSRC}/lib${PYTHON_VERSION}.so.1 \ ${PREFIX}/lib |