Modified: trunk/dports/net/libgweather/Portfile (80078 => 80079)
--- trunk/dports/net/libgweather/Portfile 2011-07-03 23:49:20 UTC (rev 80078)
+++ trunk/dports/net/libgweather/Portfile 2011-07-03 23:49:21 UTC (rev 80079)
@@ -5,7 +5,7 @@
name libgweather
version 2.30.3
-revision 2
+revision 3
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers devans openmaintainer
categories net gnome
@@ -30,8 +30,7 @@
port:gtk-doc
depends_lib port:gconf \
- port:libsoup \
- port:py26-gtk
+ port:libsoup
patchfiles patch-python-prefix.diff
@@ -40,16 +39,40 @@
--disable-glibtest \
--enable-python
-configure.python ${prefix}/bin/python2.6
-set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
-configure.pkg_config_path ${python_framework}/lib/pkgconfig
+variant python25 conflicts python26 python27 description {Use python 2.5} {
+ configure.python ${prefix}/bin/python2.5
+ depends_lib-append port:py25-gtk
+ set python_framework ${frameworks_dir}/Python.framework/Versions/2.5
+ configure.pkg_config_path ${python_framework}/lib/pkgconfig
-#
-# ensure build path contains path to python executables (#26201)
-#
+ # ensure build path contains path to python executables (#26201)
+ build.env PATH=${python_framework}/bin:$env(PATH)
+}
-build.env PATH=${python_framework}/bin:$env(PATH)
+variant python26 conflicts python25 python27 description {Use python 2.6} {
+ configure.python ${prefix}/bin/python2.6
+ depends_lib-append port:py26-gtk
+ set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
+ configure.pkg_config_path ${python_framework}/lib/pkgconfig
+ # ensure build path contains path to python executables (#26201)
+ build.env PATH=${python_framework}/bin:$env(PATH)
+}
+
+variant python27 conflicts python25 python26 description {Use python 2.7} {
+ configure.python ${prefix}/bin/python2.7
+ depends_lib-append port:py27-gtk
+ set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
+ configure.pkg_config_path ${python_framework}/lib/pkgconfig
+
+ # ensure build path contains path to python executables (#26201)
+ build.env PATH=${python_framework}/bin:$env(PATH)
+}
+
+if {![variant_isset python25] && ![variant_isset python26]} {
+ default_variants +python27
+}
+
post-activate {
system "\
GCONF_CONFIG_SOURCE= \