[100615] trunk/dports/gnome/gobject-introspection/Portfile
cal at macports.org
cal at macports.org
Mon Dec 17 13:10:31 PST 2012
Revision: 100615
https://trac.macports.org/changeset/100615
Author: cal at macports.org
Date: 2012-12-17 13:10:31 -0800 (Mon, 17 Dec 2012)
Log Message:
-----------
gobject-introspection: Find out whether we're compiling against Python +ucs4, closes #35603
Modified Paths:
--------------
trunk/dports/gnome/gobject-introspection/Portfile
Modified: trunk/dports/gnome/gobject-introspection/Portfile
===================================================================
--- trunk/dports/gnome/gobject-introspection/Portfile 2012-12-17 21:09:15 UTC (rev 100614)
+++ trunk/dports/gnome/gobject-introspection/Portfile 2012-12-17 21:10:31 UTC (rev 100615)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup active_variants 1.1
name gobject-introspection
version 1.34.1.1
@@ -51,6 +52,25 @@
build.args CC="${configure.cc} ${configure.cc_archflags}" V=1
+# gobject-introspection needs to be aware whether it was compiled against python +ucs4, see #35603
+variant python_ucs4 description {Build against Python with +ucs4} {
+ require_active_variants python27 ucs4
+}
+
+if {![variant_isset python_ucs4]} {
+ pre-configure {
+ if {![active_variants python "" ucs4]} {
+ error "You have python installed with the +ucs4 variant. Please build ${name} with +python_ucs4"
+ }
+ }
+}
+
+if {[catch {set result [active_variants python ucs4]}]} {
+ if {$result} {
+ default_variants +python_ucs4
+ }
+}
+
livecheck.type regex
livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121217/80a3c180/attachment.html>
More information about the macports-changes
mailing list