Changeset 140507 for trunk/dports/math


Ignore:
Timestamp:
Sep 21, 2015, 11:35:58 AM (4 years ago)
Author:
ryandesign@…
Message:

fityk: actually add py27-sphinx build dependency when using docs variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/fityk/Portfile

    r139469 r140507  
    5151configure.args-append --with-wxdir=${wxWidgets.wxdir}
    5252
    53 pre-build {
    54     if {[variant_isset docs]} {
    55         depends_build-append port:py27-sphinx
    56         # TODO: use a python PortGroup and variable
     53variant docs description {Build and install documentation} {
     54    depends_build-append port:py27-sphinx
     55    # TODO: use a python PortGroup and variable
     56    pre-build {
    5757        reinplace "s|sphinx-build|${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/sphinx-build|" ${worksrcpath}/doc/Makefile
    5858        system -W ${worksrcpath}/doc make
    59     } else {
     59    }
     60}
     61
     62if {![variant_isset docs]} {
     63    pre-build {
    6064        file mkdir ${worksrcpath}/doc/html/placeholder
    6165    }
    6266}
    63 
    64 variant docs description {Build and install documentation} {}
Note: See TracChangeset for help on using the changeset viewer.