diff --git a/Portfile b/Portfile
index 098ce2b..9f8a1e2 100644
a
|
b
|
|
3 | 3 | |
4 | 4 | PortSystem 1.0 |
5 | 5 | PortGroup xcodeversion 1.0 |
| 6 | PortGroup texlive 1.0 |
6 | 7 | |
7 | 8 | name gnuplot |
8 | 9 | version 4.6.1 |
… |
… |
variant qt description "Enable qt terminal" { |
137 | 138 | configure.args-append --enable-qt |
138 | 139 | } |
139 | 140 | |
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 | | |
146 | 141 | default_variants +aquaterm +luaterm +pangocairo +x11 |
147 | 142 | |
| 143 | post-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 | |
148 | 149 | post-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 | |
149 | 168 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} |
150 | 169 | xinstall -m 0644 ${distpath}/${name}.pdf \ |
151 | | ${destroot}${prefix}/share/doc/${name}/ |
| 170 | ${destroot}${prefix}/share/doc/${name} |
152 | 171 | } |
153 | 172 | |
154 | 173 | # this temporary workaround removes files that accidentally circumvented destroot |