[arch-commits] Commit in gnuplot/trunk (PKGBUILD lua53_compat.patch)

Anatol Pomozov anatolik at archlinux.org
Wed May 6 19:48:31 UTC 2015


    Date: Wednesday, May 6, 2015 @ 21:48:31
  Author: anatolik
Revision: 238565

upgpkg: gnuplot 5.0.0-3

Lua 5.3 rebuild. Enable lua 5.2 source compatibility.

Added:
  gnuplot/trunk/lua53_compat.patch
Modified:
  gnuplot/trunk/PKGBUILD

--------------------+
 PKGBUILD           |   12 ++++++++----
 lua53_compat.patch |   13 +++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-05-06 19:46:11 UTC (rev 238564)
+++ PKGBUILD	2015-05-06 19:48:31 UTC (rev 238565)
@@ -5,7 +5,7 @@
 
 pkgname=gnuplot
 pkgver=5.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others" 
 arch=('i686' 'x86_64') 
 url="http://www.gnuplot.info" 
@@ -14,8 +14,10 @@
 makedepends=('texinfo' 'texlive-core' 'emacs' 'texlive-latexextra')
 options=('!makeflags')
 install=gnuplot.install
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
-sha1sums=('ca5163e3cb466b4aeb878f1173b0fe624367f08a')
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+        "lua53_compat.patch")
+sha1sums=('ca5163e3cb466b4aeb878f1173b0fe624367f08a'
+          '9005fa9e4da91ceedb8ccd1d761866e7b064f8b1')
 
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -26,12 +28,14 @@
   sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
   -e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
   src/variable.c
+
+  patch -p1 < "$srcdir"/lua53_compat.patch
 }
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 
-   WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
+  WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
               --libexecdir=/usr/bin \
               --with-gihdir=/usr/share/gnuplot \
               --with-readline=gnu --enable-qt

Added: lua53_compat.patch
===================================================================
--- lua53_compat.patch	                        (rev 0)
+++ lua53_compat.patch	2015-05-06 19:48:31 UTC (rev 238565)
@@ -0,0 +1,13 @@
+diff --git a/term/lua.trm b/term/lua.trm
+index af63d68..474221f 100644
+--- a/term/lua.trm
++++ b/term/lua.trm
+@@ -110,6 +110,8 @@ TERM_PUBLIC void LUA_boxed_text __PROTO((unsigned int, unsigned int, int));
+ # define LUA_EXTERNAL_IMAGES 1
+ #endif
+ 
++
++#define LUA_COMPAT_APIINTCASTS
+ #include <lua.h>
+ #include <lualib.h>
+ #include <lauxlib.h>



More information about the arch-commits mailing list