[78825] trunk/dports

jmr at macports.org jmr at macports.org
Mon May 23 15:18:35 PDT 2011


Revision: 78825
          http://trac.macports.org/changeset/78825
Author:   jmr at macports.org
Date:     2011-05-23 15:18:34 -0700 (Mon, 23 May 2011)
Log Message:
-----------
db48, libsdl: when the no_* variants are set, actually negate the otherwise default positive variant, so the no_* ones can be removed someday

Modified Paths:
--------------
    trunk/dports/databases/db48/Portfile
    trunk/dports/devel/libsdl/Portfile

Modified: trunk/dports/databases/db48/Portfile
===================================================================
--- trunk/dports/databases/db48/Portfile	2011-05-23 21:43:59 UTC (rev 78824)
+++ trunk/dports/databases/db48/Portfile	2011-05-23 22:18:34 UTC (rev 78825)
@@ -59,7 +59,9 @@
     configure.args-append  --enable-java
 }
 variant no_java conflicts java description {Legacy compatibility variant} {}
-if {![variant_isset no_java] && ${os.subplatform} == "macosx"} {
+if {[variant_isset no_java]} {
+    default_variants -java
+} elseif {${os.subplatform} == "macosx"} {
     default_variants +java
 }
 

Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile	2011-05-23 21:43:59 UTC (rev 78824)
+++ trunk/dports/devel/libsdl/Portfile	2011-05-23 22:18:34 UTC (rev 78825)
@@ -58,7 +58,9 @@
     }
 }
 variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
-if {![variant_isset no_x11]} {
+if {[variant_isset no_x11]} {
+    default_variants -x11
+} else {
     default_variants +x11
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110523/e9b5d534/attachment.html>


More information about the macports-changes mailing list