[107936] trunk/dports/graphics/inkscape-devel/Portfile

devans at macports.org devans at macports.org
Tue Jul 9 11:09:56 PDT 2013


Revision: 107936
          https://trac.macports.org/changeset/107936
Author:   devans at macports.org
Date:     2013-07-09 11:09:56 -0700 (Tue, 09 Jul 2013)
Log Message:
-----------
inkscape-devel: update to bzr revision 12409, add +gtk3 variant, enables experimental GTK+ 3 build.

Revision Links:
--------------
    https://trac.macports.org/changeset/12409

Modified Paths:
--------------
    trunk/dports/graphics/inkscape-devel/Portfile

Modified: trunk/dports/graphics/inkscape-devel/Portfile
===================================================================
--- trunk/dports/graphics/inkscape-devel/Portfile	2013-07-09 18:01:04 UTC (rev 107935)
+++ trunk/dports/graphics/inkscape-devel/Portfile	2013-07-09 18:09:56 UTC (rev 107936)
@@ -5,7 +5,7 @@
 
 name            inkscape-devel
 conflicts       inkscape
-set bzr_rev     12399
+set bzr_rev     12409
 version         0.48.99.${bzr_rev}
 epoch           1
 license         GPL-2 LGPL-2.1
@@ -88,6 +88,18 @@
         ${prefix}/bin/python2.7
 }
 
+variant gtk3 description {Enable experimental GTK+ 3 build} {
+    depends_lib-delete  port:gtkspell2 \
+                        port:gtk2 \
+                        port:gtkmm
+    depends_lib-append  port:gtk3 \
+                        port:gtkmm3 \
+                        port:hicolor-icon-theme \
+                        port:gdl3
+
+    configure.args-append --enable-gtk3-experimental
+}
+
 compiler.blacklist clang
 
 configure.cmd   ./autogen.sh && ./configure
@@ -119,9 +131,16 @@
     default_variants +x11
 }
 
-post-activate {
-    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
-    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+if {[variant_isset gtk3]} {
+    post-activate {
+        system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
+        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+    }
+} else {
+    post-activate {
+        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
+        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+    }
 }
 
 livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130709/f34e8674/attachment.html>


More information about the macports-changes mailing list