[127457] trunk/dports/devel/glade3/Portfile

devans at macports.org devans at macports.org
Tue Oct 28 11:23:02 PDT 2014


Revision: 127457
          https://trac.macports.org/changeset/127457
Author:   devans at macports.org
Date:     2014-10-28 11:23:02 -0700 (Tue, 28 Oct 2014)
Log Message:
-----------
glade3: drop +python26 variant, add +gnome variant retaining +disable_gnome as a legacy variant, default variants +gnome +python27.

Modified Paths:
--------------
    trunk/dports/devel/glade3/Portfile

Modified: trunk/dports/devel/glade3/Portfile
===================================================================
--- trunk/dports/devel/glade3/Portfile	2014-10-28 17:53:06 UTC (rev 127456)
+++ trunk/dports/devel/glade3/Portfile	2014-10-28 18:23:02 UTC (rev 127457)
@@ -5,6 +5,7 @@
 
 name                glade3
 version             3.8.5
+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 \
@@ -32,9 +33,7 @@
 depends_lib         port:desktop-file-utils \
                     port:rarian \
                     port:gtk2 \
-                    port:libxml2 \
-                    port:libbonoboui \
-                    port:libgnomeui
+                    port:libxml2
 
 depends_run         port:devhelp
 
@@ -50,29 +49,25 @@
 configure.cflags-append \
                     -Wno-format-nonliteral
 
-configure.args      --disable-scrollkeeper
+configure.args      --disable-scrollkeeper \
+                    --disable-gnome \
+                    --disable-python
 
-variant python26 conflicts python27 description {Use python 2.6} {
-    configure.python          ${prefix}/bin/python2.6
-    depends_lib-append        port:py26-pygtk
-    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
-    configure.pkg_config_path ${python_framework}/lib/pkgconfig
-}
-
-variant python27 conflicts python26 description {Use python 2.7} {
+variant python27 description {Enable support for Python widgets using Python 2.7} {
+    configure.args-replace    --disable-python --enable-python
     configure.python          ${prefix}/bin/python2.7
     depends_lib-append        port:py27-pygtk
     set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
     configure.pkg_config_path ${python_framework}/lib/pkgconfig
 }
 
-if {![variant_isset python26]} {
-    default_variants +python27
-}
+# legacy variant can be removed after October 2015
+variant disable_gnome conflicts gnome description {Legacy variant, use -gnome instead} {}
 
-variant disable_gnome description {Disable support for GNOME UI widgets} {
-    configure.args-append --disable-gnome
-    depends_lib-delete port:libgnomeui
+variant gnome conflicts disable_gnome description {Enable support for GNOME2 UI widgets} {
+    configure.args-replace    --disable-gnome  --enable-gnome
+    depends_lib-append        port:libbonoboui \
+                              port:libgnomeui
 }
 
 #
@@ -86,6 +81,12 @@
 #         depends_run-delete port:devhelp
 #}
 
+if {[variant_isset disable_gnome]} {
+    default_variants +python27 -gnome
+} else {
+    default_variants +python27 +gnome
+}
+
 post-activate {
     system "${prefix}/bin/scrollkeeper-update"
     system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141028/1ff7c0b9/attachment.html>


More information about the macports-changes mailing list