[arch-commits] CVS update of extra/science/gnuplot (PKGBUILD gnuplot.install)

Eric Belanger eric at archlinux.org
Tue Jun 19 15:21:26 EDT 2007


    Date: Tuesday, June 19, 2007 @ 15:21:26
  Author: eric
    Path: /home/cvs-extra/extra/science/gnuplot

Modified: PKGBUILD (1.11 -> 1.12) gnuplot.install (1.1 -> 1.2)

upgpkg: gnuplot 4.2.0-2
Fixed FS#7348 and  FS#7291


-----------------+
 PKGBUILD        |   15 +++++++++------
 gnuplot.install |   13 +++++++++++++
 2 files changed, 22 insertions(+), 6 deletions(-)


Index: extra/science/gnuplot/PKGBUILD
diff -u extra/science/gnuplot/PKGBUILD:1.11 extra/science/gnuplot/PKGBUILD:1.12
--- extra/science/gnuplot/PKGBUILD:1.11	Sun May 27 17:51:06 2007
+++ extra/science/gnuplot/PKGBUILD	Tue Jun 19 15:21:25 2007
@@ -1,18 +1,18 @@
-# $Id: PKGBUILD,v 1.11 2007/05/27 21:51:06 eric Exp $
+# $Id: PKGBUILD,v 1.12 2007/06/19 19:21:25 eric Exp $
 # Maintainer: damir <damir at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
 pkgname=gnuplot
 pkgver=4.2.0
-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"
-license="custom"
+license=('custom')
 depends=('libpng' 'libx11' 'gd' 'wxgtk')
 makedepends=('texinfo')
 install=gnuplot.install
-source=("http://puzzle.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
 md5sums=('f688a578ddb4c376fd7d91ce444a0745')
 
 build() {
@@ -20,16 +20,19 @@
   ./configure --prefix=/usr \
               --libexecdir=/usr/bin \
               --with-gihdir=/usr/share/gnuplot \
-              --datadir=/usr/share/gnuplot \
+              --datadir=/usr/share \
               --with-readline=gnu
   make pkglibexecdir=/usr/bin || return 1
   make prefix=$startdir/pkg/usr libexecdir=$startdir/pkg/usr/bin \
        pkglibexecdir=$startdir/pkg/usr/bin \
        GIHDIR=$startdir/pkg/usr/share/gnuplot \
-       TEXMFLOCAL=$startdir/pkg/usr/share/texmf \
+       TEXMFLOCAL=$startdir/pkg/usr/share/texmf-dist \
        datadir=$startdir/pkg/usr/share install
 
   install -D -m644 lisp/dotemacs $startdir/pkg/usr/share/emacs/site-lisp/dotemacs
   install -D -m644 Copyright $startdir/pkg/usr/share/licenses/$pkgname/Copyright
+
+  rm $startdir/pkg/usr/share/texmf-dist/ls-R
+
 }
 # vim: ts=2 sw=2 et ft=sh
Index: extra/science/gnuplot/gnuplot.install
diff -u extra/science/gnuplot/gnuplot.install:1.1 extra/science/gnuplot/gnuplot.install:1.2
--- extra/science/gnuplot/gnuplot.install:1.1	Sun May 27 17:51:06 2007
+++ extra/science/gnuplot/gnuplot.install	Tue Jun 19 15:21:26 2007
@@ -2,12 +2,25 @@
 cat << EOF
 ==> To add the gnuplot mode in Emacs, add the content of /usr/share/emacs/site-lisp/dotemacs to your ~/.emacs file.
 EOF
+
+  if [ -f /usr/bin/mktexlsr ]; then
+    echo "Updating TeX tree..."
+    mktexlsr
+  fi
+
 }
 
 post_upgrade() {
   post_install $1
 }
 
+post_remove() {
+  if [ -f /usr/bin/mktexlsr ]; then
+    echo "Updating TeX tree..."
+    mktexlsr
+  fi
+}
+
 op=$1
 shift
 $op $*




More information about the arch-commits mailing list