[140507] trunk/dports/math/fityk/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Sep 21 04:35:58 PDT 2015


Revision: 140507
          https://trac.macports.org/changeset/140507
Author:   ryandesign at macports.org
Date:     2015-09-21 04:35:58 -0700 (Mon, 21 Sep 2015)
Log Message:
-----------
fityk: actually add py27-sphinx build dependency when using docs variant

Modified Paths:
--------------
    trunk/dports/math/fityk/Portfile

Modified: trunk/dports/math/fityk/Portfile
===================================================================
--- trunk/dports/math/fityk/Portfile	2015-09-21 11:30:01 UTC (rev 140506)
+++ trunk/dports/math/fityk/Portfile	2015-09-21 11:35:58 UTC (rev 140507)
@@ -50,15 +50,17 @@
 
 configure.args-append --with-wxdir=${wxWidgets.wxdir}
 
-pre-build {
-    if {[variant_isset docs]} {
-        depends_build-append port:py27-sphinx
-        # TODO: use a python PortGroup and variable
+variant docs description {Build and install documentation} {
+    depends_build-append port:py27-sphinx
+    # TODO: use a python PortGroup and variable
+    pre-build {
         reinplace "s|sphinx-build|${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/sphinx-build|" ${worksrcpath}/doc/Makefile
         system -W ${worksrcpath}/doc make
-    } else {
+    }
+}
+
+if {![variant_isset docs]} {
+    pre-build {
         file mkdir ${worksrcpath}/doc/html/placeholder
     }
 }
-
-variant docs description {Build and install documentation} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150921/8dd222a4/attachment.html>


More information about the macports-changes mailing list