Changeset 145831 for trunk/dports/math


Ignore:
Timestamp:
Feb 18, 2016, 4:31:00 PM (4 years ago)
Author:
mcalhoun@…
Message:

octave-devel, octave-devel-rc, octave-devel-release: add docs variant to make building documentation optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/octave-devel/Portfile

    r145830 r145831  
    269269    --without-sndfile       \
    270270    --without-portaudio     \
    271     --without-magick
     271    --without-magick        \
     272    --disable-docs
    272273
    273274# in configure.ac, listed as one of "[p]rograms used when running Octave"
     
    291292depends_lib-append   port:fontconfig
    292293depends_lib-append   port:pcre
    293 
    294 #--disable-docs
    295 depends_build-append port:texinfo
    296 configure.env-append                \
    297     MAKEINFO=${prefix}/bin/makeinfo \
    298     TEXI2DVI=${prefix}/bin/texi2dvi \
    299     TEXI2PDF=${prefix}/bin/texi2pdf
    300 
    301 # see https://lists.macosforge.org/pipermail/macports-dev/2016-January/032293.html
    302 depends_build-append \
    303     port:texlive-basic \
    304     port:texlive-latex
    305294
    306295#--without-amd
     
    554543default_variants-append +app
    555544
     545variant docs description {build documentation files} {
     546    depends_build-append port:texinfo
     547    configure.env-append                \
     548        MAKEINFO=${prefix}/bin/makeinfo \
     549        TEXI2DVI=${prefix}/bin/texi2dvi \
     550        TEXI2PDF=${prefix}/bin/texi2pdf
     551
     552    # see https://lists.macosforge.org/pipermail/macports-dev/2016-January/032293.html
     553    depends_build-append \
     554        port:texlive-basic \
     555        port:texlive-latex
     556
     557    configure.args-replace --disable-docs --enable-docs
     558}
     559default_variants-append +docs
     560
    556561# GraphicsMagick and octave need to be built with the same C++ standard library
    557562# or else undefined symbols:
     
    603608        file delete ${destroot}${prefix}/bin/${bin}
    604609
    605         # put version number in man file to avoid conflict
    606         move ${destroot}${prefix}/share/man/man1/${bin}.1 ${destroot}${prefix}/share/man/man1/${bin}-${version}.1
     610        if { [variant_isset docs] } {
     611            # put version number in man file to avoid conflict
     612            move ${destroot}${prefix}/share/man/man1/${bin}.1 ${destroot}${prefix}/share/man/man1/${bin}-${version}.1
     613        }
    607614    }
    608615
Note: See TracChangeset for help on using the changeset viewer.