sci-visualization/gnuplot: Update live ebuild for HEAD.
authorUlrich Müller <ulm@gentoo.org>
Sun, 19 Nov 2017 11:31:48 +0000 (12:31 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sun, 19 Nov 2017 11:46:25 +0000 (12:46 +0100)
- Sync with ebuild for stable branch.
- configure.in is configure.ac now.
- Option --without-pdf has been removed from upstream configure.

Package-Manager: Portage-2.3.14, Repoman-2.3.6

sci-visualization/gnuplot/gnuplot-5.1.9999.ebuild

index cbc8a7447f0a6e1756bc6fa3b08f057ff2a5e9d9..c2be8b92510f54e0804a1b0b64b7e169e1f72f5f 100644 (file)
@@ -67,7 +67,9 @@ E_SITEFILE="lisp/50${PN}-gentoo.el"
 TEXMF="${EPREFIX}/usr/share/texmf-site"
 
 src_prepare() {
-       default
+       eapply "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch
+       eapply "${FILESDIR}"/${PN}-5.0.6-no-picins.patch
+       eapply_user
 
        if [[ -z ${PV%%*9999} ]]; then
                local dir
@@ -98,7 +100,6 @@ src_prepare() {
                environment variables. See the FAQ file in /usr/share/doc/${PF}/
                for more information.'
 
-       mv configure.in configure.ac || die
        eautoreconf
 
        # Make sure we don't mix build & host flags.
@@ -125,7 +126,6 @@ src_configure() {
        export CC_FOR_BUILD=${BUILD_CC}
 
        econf \
-               --without-pdf \
                --with-texdir="${TEXMF}/tex/latex/${PN}" \
                --with-readline=$(usex readline gnu builtin) \
                $(use_with bitmap bitmap-terminals) \
@@ -160,7 +160,14 @@ src_compile() {
        if use doc; then
                # Avoid sandbox violation in epstopdf/ghostscript
                addpredict /var/cache/fontconfig
-               emake -C docs gnuplot.pdf
+               if use cairo; then
+                       emake -C docs pdf
+               else
+                       ewarn "Cannot build figures unless cairo is enabled."
+                       ewarn "Building documentation without figures."
+                       emake -C docs pdf_nofig
+                       mv docs/nofigures.pdf docs/gnuplot.pdf || die
+               fi
                emake -C tutorial pdf
        fi
 }