[145831] trunk/dports/math/octave-devel/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Thu Feb 18 08:31:00 PST 2016
Revision: 145831
https://trac.macports.org/changeset/145831
Author: mcalhoun at macports.org
Date: 2016-02-18 08:31:00 -0800 (Thu, 18 Feb 2016)
Log Message:
-----------
octave-devel, octave-devel-rc, octave-devel-release: add docs variant to make building documentation optional
Modified Paths:
--------------
trunk/dports/math/octave-devel/Portfile
Modified: trunk/dports/math/octave-devel/Portfile
===================================================================
--- trunk/dports/math/octave-devel/Portfile 2016-02-18 16:26:43 UTC (rev 145830)
+++ trunk/dports/math/octave-devel/Portfile 2016-02-18 16:31:00 UTC (rev 145831)
@@ -268,7 +268,8 @@
--disable-jit \
--without-sndfile \
--without-portaudio \
- --without-magick
+ --without-magick \
+ --disable-docs
# in configure.ac, listed as one of "[p]rograms used when running Octave"
depends_lib-append port:python27
@@ -291,18 +292,6 @@
depends_lib-append port:fontconfig
depends_lib-append port:pcre
-#--disable-docs
-depends_build-append port:texinfo
-configure.env-append \
- MAKEINFO=${prefix}/bin/makeinfo \
- TEXI2DVI=${prefix}/bin/texi2dvi \
- TEXI2PDF=${prefix}/bin/texi2pdf
-
-# see https://lists.macosforge.org/pipermail/macports-dev/2016-January/032293.html
-depends_build-append \
- port:texlive-basic \
- port:texlive-latex
-
#--without-amd
#--without-camd
#--without-colamd
@@ -553,6 +542,22 @@
}
default_variants-append +app
+variant docs description {build documentation files} {
+ depends_build-append port:texinfo
+ configure.env-append \
+ MAKEINFO=${prefix}/bin/makeinfo \
+ TEXI2DVI=${prefix}/bin/texi2dvi \
+ TEXI2PDF=${prefix}/bin/texi2pdf
+
+ # see https://lists.macosforge.org/pipermail/macports-dev/2016-January/032293.html
+ depends_build-append \
+ port:texlive-basic \
+ port:texlive-latex
+
+ configure.args-replace --disable-docs --enable-docs
+}
+default_variants-append +docs
+
# GraphicsMagick and octave need to be built with the same C++ standard library
# or else undefined symbols:
# "Magick::Image::ping(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)"
@@ -602,8 +607,10 @@
# delete since just a link to versioned name
file delete ${destroot}${prefix}/bin/${bin}
- # put version number in man file to avoid conflict
- move ${destroot}${prefix}/share/man/man1/${bin}.1 ${destroot}${prefix}/share/man/man1/${bin}-${version}.1
+ if { [variant_isset docs] } {
+ # put version number in man file to avoid conflict
+ move ${destroot}${prefix}/share/man/man1/${bin}.1 ${destroot}${prefix}/share/man/man1/${bin}-${version}.1
+ }
}
# put any startup commands in ${destroot}${prefix}/share/octave/${version}/m/startup/octaverc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160218/55469acd/attachment.html>
More information about the macports-changes
mailing list