[115185] trunk/dports/x11/gtkmm3/Portfile
devans at macports.org
devans at macports.org
Fri Dec 27 12:45:30 PST 2013
Revision: 115185
https://trac.macports.org/changeset/115185
Author: devans at macports.org
Date: 2013-12-27 12:45:30 -0800 (Fri, 27 Dec 2013)
Log Message:
-----------
gtkmm3: add +quartz +x11 variants, check for variant match with dependencies, force rebuild to reveal any existing mismatch (#41935).
Modified Paths:
--------------
trunk/dports/x11/gtkmm3/Portfile
Modified: trunk/dports/x11/gtkmm3/Portfile
===================================================================
--- trunk/dports/x11/gtkmm3/Portfile 2013-12-27 19:48:35 UTC (rev 115184)
+++ trunk/dports/x11/gtkmm3/Portfile 2013-12-27 20:45:30 UTC (rev 115185)
@@ -1,12 +1,13 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+PortGroup active_variants 1.1
name gtkmm3
set gname gtkmm
version 3.10.1
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
description C++ interface to GTK+ version 3.
long_description \
@@ -41,5 +42,33 @@
use_autoreconf yes
autoreconf.args -fvi
+#
+# dummy variants to ensure that this port gets rebuilt if
+# the corresponding variants for gtk3 change
+#
+
+variant x11 conflicts quartz {}
+variant quartz conflicts x11 {}
+
+if {![variant_isset quartz]} {
+ default_variants +x11
+}
+
+if {[variant_isset quartz]} {
+ require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm quartz
+ require_active_variants pangomm quartz
+ require_active_variants gtk3 quartz
+} else {
+ require_active_variants gtk3 "" quartz
+}
+
+if {[variant_isset x11]} {
+ require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm x11
+ require_active_variants pangomm x11
+ require_active_variants gtk3 x11
+} else {
+ require_active_variants gtk3 "" x11
+}
+
livecheck.type gnome
livecheck.name ${gname}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131227/3722951c/attachment.html>
More information about the macports-changes
mailing list