From 64db7d5a9056c8bd5148e261c3519f8b0139fc3b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 9 Apr 2016 10:12:54 +0200 Subject: pgplot neu --- pgplot/ChangeLog | 12 ++++++++++++ pgplot/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ pgplot/pndriv.c.patch | 11 +++++++++++ 3 files changed, 67 insertions(+) create mode 100644 pgplot/ChangeLog create mode 100644 pgplot/PKGBUILD create mode 100644 pgplot/pndriv.c.patch (limited to 'pgplot') diff --git a/pgplot/ChangeLog b/pgplot/ChangeLog new file mode 100644 index 00000000..698da3ee --- /dev/null +++ b/pgplot/ChangeLog @@ -0,0 +1,12 @@ + +ChangeLog for PGPlot PKGBUILD + +* pgplot-5.2.2-7 (2015-05-09 - AstroFloyd) + Hijacked package from jmorin (last version is 3 years old) + Split build in build() and package() (install) parts + Link to X11 using the -lX11 flag + Added ChangeLog + +* pgplot-5.2.2-6 (2012-09-20 - jmorin) + Last version from AUR3, hijacked by AstroFloyd for AUR4 + diff --git a/pgplot/PKGBUILD b/pgplot/PKGBUILD new file mode 100644 index 00000000..88504b8f --- /dev/null +++ b/pgplot/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: AstroFloyd < AstroFloyd [at] gmail [dt] com > +# Contributor: Julien Morin +# Contributor: Stefan Husmann + +pkgname=pgplot +pkgver=5.2.2 +pkgrel=7 +pkgdesc="Fortran- or C-callable, device-independent graphics package for making simple scientific graphs." +url="http://www.astro.caltech.edu/~tjp/pgplot/" +license=('custom') +options=(!makeflags) +arch=('i686' 'x86_64') +makedepends=('gcc-fortran') +depends=('libpng' 'libx11') +changelog=ChangeLog +source=(ftp://ftp.astro.caltech.edu/pub/pgplot/${pkgname}522.tar.gz pndriv.c.patch) +md5sums=('e8a6e8d0d5ef9d1709dfb567724525ae' '25535f059b2e39ea44f93c24a41abacd') + +build() { + cd $srcdir/$pkgname + sed -i 's/! CGDRIV/CGDRIV/' drivers.list + sed -i 's/! LXDRIV/LXDRIV/' drivers.list + #sed -i 's/! PNDRIV/PNDRIV/' drivers.list + sed -i 's/! PSDRIV/PSDRIV/' drivers.list + sed -i 's/! TTDRIV 5/TTDRIV 5/' drivers.list + sed -i 's/! XWDRIV/XWDRIV/1' drivers.list + patch -p0 -i "${srcdir}"/pndriv.c.patch + + ./makemake . linux g77_gcc + sed -i 's=pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h=#pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h=' makefile + make FCOMPL=gfortran SHARED_LIB_LIBS="-lpng -lz -lX11" all cpg || return 1 +} + +package() { + cd $srcdir/$pkgname + install -D -m644 libpgplot.a $pkgdir/usr/lib/libpgplot.a + install -D -m755 libpgplot.so $pkgdir/usr/lib/libpgplot.so + install -D -m644 grfont.dat $pkgdir/usr/lib/grfont.dat + install -D -m644 rgb.txt $pkgdir/usr/lib/rgb.txt + install -D -m755 pgxwin_server $pkgdir/usr/bin/pgxwin_server + install -D -m644 libcpgplot.a $pkgdir/usr/lib/libcpgplot.a + install -D -m644 cpgplot.h $pkgdir/usr/include/cpgplot.h + install -D -m644 copyright.notice $pkgdir/usr/share/licenses/custom/$pkgname/copyright.notice +} diff --git a/pgplot/pndriv.c.patch b/pgplot/pndriv.c.patch new file mode 100644 index 00000000..4d8a22d3 --- /dev/null +++ b/pgplot/pndriv.c.patch @@ -0,0 +1,11 @@ +-- drivers/pndriv.c 2012-02-05 18:35:41.172818257 +0100 ++++ drivers/pndriv.c 2012-02-05 18:36:34.389199228 +0100 +@@ -222,7 +222,7 @@ + return; + } + +- if (setjmp(png_ptr->jmpbuf)) { /* not really sure what I'm doing here... */ ++ if (setjmp(png_jmpbuf(png_ptr))) {/* not really sure what I'm doing here... */ + fprintf(stderr,"%s: error in libpng while writing file %s, plotting disabled\n", png_ident, filename); + png_destroy_write_struct(&png_ptr,&info_ptr); + dev->error = true; -- cgit v1.2.3-70-g09d2