[80078] trunk/dports/devel/glade3/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jul 3 16:49:20 PDT 2011
Revision: 80078
http://trac.macports.org/changeset/80078
Author: jeremyhu at macports.org
Date: 2011-07-03 16:49:20 -0700 (Sun, 03 Jul 2011)
Log Message:
-----------
glade3: Add variants to choose between python versions (2.5, 2.6, and 2.7)
Modified Paths:
--------------
trunk/dports/devel/glade3/Portfile
Modified: trunk/dports/devel/glade3/Portfile
===================================================================
--- trunk/dports/devel/glade3/Portfile 2011-07-03 23:49:12 UTC (rev 80077)
+++ trunk/dports/devel/glade3/Portfile 2011-07-03 23:49:20 UTC (rev 80078)
@@ -6,6 +6,7 @@
name glade3
conflicts glade3-devel
version 3.8.0
+revision 1
license LGPL-2 GPL-2
set branch [join [lrange [split ${version} .] 0 1] .]
description Glade is a RAD tool to enable quick & easy development of user interfaces \
@@ -29,8 +30,7 @@
port:gnome-doc-utils \
port:gtk-doc
-depends_lib port:py26-gtk \
- port:libxml2 \
+depends_lib port:libxml2 \
port:libgnomeui
depends_run port:hicolor-icon-theme \
@@ -40,10 +40,31 @@
configure.args --disable-scrollkeeper
-set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
-configure.python ${prefix}/bin/python2.6
-configure.pkg_config_path ${python_prefix}/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
+}
+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
+}
+
+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
+}
+
+if {![variant_isset python25] && ![variant_isset python26]} {
+ default_variants +python27
+}
+
variant disable_gnome description {Disable support for GNOME UI widgets} {
configure.args-append --disable-gnome
depends_lib-delete port:libgnomeui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110703/1dd6230a/attachment.html>
More information about the macports-changes
mailing list