[36460] branches/python-frameworks/dports/lang/python24/Portfile
raimue at macports.org
raimue at macports.org
Fri May 2 17:22:04 PDT 2008
Revision: 36460
http://trac.macosforge.org/projects/macports/changeset/36460
Author: raimue at macports.org
Date: 2008-05-02 17:22:04 -0700 (Fri, 02 May 2008)
Log Message:
-----------
lang/python24:
Remove all hardcoded versions
Modified Paths:
--------------
branches/python-frameworks/dports/lang/python24/Portfile
Modified: branches/python-frameworks/dports/lang/python24/Portfile
===================================================================
--- branches/python-frameworks/dports/lang/python24/Portfile 2008-05-02 23:54:03 UTC (rev 36459)
+++ branches/python-frameworks/dports/lang/python24/Portfile 2008-05-03 00:22:04 UTC (rev 36460)
@@ -5,8 +5,8 @@
name python24
version 2.4.4
revision 4
-set major_version 2
-set minor_version 4
+set major 2
+set branch 2.4
categories lang
platforms darwin freebsd linux
maintainers nomaintainer
@@ -49,7 +49,7 @@
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
}
-build.target all libpython2.4.dylib
+build.target all libpython${branch}.dylib
# Workaround for case-sensitive file systems
post-build {
@@ -65,25 +65,25 @@
post-destroot {
if { [variant_isset macosx]} {
set framewdir ${prefix}/Library/Frameworks/Python.framework
- xinstall -m 755 -d ${destroot}${framewdir}/Versions/2.4/include
+ xinstall -m 755 -d ${destroot}${framewdir}/Versions/${branch}/include
ln -s Versions/Current/lib ${destroot}${framewdir}/Libraries
- ln -sf ${framewdir}/Versions/2.4/bin/pydoc ${destroot}${prefix}/binpydoc
- ln -sf ${framewdir}/Versions/2.4/bin/pydoc ${destroot}${prefix}/binpydoc24
- ln -s ${prefix}/lib/python2.4/config ${destroot}${framewdir}/Versions/2.4/lib/python2.4/config
- ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib ${destroot}${prefix}/lib/libpython${version}.dylib
- ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib ${destroot}${prefix}/lib/libpython${major_version}.dylib
- ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib ${destroot}${prefix}/lib/libpython.dylib
+ ln -sf ${framewdir}/Versions/${branch}/bin/pydoc ${destroot}${prefix}/binpydoc
+ ln -sf ${framewdir}/Versions/${branch}/bin/pydoc ${destroot}${prefix}/binpydoc24
+ ln -s ${prefix}/lib/python${branch}/config ${destroot}${framewdir}/Versions/${branch}/lib/python${branch}/config
+ ln -s ${framewdir}/Versions/${branch}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib/libpython${version}.dylib
+ ln -s ${framewdir}/Versions/${branch}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib/libpython${major}.dylib
+ ln -s ${framewdir}/Versions/${branch}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib/libpython.dylib
} elseif { [variant_isset darwin]} {
- ln -s libpython${major_version}.${minor_version}.dylib ${destroot}${prefix}/lib/libpython${version}.dylib
- ln -s libpython${major_version}.${minor_version}.dylib ${destroot}${prefix}/lib/libpython${major_version}.dylib
- ln -s libpython${major_version}.${minor_version}.dylib ${destroot}${prefix}/lib/libpython.dylib
+ ln -s libpython${branch}.dylib ${destroot}${prefix}/lib/libpython${version}.dylib
+ ln -s libpython${branch}.dylib ${destroot}${prefix}/lib/libpython${major}.dylib
+ ln -s libpython${branch}.dylib ${destroot}${prefix}/lib/libpython.dylib
} else {
system "cd ${destroot}${prefix}/lib && \
- ln -s libpython${major_version}.${minor_version}.so \
+ ln -s libpython${branch}.so \
libpython${version}.so && \
- ln -s libpython${major_version}.${minor_version}.so \
- libpython${major_version}.so && \
- ln -s libpython${major_version}.${minor_version}.so \
+ ln -s libpython${branch}.so \
+ libpython${major}.so && \
+ ln -s libpython${branch}.so \
libpython.so"
}
}
@@ -97,7 +97,7 @@
file delete ${destroot}${prefix}/bin/idle
file delete ${destroot}${prefix}/bin/pydoc
file delete ${destroot}${prefix}/bin/smtpd.py
- file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python2.4.1
+ file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
# install select file for python_select
xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
@@ -122,17 +122,17 @@
platform freebsd {
configure.args-delete --enable-framework=${prefix}/Library/Frameworks
configure.args-append --disable-framework
- build.target all libpython2.4.so
+ build.target all libpython${branch}.so
destroot.target install maninstall
}
platform linux {
configure.args-delete --enable-framework=${prefix}/Library/Frameworks
configure.args-append --disable-framework
- build.target all libpython2.4.so
+ build.target all libpython${branch}.so
destroot.target install maninstall
}
livecheck.check regex
livecheck.url http://www.python.org/download/releases/
-livecheck.regex Python (2.4.\[0-9\]+)
+livecheck.regex Python (${branch}.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080502/48a90ea2/attachment.html
More information about the macports-changes
mailing list