[24746] users/pipping
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 2 10:50:09 PDT 2007
Revision: 24746
http://trac.macosforge.org/projects/macports/changeset/24746
Author: pipping at macports.org
Date: 2007-05-02 10:50:09 -0700 (Wed, 02 May 2007)
Log Message:
-----------
* add preliminary wrapper for choosing python ports
Added Paths:
-----------
users/pipping/lang/
users/pipping/lang/python/
users/pipping/lang/python/Portfile
Added: users/pipping/lang/python/Portfile
===================================================================
--- users/pipping/lang/python/Portfile (rev 0)
+++ users/pipping/lang/python/Portfile 2007-05-02 17:50:09 UTC (rev 24746)
@@ -0,0 +1,82 @@
+# $Id$
+
+PortSystem 1.0
+name python
+version 2
+categories lang
+platforms darwin
+
+# this ports acts as a wrapper for python2[1-5].
+distfiles
+fetch { }
+checksum { }
+configure { }
+build { }
+pre-destroot {
+ xinstall -d ${worksrcpath}
+}
+destroot {
+ error "\n\nplease choose a version. the available versions are: \n\
+ * python21 \n\
+ * python22 \n\
+ * python23 \n\
+ * python24 \n\
+ * python25"
+}
+
+proc create_links {} {
+ global prefix destroot ver
+ foreach name {idle pydoc python pythonw} {
+ xinstall -d ${destroot}${prefix}/bin
+ ln -s \
+ ${prefix}/Library/Frameworks/Python.framework/Versions/${ver}/bin/${name}${ver} \
+ ${destroot}${prefix}/bin/${name}
+ }
+ ln -s \
+ ${prefix}/Library/Frameworks/Python.framework/Versions/${ver}/bin/smtpd${ver}.py \
+ ${destroot}${prefix}/bin/smtpd.py
+ ln -s \
+ ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/libpython2.4.dylib \
+ ${destroot}${prefix}/lib/libpython.dylib
+}
+
+variant python21 conflicts python22 python23 python24 python25 {
+ global ver
+ set ver 2.1
+ depends_run port:python[strsed ${ver} {g/\.//}]
+ destroot {
+ create_links
+ }
+}
+variant python22 conflicts python21 python23 python24 python25 {
+ global ver
+ set ver 2.2
+ depends_run port:python[strsed ${ver} {g/\.//}]
+ destroot {
+ create_links
+ }
+}
+variant python23 conflicts python21 python22 python24 python25 {
+ global ver
+ set ver 2.3
+ depends_run port:python[strsed ${ver} {g/\.//}]
+ destroot {
+ create_links
+ }
+}
+variant python24 conflicts python21 python22 python23 python25 {
+ global ver
+ set ver 2.4
+ depends_run port:python[strsed ${ver} {g/\.//}]
+ destroot {
+ create_links
+ }
+}
+variant python25 conflicts python21 python22 python23 python24 {
+ global ver
+ set ver 2.5
+ depends_run port:python[strsed ${ver} {g/\.//}]
+ destroot {
+ create_links
+ }
+}
Property changes on: users/pipping/lang/python/Portfile
___________________________________________________________________
Name: svn:keywords
+ id
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070502/3d4a5bc9/attachment.html
More information about the macports-changes
mailing list