Revision
104805
Author
jeremyhu@macports.org
Date
2013-04-02 15:34:37 -0700 (Tue, 02 Apr 2013)

Log Message

gnome-menus: Enable support for gobject-introspection

Modified Paths

Diff

Modified: trunk/dports/gnome/gnome-menus/Portfile (104804 => 104805)


--- trunk/dports/gnome/gnome-menus/Portfile	2013-04-02 22:34:10 UTC (rev 104804)
+++ trunk/dports/gnome/gnome-menus/Portfile	2013-04-02 22:34:37 UTC (rev 104805)
@@ -5,7 +5,7 @@
 
 name            gnome-menus
 version         2.30.5
-revision        2
+revision        3
 set branch      [join [lrange [split ${version} .] 0 1] .]
 maintainers     devans openmaintainer
 categories      gnome
@@ -28,7 +28,8 @@
 
 depends_build   port:pkgconfig \
                 port:intltool \
-                port:gnome-doc-utils
+                port:gnome-doc-utils \
+                port:gobject-introspection
 
 depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2
 
@@ -61,10 +62,13 @@
         ${worksrcpath}/simple-editor/GMenuSimpleEditor/menutreemodel.py
 }
 
-configure.args  --enable-introspection=no \
+configure.args  --enable-introspection \
                 --enable-python \
                 --disable-silent-rules
 
+# gobject-introspection uses g-ir-scanner, which uses $CC from env
+build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
+
 livecheck.type  regex
 livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
 livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}