[96463] trunk/dports/math/gnuplot/Portfile
macsforever2000 at macports.org
macsforever2000 at macports.org
Fri Aug 10 10:29:24 PDT 2012
Revision: 96463
https://trac.macports.org/changeset/96463
Author: macsforever2000 at macports.org
Date: 2012-08-10 10:29:21 -0700 (Fri, 10 Aug 2012)
Log Message:
-----------
gnuplot: Add emacs variant. Fix for potential activation errors. (#18913)
Modified Paths:
--------------
trunk/dports/math/gnuplot/Portfile
Modified: trunk/dports/math/gnuplot/Portfile
===================================================================
--- trunk/dports/math/gnuplot/Portfile 2012-08-10 16:32:54 UTC (rev 96462)
+++ trunk/dports/math/gnuplot/Portfile 2012-08-10 17:29:21 UTC (rev 96463)
@@ -78,6 +78,7 @@
--enable-histograms \
--infodir='\${prefix}/share/info' \
--mandir='\${prefix}/share/man' \
+ --without-lisp-files \
--disable-wxwidgets \
--without-latex \
--without-tutorial \
@@ -99,6 +100,12 @@
default_variants +x11
}
+variant emacs description "An emacs mode for working with gnuplot" {
+ depends_build-append path:bin/emacs:emacs
+ configure.args-delete --without-lisp-files
+ configure.args-append --with-lisp-files --with-lispdir=${prefix}/share/emacs/site-lisp
+}
+
variant luaterm description "Enable lua-based terminals" {
depends_lib-append port:lua
configure.args-delete --without-lua
@@ -144,10 +151,33 @@
default_variants +luaterm +pangocairo +x11
-destroot.destdir prefix=${destroot}${prefix}
-
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 ${distpath}/${name}.pdf \
${destroot}${prefix}/share/doc/${name}/
}
+
+# this temporary workaround removes files that accidentally circumvented destroot
+# and were installed straight into ${prefix}/share/texmf/tex/latex/gnuplot
+#
+# it may be removed after a while; it is only a problem for those who installed
+# with +tutorial
+pre-activate {
+ if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot.cfg] {
+ delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot.cfg
+ }
+ if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.sty] {
+ delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.sty
+ }
+
+ # only since 4.6.0
+ if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.tex] {
+ delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz.tex
+ }
+ if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz-common.tex] {
+ delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz-common.sty
+ }
+ if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/t-gnuplot-lua-tikz.tex] {
+ delete ${prefix}/share/texmf/tex/latex/gnuplot/t-gnuplot-lua-tikz.tex
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120810/98e4cc31/attachment.html>
More information about the macports-changes
mailing list