1 # Contributor: Stephen Caraher <moskvax@gmail.com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
8 pkgdesc="A command-line driven interactive function and data plotting utility -- cvs veesion"
9 url="http://www.gnuplot.info/"
11 depends=('gd' 'pango' 'lua')
12 optdepends=('wxgtk: for wxterminal' 'texlive-core: for searching for fonts (kpsexpand)')
13 makedepends=('texinfo' 'cvs' 'libpng' 'freetype2' 'libjpeg-turbo' 'emacs' 'texlive-latexextra')
15 provides=('gnuplot=4.5')
16 install=$pkgname.install
22 _cvsroot=":pserver:anonymous:@gnuplot.cvs.sourceforge.net:/cvsroot/$_cvsmod"
26 msg "Connecting to gnuplot.cvs.sourceforge.net..."
27 if [ -d $_cvsmod/CVS ]; then
28 echo "fetching only new files"
32 echo "fetching whole branch"
33 cvs -z3 -d$_cvsroot co -D $pkgver -P $_cvsmod
36 msg "CVS checkout done or server timeout"
37 [[ -d $srcdir/$_cvsmod-build ]] && rm -fr $srcdir/$_cvsmod-build
38 cp -r $srcdir/$_cvsmod $srcdir/$_cvsmod-build
40 cd $srcdir/$_cvsmod-build
41 msg "Running prepare script..."
43 # fix default source location; use the GDFONTPATH variable
44 # to modify at runtime
45 sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' \
47 sed -i 's|/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
50 msg "Running configure script..."
51 ./configure --prefix=/usr --libexecdir=/usr/lib \
52 --with-gihdir=/usr/share/gnuplot --with-readline=gnu \
53 --with-kpsexpand --enable-thin-spline --with-lua --without-lisp-files
55 msg "Running make & make install..."
56 make pkglibexecdir=/usr/bin
59 cd $srcdir/$_cvsmod-build
60 make DESTDIR=$pkgdir X11_DRIVER_DIR=$pkgdir/usr/bin install
61 install -D ../$_cvsmod/Copyright \
62 $pkgdir/usr/share/licenses/$pkgname/Copyright