git » gnuplot.git » commit efeb4fe

fix lua/tikz terminal, upstream bug 3441899

author Ronald van Haren
2012-02-29 10:26:26 UTC
committer Ronald van Haren
2012-02-29 10:26:26 UTC
parent ac164b9400a7172c7e926855f3d31a8e629cfc71

fix lua/tikz terminal, upstream bug 3441899

PKGBUILD +8 -3
lua_tikz.patch +10 -0

diff --git a/PKGBUILD b/PKGBUILD
index c874659..69b1a11 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=gnuplot 
 pkgver=4.4.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others" 
 arch=('i686' 'x86_64') 
 url="http://www.gnuplot.info" 
@@ -12,12 +12,17 @@ license=('custom')
 depends=('readline' 'gd' 'wxgtk' 'cairo' 'libjpeg' 'lua') 
 makedepends=('texinfo' 'emacs' 'texlive-core' 'texlive-latexextra')
 install=gnuplot.install 
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
-sha1sums=('d4f143eade1f8d8b27be44cbda431d37a71c6a31')
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+	"lua_tikz.patch")
+sha1sums=('d4f143eade1f8d8b27be44cbda431d37a71c6a31'
+          'd84518c7e46fc0912554c28ba1fc8cdb70d4ee30')
 
 build() {
   cd $srcdir/$pkgname-$pkgver
 
+  # upstram patch to fix lua/tikz terminal
+  patch -Np0 -i ${srcdir}/lua_tikz.patch  
+
   # fix default source location; use the GDFONTPATH variable to modify at runtime 
   sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c
 
diff --git a/lua_tikz.patch b/lua_tikz.patch
new file mode 100644
index 0000000..f9a939d
--- /dev/null
+++ b/lua_tikz.patch
@@ -0,0 +1,10 @@
+--- term/lua/gnuplot-tikz-444.lua	Sun Nov 13 00:57:15 2011
++++ term/lua/gnuplot-tikz.lua	Fri Nov 25 01:11:38 2011
+@@ -251,6 +251,7 @@
+   gp.write(string.format("\\begin{tikzpicture}[gnuplot%s]\n",global_opt))
+   gp.write(string.format("%%%% generated with GNUPLOT %sp%s (%s; terminal rev. %s, script rev. %s)\n%%%% %s\n",
+       term.gp_version, term.gp_patchlevel,
++      _VERSION,
+       string.sub(term.lua_term_revision,7,-3),
+       pgf.REVISION,os.date()))
+   if font ~= "" then
\ No newline at end of file