[arch-commits] Commit in gnuplot/repos (8 files)

Anatol Pomozov anatolik at archlinux.org
Wed May 6 19:50:18 UTC 2015


    Date: Wednesday, May 6, 2015 @ 21:50:17
  Author: anatolik
Revision: 238566

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  gnuplot/repos/staging-i686/
  gnuplot/repos/staging-i686/PKGBUILD
    (from rev 238565, gnuplot/trunk/PKGBUILD)
  gnuplot/repos/staging-i686/gnuplot.install
    (from rev 238565, gnuplot/trunk/gnuplot.install)
  gnuplot/repos/staging-i686/lua53_compat.patch
    (from rev 238565, gnuplot/trunk/lua53_compat.patch)
  gnuplot/repos/staging-x86_64/
  gnuplot/repos/staging-x86_64/PKGBUILD
    (from rev 238565, gnuplot/trunk/PKGBUILD)
  gnuplot/repos/staging-x86_64/gnuplot.install
    (from rev 238565, gnuplot/trunk/gnuplot.install)
  gnuplot/repos/staging-x86_64/lua53_compat.patch
    (from rev 238565, gnuplot/trunk/lua53_compat.patch)

-----------------------------------+
 staging-i686/PKGBUILD             |   52 ++++++++++++++++++++++++++++++++++++
 staging-i686/gnuplot.install      |   31 +++++++++++++++++++++
 staging-i686/lua53_compat.patch   |   13 +++++++++
 staging-x86_64/PKGBUILD           |   52 ++++++++++++++++++++++++++++++++++++
 staging-x86_64/gnuplot.install    |   31 +++++++++++++++++++++
 staging-x86_64/lua53_compat.patch |   13 +++++++++
 6 files changed, 192 insertions(+)

Copied: gnuplot/repos/staging-i686/PKGBUILD (from rev 238565, gnuplot/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-05-06 19:50:17 UTC (rev 238566)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=gnuplot
+pkgver=5.0.0
+pkgrel=3
+pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others" 
+arch=('i686' 'x86_64') 
+url="http://www.gnuplot.info" 
+license=('custom') 
+depends=('readline' 'gd' 'wxgtk' 'cairo' 'libjpeg' 'lua' 'qt5-svg' 'qt5-tools' 'gnutls') 
+makedepends=('texinfo' 'texlive-core' 'emacs' 'texlive-latexextra')
+options=('!makeflags')
+install=gnuplot.install
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+        "lua53_compat.patch")
+sha1sums=('ca5163e3cb466b4aeb878f1173b0fe624367f08a'
+          '9005fa9e4da91ceedb8ccd1d761866e7b064f8b1')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # 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
+
+  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 \
+              --libexecdir=/usr/bin \
+              --with-gihdir=/usr/share/gnuplot \
+              --with-readline=gnu --enable-qt
+  make pkglibexecdir=/usr/bin
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make pkglibexecdir=/usr/bin DESTDIR="${pkgdir}" install install-info
+
+  install -Dm644 Copyright "${pkgdir}/usr/share/licenses/$pkgname/Copyright"
+
+  rm -f "${pkgdir}/usr/share/texmf-dist/ls-R"
+}

Copied: gnuplot/repos/staging-i686/gnuplot.install (from rev 238565, gnuplot/trunk/gnuplot.install)
===================================================================
--- staging-i686/gnuplot.install	                        (rev 0)
+++ staging-i686/gnuplot.install	2015-05-06 19:50:17 UTC (rev 238566)
@@ -0,0 +1,31 @@
+info_dir=/usr/share/info
+info_files=(gnuplot.info)
+
+post_install() {
+  if [ -f /usr/bin/mktexlsr ]; then
+    echo "Updating TeX tree..."
+    mktexlsr
+  fi
+
+for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_remove() {
+  if [ -f /usr/bin/mktexlsr ]; then
+    echo "Updating TeX tree..."
+    mktexlsr
+  fi
+}
+

Copied: gnuplot/repos/staging-i686/lua53_compat.patch (from rev 238565, gnuplot/trunk/lua53_compat.patch)
===================================================================
--- staging-i686/lua53_compat.patch	                        (rev 0)
+++ staging-i686/lua53_compat.patch	2015-05-06 19:50:17 UTC (rev 238566)
@@ -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>

Copied: gnuplot/repos/staging-x86_64/PKGBUILD (from rev 238565, gnuplot/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-05-06 19:50:17 UTC (rev 238566)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=gnuplot
+pkgver=5.0.0
+pkgrel=3
+pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others" 
+arch=('i686' 'x86_64') 
+url="http://www.gnuplot.info" 
+license=('custom') 
+depends=('readline' 'gd' 'wxgtk' 'cairo' 'libjpeg' 'lua' 'qt5-svg' 'qt5-tools' 'gnutls') 
+makedepends=('texinfo' 'texlive-core' 'emacs' 'texlive-latexextra')
+options=('!makeflags')
+install=gnuplot.install
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+        "lua53_compat.patch")
+sha1sums=('ca5163e3cb466b4aeb878f1173b0fe624367f08a'
+          '9005fa9e4da91ceedb8ccd1d761866e7b064f8b1')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # 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
+
+  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 \
+              --libexecdir=/usr/bin \
+              --with-gihdir=/usr/share/gnuplot \
+              --with-readline=gnu --enable-qt
+  make pkglibexecdir=/usr/bin
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make pkglibexecdir=/usr/bin DESTDIR="${pkgdir}" install install-info
+
+  install -Dm644 Copyright "${pkgdir}/usr/share/licenses/$pkgname/Copyright"
+
+  rm -f "${pkgdir}/usr/share/texmf-dist/ls-R"
+}

Copied: gnuplot/repos/staging-x86_64/gnuplot.install (from rev 238565, gnuplot/trunk/gnuplot.install)
===================================================================
--- staging-x86_64/gnuplot.install	                        (rev 0)
+++ staging-x86_64/gnuplot.install	2015-05-06 19:50:17 UTC (rev 238566)
@@ -0,0 +1,31 @@
+info_dir=/usr/share/info
+info_files=(gnuplot.info)
+
+post_install() {
+  if [ -f /usr/bin/mktexlsr ]; then
+    echo "Updating TeX tree..."
+    mktexlsr
+  fi
+
+for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_remove() {
+  if [ -f /usr/bin/mktexlsr ]; then
+    echo "Updating TeX tree..."
+    mktexlsr
+  fi
+}
+

Copied: gnuplot/repos/staging-x86_64/lua53_compat.patch (from rev 238565, gnuplot/trunk/lua53_compat.patch)
===================================================================
--- staging-x86_64/lua53_compat.patch	                        (rev 0)
+++ staging-x86_64/lua53_compat.patch	2015-05-06 19:50:17 UTC (rev 238566)
@@ -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