[33131] trunk/dports/sysutils/python_select
raimue at macports.org
raimue at macports.org
Fri Jan 18 12:25:30 PST 2008
Revision: 33131
http://trac.macosforge.org/projects/macports/changeset/33131
Author: raimue at macports.org
Date: 2008-01-18 12:25:28 -0800 (Fri, 18 Jan 2008)
Log Message:
-----------
* Add support for python25-apple on Leopard
* Select default python according to platform
Modified Paths:
--------------
trunk/dports/sysutils/python_select/Portfile
Added Paths:
-----------
trunk/dports/sysutils/python_select/files/python25-apple
Modified: trunk/dports/sysutils/python_select/Portfile
===================================================================
--- trunk/dports/sysutils/python_select/Portfile 2008-01-18 19:41:34 UTC (rev 33130)
+++ trunk/dports/sysutils/python_select/Portfile 2008-01-18 20:25:28 UTC (rev 33131)
@@ -4,12 +4,13 @@
name python_select
version 0.1
+revision 1
categories sysutils
platforms darwin
maintainers raimue
description Switch the default python interpreter
long_description python_select lets you switch the default python interpreter. \
- It symlinks the standard python executables \
+ python_select symlinks the standard python executables \
in the MacPorts prefix to the selected version.
homepage http://svn.macports.org/repository/macports/users/mww/select/
@@ -19,11 +20,37 @@
configure.args --mandir=${prefix}/share/man --name=python
-# install all & select python23-apple by default
+# install all files
post-destroot {
- xinstall -m 644 -W ${filespath} base python23-apple python23 python24 python25 \
- ${destroot}${prefix}/etc/select/python
- system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
+ xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
+ xinstall -m 644 -W ${filespath} base python23 python24 python25 ${destroot}${prefix}/etc/select/python
}
+platform darwin 7 {
+ post-destroot {
+ xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
+ system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
+ }
+}
+
+platform darwin 8 {
+ post-destroot {
+ xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
+ system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
+ }
+}
+
+platform darwin 9 {
+ post-destroot {
+ xinstall -m 644 -W ${filespath} python25-apple ${destroot}${prefix}/etc/select/python
+ system "${destroot}${prefix}/bin/${name} -i ${destroot} python25-apple"
+ }
+}
+
livecheck.check none
+
+# Documentation for python ports:
+# Modify these two lines and add them into your destroot phase
+# xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
+# xinstall -m 644 ${filespath}/python2x ${destroot}${prefix}/etc/select/python/
+
Added: trunk/dports/sysutils/python_select/files/python25-apple
===================================================================
--- trunk/dports/sysutils/python_select/files/python25-apple (rev 0)
+++ trunk/dports/sysutils/python_select/files/python25-apple 2008-01-18 20:25:28 UTC (rev 33131)
@@ -0,0 +1,8 @@
+/usr/bin/python2.5
+/usr/bin/pythonw2.5
+/usr/bin/python2.5-config
+-
+/usr/bin/pydoc2.5
+/usr/bin/smtpd2.5.py
+-
+/usr/share/man/man1/python2.5.1.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080118/f0c63ed6/attachment.html
More information about the macports-changes
mailing list