[72385] trunk/dports/gnome/gpodder/Portfile
elelay at macports.org
elelay at macports.org
Tue Oct 12 10:56:22 PDT 2010
Revision: 72385
http://trac.macports.org/changeset/72385
Author: elelay at macports.org
Date: 2010-10-12 10:56:20 -0700 (Tue, 12 Oct 2010)
Log Message:
-----------
python 2.7 (default) variant for gPodder
Modified Paths:
--------------
trunk/dports/gnome/gpodder/Portfile
Modified: trunk/dports/gnome/gpodder/Portfile
===================================================================
--- trunk/dports/gnome/gpodder/Portfile 2010-10-12 17:54:43 UTC (rev 72384)
+++ trunk/dports/gnome/gpodder/Portfile 2010-10-12 17:56:20 UTC (rev 72385)
@@ -43,7 +43,7 @@
}
-set my_python "${frameworks_dir}/Python.framework/Versions/2.6"
+set my_python "DUMMY_VALUE_WILL_BE_OVERWRITTEN"
variant python26 conflicts python25 description {Use Python 2.6} {
depends_lib-append port:py26-feedparser\
@@ -51,6 +51,8 @@
port:dbus-python26\
port:py26-mygpoclient
+ set my_python "${frameworks_dir}/Python.framework/Versions/2.6"
+
post-patch {
reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
}
@@ -67,10 +69,34 @@
}
}
-if {![variant_isset python25] && ![variant_isset python26]} {
- default_variants +python26
+variant python27 conflicts python26 conflicts python25 description {Use Python 2.7} {
+ depends_lib-append port:py27-feedparser\
+ port:py27-pil\
+ port:dbus-python27\
+ port:py27-mygpoclient
+
+ set my_python "${frameworks_dir}/Python.framework/Versions/2.7"
+
+ post-patch {
+ reinplace s|python|${my_python}/bin/python|g ${worksrcpath}/Makefile
+ }
+
+ # install in python 2.7 prefix, see bug #22522
+ destroot.args PREFIX=${frameworks_dir}/Python.framework/Versions/2.7
+
+ # Install the 2.7 apps in the standard path :
+ # the 2 variants can't be active simultaneously.
+ post-destroot {
+ foreach {app} {gpodder gpo gpodder-backup} {
+ ln -s ${my_python}/bin/${app} ${destroot}${prefix}/bin/${app}
+ }
+ }
}
+if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
+ default_variants +python27
+}
+
variant quartz {
depends_lib-append port:gtk-osx-application
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101012/083e70d1/attachment.html>
More information about the macports-changes
mailing list