Ticket #18913: patch-gnuplot-emacs2.diff
File patch-gnuplot-emacs2.diff, 2.6 KB (added by mojca (Mojca Miklavec), 13 years ago) |
---|
-
Portfile
PortGroup xcodeversion 1.0 6 6 7 7 name gnuplot 8 8 version 4.6.0 9 revision 1 9 10 categories math science 10 11 # the license has some inconvenient requirements that we're not meeting 11 12 # to be allowed to distribute binaries … … configure.args --with-readline=${prefix} \ 79 80 --enable-histograms \ 80 81 --infodir='\${prefix}/share/info' \ 81 82 --mandir='\${prefix}/share/man' \ 83 --without-lisp-files \ 82 84 --disable-wxwidgets \ 83 85 --without-latex \ 84 86 --without-tutorial \ … … variant tutorial description "Build the tutorial (requires a tex install)" { 142 144 configure.args-append --with-tutorial 143 145 } 144 146 145 default_variants +luaterm +pangocairo 147 variant emacs description "An emacs mode for working with gnuplot" { 148 depends_build-append path:bin/emacs:emacs 149 configure.args-delete --without-lisp-files 150 configure.args-append --with-lisp-files --with-lispdir=${prefix}/share/emacs/site-lisp 151 } 146 152 147 de stroot.destdir prefix=${destroot}${prefix}153 default_variants +luaterm +pangocairo 148 154 149 155 post-destroot { 150 156 xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} 151 157 xinstall -m 0644 ${distpath}/${name}.pdf \ 152 158 ${destroot}${prefix}/share/doc/${name}/ 153 159 } 160 161 # this temporary workaround removes files that accidentally circumvented destroot 162 # and were installed straight into ${prefix}/share/texmf/tex/latex/gnuplot 163 # 164 # it may be removed after a while; it is only a problem for those who installed 165 # with +tutorial 166 pre-activate { 167 if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot.cfg] { 168 delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot.cfg 169 } 170 if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.sty] { 171 delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.sty 172 } 173 174 # only since 4.6.0 175 if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.tex] { 176 delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.tex 177 } 178 if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz-common.tex] { 179 delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz-common.sty 180 } 181 if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/t-gnuplot-lua-tikz.tex] { 182 delete ${prefix}/share/texmf/tex/latex/gnuplot/t-gnuplot-lua-tikz.tex 183 } 184 }