Ticket #38365: patch-gnuplot-notutorial.diff

File patch-gnuplot-notutorial.diff, 2.0 KB (added by mojca (Mojca Miklavec), 12 years ago)

A patch to remove +tutorial option from gnuplot

  • Portfile

    diff --git a/Portfile b/Portfile
    index 098ce2b..9f8a1e2 100644
    a b  
    33
    44PortSystem                  1.0
    55PortGroup                   xcodeversion 1.0
     6PortGroup                   texlive 1.0
    67
    78name                        gnuplot
    89version                     4.6.1
    variant qt description "Enable qt terminal" { 
    137138    configure.args-append   --enable-qt
    138139}
    139140
    140 variant tutorial description "Build the tutorial (requires a tex install)" {
    141     depends_lib-append      port:texlive-latex-extra
    142     configure.args-delete   --without-tutorial --without-latex
    143     configure.args-append   --with-tutorial
    144 }
    145 
    146141default_variants            +aquaterm +luaterm +pangocairo +x11
    147142
     143post-build {
     144    if {[variant_isset luaterm]} {
     145        system -W ${workpath}/${distname}/share/LaTeX "${prefix}/bin/lua ../../term/lua/gnuplot-tikz.lua style"
     146    }
     147}
     148
    148149post-destroot {
     150    if {[variant_isset luaterm]} {
     151        set texmf ${destroot}${texlive_texmfports}
     152        set luadir ${workpath}/${distname}/share/LaTeX
     153        xinstall -d -m 0755 ${texmf}/tex/context/third/gnuplot-lua-tikz
     154        xinstall -d -m 0755 ${texmf}/tex/generic/gnuplot-lua-tikz
     155        xinstall -d -m 0755 ${texmf}/tex/latex/gnuplot-lua-tikz
     156        xinstall -d -m 0755 ${texmf}/tex/plain/gnuplot-lua-tikz
     157
     158        xinstall -m 0644 ${luadir}/t-gnuplot-lua-tikz.tex \
     159            ${texmf}/tex/context/third/gnuplot-lua-tikz
     160        xinstall -m 0644 ${luadir}/gnuplot-lua-tikz-common.tex \
     161            ${texmf}/tex/generic/gnuplot-lua-tikz
     162        xinstall -m 0644 ${luadir}/gnuplot-lua-tikz.sty \
     163            ${texmf}/tex/latex/gnuplot-lua-tikz
     164        xinstall -m 0644 ${luadir}/gnuplot-lua-tikz.tex \
     165            ${texmf}/tex/plain/gnuplot-lua-tikz
     166    }
     167
    149168    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    150169    xinstall -m 0644 ${distpath}/${name}.pdf \
    151         ${destroot}${prefix}/share/doc/${name}/
     170        ${destroot}${prefix}/share/doc/${name}
    152171}
    153172
    154173# this temporary workaround removes files that accidentally circumvented destroot