[113229] trunk/dports/graphics/glfw/Portfile

michaelld at macports.org michaelld at macports.org
Tue Nov 12 16:08:13 PST 2013


Revision: 113229
          https://trac.macports.org/changeset/113229
Author:   michaelld at macports.org
Date:     2013-11-12 16:08:13 -0800 (Tue, 12 Nov 2013)
Log Message:
-----------
glfw: rearrange ordering of setting default variant and the commands for that variant so that they execute only once (either on or off).

Modified Paths:
--------------
    trunk/dports/graphics/glfw/Portfile

Modified: trunk/dports/graphics/glfw/Portfile
===================================================================
--- trunk/dports/graphics/glfw/Portfile	2013-11-12 23:25:56 UTC (rev 113228)
+++ trunk/dports/graphics/glfw/Portfile	2013-11-13 00:08:13 UTC (rev 113229)
@@ -56,17 +56,17 @@
 
 build.post_args     VERBOSE=1
 
-variant docs description {build documentation} {
+variant docs description {build documentation} {}
+
+default_variants    +docs
+
+if {[variant_isset docs]} {
     depends_build-append  port:doxygen
     configure.args-append -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
-}
-
-if {![variant_isset docs]} {
+} else {
     configure.args-append -DDOXYGEN_EXECUTABLE=
 }
 
-default_variants    +docs
-
 post-destroot {
 
     # move cmake Modules to an appropriate location
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131112/6170936b/attachment-0001.html>


More information about the macports-changes mailing list