[31434] trunk/dports/x11/gtk2/Portfile

rhwood at macports.org rhwood at macports.org
Fri Nov 23 07:16:49 PST 2007


Revision: 31434
          http://trac.macosforge.org/projects/macports/changeset/31434
Author:   rhwood at macports.org
Date:     2007-11-23 07:16:47 -0800 (Fri, 23 Nov 2007)

Log Message:
-----------
@#$% default variants!
remove default variant
add pre-fetch hook to error out if no variant is selected

Modified Paths:
--------------
    trunk/dports/x11/gtk2/Portfile

Modified: trunk/dports/x11/gtk2/Portfile
===================================================================
--- trunk/dports/x11/gtk2/Portfile	2007-11-23 11:24:08 UTC (rev 31433)
+++ trunk/dports/x11/gtk2/Portfile	2007-11-23 15:16:47 UTC (rev 31434)
@@ -48,10 +48,12 @@
     port:render \
     port:zlib
 
-default_variants +x11
 
 pre-fetch {
-    if {[variant_isset with_quartz]} {
+    if { ![variant_isset quartz] && ![variant_isset x11] } {
+        return -code 1 "\nYou must install gtk2 with either the +quartz or +x11 variant specified.\n"
+    }
+    if {[variant_isset quartz]} {
         if { ![file exists ${prefix}/include/cairo/cairo-quartz.h] } {
             return -code 1 "\nYou must first build cairo with the quartz variant enabled.  Please\nuninstall (or deactivate) the cairo port and reinstall by running:\n\n\"port install cairo +quartz\"\n"
         }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071123/df1bbb23/attachment.html


More information about the macports-changes mailing list