aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-06-04 19:14:30 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-06-04 19:14:30 +0000
commit258c388a2b5f349b17bc236ec2dbefc2b95665a6 (patch)
tree284fc72e1c87d5f36873f5fb4bf2c8b897fa5884
parentcfitsio-3.006-r1: proper libtoolization (diff)
downloadsci-258c388a2b5f349b17bc236ec2dbefc2b95665a6.tar.gz
sci-258c388a2b5f349b17bc236ec2dbefc2b95665a6.tar.bz2
sci-258c388a2b5f349b17bc236ec2dbefc2b95665a6.zip
added pgplot-5.2.2-r1
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@216 32389bae-6d03-0410-99cf-db05cde120eb
-rw-r--r--sci-libs/pgplot/ChangeLog23
-rw-r--r--sci-libs/pgplot/Manifest8
-rw-r--r--sci-libs/pgplot/files/digest-pgplot-5.2.2-r11
-rw-r--r--sci-libs/pgplot/files/pgplot-compile-setup.patch49
-rw-r--r--sci-libs/pgplot/files/pgplot-drivers.patch67
-rw-r--r--sci-libs/pgplot/files/pgplot-makemake.patch35
-rw-r--r--sci-libs/pgplot/files/pgplot-path.patch18
-rw-r--r--sci-libs/pgplot/metadata.xml17
-rw-r--r--sci-libs/pgplot/pgplot-5.2.2-r1.ebuild89
9 files changed, 307 insertions, 0 deletions
diff --git a/sci-libs/pgplot/ChangeLog b/sci-libs/pgplot/ChangeLog
new file mode 100644
index 000000000..b8c8bebdc
--- /dev/null
+++ b/sci-libs/pgplot/ChangeLog
@@ -0,0 +1,23 @@
+# ChangeLog for sci-libs/pgplot
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*pgplot-5.2.2-r1 (03 Jun 2006)
+
+ 03 Jun 2006; Sebastien Fabbro <seb@ist.utl.pt>, +pgplot-5.2.2-r1.ebuild
+ +files/pgplot-path.patch, +metadata.xml
+ Tested on ~amd64, more doc install, and motif flag,
+ added also a longdescription in metadata.xml.
+ Does not build on gfortran (%val not yet implemented in gfortran)
+
+ 30 Mar 2006; Aron Griffis <agriffis@gentoo.org> pgplot-5.2.2.ebuild:
+ Mark 5.2.2 ~ia64
+
+*pgplot-5.2.2 (16 Dec 2005)
+
+ 16 Dec 2005; Donnie Berkholz <spyderous@gentoo.org>;
+ +files/pgplot-compile-setup.patch, +files/pgplot-drivers.patch,
+ +files/pgplot-makemake.patch, +metadata.xml, +pgplot-5.2.2.ebuild:
+ A Fortran- or C-callable, device-independent graphics package for making
+ simple scientific graphs.
+
diff --git a/sci-libs/pgplot/Manifest b/sci-libs/pgplot/Manifest
new file mode 100644
index 000000000..4910a9b5b
--- /dev/null
+++ b/sci-libs/pgplot/Manifest
@@ -0,0 +1,8 @@
+MD5 c22d9458f79a2a2c88f1ff61b7a5fb12 ChangeLog 850
+MD5 ef0e808c413549505a4c1f147da16e3d files/digest-pgplot-5.2.2-r1 62
+MD5 4f8ac4db89ea14bd777557e225b200e4 files/pgplot-compile-setup.patch 1600
+MD5 d097f08f0c028bea283303904d133116 files/pgplot-drivers.patch 4024
+MD5 1e3d99da0d638ce62b08ca0958eb66fb files/pgplot-makemake.patch 1040
+MD5 0cb095a0d125a87be8913a52fba1d346 files/pgplot-path.patch 604
+MD5 2493804fa5e419d764f281ff796b60b5 metadata.xml 669
+MD5 d0f8509db8d48be4f01d8b4371eed20e pgplot-5.2.2-r1.ebuild 2031
diff --git a/sci-libs/pgplot/files/digest-pgplot-5.2.2-r1 b/sci-libs/pgplot/files/digest-pgplot-5.2.2-r1
new file mode 100644
index 000000000..db6acf6cd
--- /dev/null
+++ b/sci-libs/pgplot/files/digest-pgplot-5.2.2-r1
@@ -0,0 +1 @@
+MD5 e8a6e8d0d5ef9d1709dfb567724525ae pgplot522.tar.gz 1197397
diff --git a/sci-libs/pgplot/files/pgplot-compile-setup.patch b/sci-libs/pgplot/files/pgplot-compile-setup.patch
new file mode 100644
index 000000000..d7c281057
--- /dev/null
+++ b/sci-libs/pgplot/files/pgplot-compile-setup.patch
@@ -0,0 +1,49 @@
+diff -ur pgplot.orig/sys_linux/g77_gcc.conf pgplot/sys_linux/g77_gcc.conf
+--- pgplot.orig/sys_linux/g77_gcc.conf 1999-07-05 11:10:33.000000000 -0700
++++ pgplot/sys_linux/g77_gcc.conf 2005-12-15 19:59:28.000000000 -0800
+@@ -5,7 +5,7 @@
+ # X2DRIV (/xdisp and /figdisp).
+ # The arguments needed by the C compiler to locate X-window include files.
+
+- XINCL="-I/usr/X11R6/include"
++# XINCL="-I/usr/X11R6/include"
+
+ # Optional: Needed by XMDRIV (/xmotif).
+ # The arguments needed by the C compiler to locate Motif, Xt and
+@@ -40,7 +40,8 @@
+ # The FORTRAN compiler flags to use when compiling the pgplot library.
+ # (NB. makemake prepends -c to $FFLAGC where needed)
+
+- FFLAGC="-u -Wall -fPIC -O"
++ FFLAGOPT="-O"
++ FFLAGC="-u -Wall -fPIC $FFLAGOPT"
+
+ # Mandatory.
+ # The FORTRAN compiler flags to use when compiling fortran demo programs.
+@@ -56,13 +57,14 @@
+
+ # Mandatory.
+ # The C compiler flags to use when compiling the pgplot library.
+-
+- CFLAGC="-Wall -fPIC -DPG_PPU -O"
++
++ CFLAGOPT="-O"
++ CFLAGC="-Wall -fPIC -DPG_PPU $CFLAGOPT"
+
+ # Mandatory.
+ # The C compiler flags to use when compiling C demo programs.
+
+- CFLAGD="-Wall -O"
++ CFLAGD="-Wall $CFLAGOPT"
+
+ # Optional: Only needed if the cpgplot library is to be compiled.
+ # The flags to use when running pgbind to create the C pgplot wrapper
+@@ -74,7 +76,7 @@
+ # The library-specification flags to use when linking normal pgplot
+ # demo programs.
+
+- LIBS="-L/usr/X11R6/lib -lX11"
++ LIBS="-lX11"
+
+ # Optional: Needed by XMDRIV (/xmotif).
+ # The library-specification flags to use when linking motif
diff --git a/sci-libs/pgplot/files/pgplot-drivers.patch b/sci-libs/pgplot/files/pgplot-drivers.patch
new file mode 100644
index 000000000..18eeebb28
--- /dev/null
+++ b/sci-libs/pgplot/files/pgplot-drivers.patch
@@ -0,0 +1,67 @@
+diff -ur pgplot.orig/drivers.list pgplot/drivers.list
+--- pgplot.orig/drivers.list 1999-05-03 22:02:15.000000000 -0700
++++ pgplot/drivers.list 2005-12-15 20:17:23.000000000 -0800
+@@ -16,8 +16,8 @@
+ ! EXDRIV 2 /EXCL Talaris/EXCL printers, portrait
+ ! GCDRIV 0 /GENICOM Genicom 4410 dot-matrix printer, landscape
+ ! Caution: use of GIDRIV may require a license from Unisys:
+-! GIDRIV 1 /GIF GIF-format file, landscape
+-! GIDRIV 2 /VGIF GIF-format file, portrait
++ GIDRIV 1 /GIF GIF-format file, landscape
++ GIDRIV 2 /VGIF GIF-format file, portrait
+ ! GLDRIV 1 /HPGL Hewlett-Packard HP-GL plotters, landscape Std F77
+ ! GLDRIV 2 /VHPGL Hewlett-Packard HP-GL plotters, portrait Std F77
+ ! GODRIV 0 /GOC GOC Sigma T5670 terminal VMS
+@@ -32,19 +32,19 @@
+ ! LSDRIV 2 /VLIPS2 Canon LaserShot printer (portrait)
+ ! LNDRIV 0 /LN03 Dec LN03-PLUS Laser printer (landscape) VMS
+ ! LVDRIV 0 /LVN03 Dec LN03-PLUS Laser printer (portrait) VMS
+-! LXDRIV 0 /LATEX LaTeX picture environment
++ LXDRIV 0 /LATEX LaTeX picture environment
+ ! MFDRIV 0 /FILE PGPLOT graphics metafile
+ ! NEDRIV 0 /NEXT Computers running NeXTstep operating system
+ NUDRIV 0 /NULL Null device (no output) Std F77
+ ! PGDRIV 0 /PGMF PGPLOT metafile (new format, experimental) Std F77
+-! PNDRIV 1 /PNG Portable Network Graphics file C
+-! PNDRIV 2 /TPNG Portable Network Graphics file - transparent background C
++ PNDRIV 1 /PNG Portable Network Graphics file C
++ PNDRIV 2 /TPNG Portable Network Graphics file - transparent background C
+ ! PPDRIV 1 /PPM Portable Pixel Map file, landscape
+ ! PPDRIV 2 /VPPM Portable PIxel Map file, portrait
+-! PSDRIV 1 /PS PostScript printers, monochrome, landscape Std F77
+-! PSDRIV 2 /VPS Postscript printers, monochrome, portrait Std F77
+-! PSDRIV 3 /CPS PostScript printers, color, landscape Std F77
+-! PSDRIV 4 /VCPS PostScript printers, color, portrait Std F77
++ PSDRIV 1 /PS PostScript printers, monochrome, landscape Std F77
++ PSDRIV 2 /VPS Postscript printers, monochrome, portrait Std F77
++ PSDRIV 3 /CPS PostScript printers, color, landscape Std F77
++ PSDRIV 4 /VCPS PostScript printers, color, portrait Std F77
+ ! PXDRIV 0 /PRINTRONI Printronix P300 or P600 dot-matrix printer
+ ! QMDRIV 1 /QMS QUIC devices (QMS and Talaris), landscape Std F77
+ ! QMDRIV 2 /VQMS QUIC devices (QMS and Talaris), portrait Std F77
+@@ -54,7 +54,7 @@
+ ! TTDRIV 2 /GF GraphOn terminal Std F77
+ ! TTDRIV 3 /RETRO RetroGraphics terminal Std F77
+ ! TTDRIV 4 /GTERM GTERM Tektronix terminal emulator Std F77
+-! TTDRIV 5 /XTERM XTERM Tektronix terminal emulator Std F77
++ TTDRIV 5 /XTERM XTERM Tektronix terminal emulator Std F77
+ ! TTDRIV 6 /ZSTEM ZSTEM terminal emulator Std F77
+ ! TTDRIV 7 /V603 Visual 603 terminal Std F77
+ ! TTDRIV 8 /KRM3 Kermit 3 on IBM-PC Std F77
+@@ -64,12 +64,12 @@
+ ! VADRIV 0 /VCANON Canon Laser printer, LBP-8/A2, portrait
+ ! VBDRIV 0 /VBCANON Canon Laser printer (bitmap version), portrait
+ ! VTDRIV 0 /VT125 Dec Regis terminals (VT125 etc.) Std F77
+-! WDDRIV 1 /WD X Window dump file, landscape
+-! WDDRIV 2 /VWD X Window dump file, portrait
++ WDDRIV 1 /WD X Window dump file, landscape
++ WDDRIV 2 /VWD X Window dump file, portrait
+ ! WSDRIV 0 /WS VAX workstations running VWS software VMS
+ ! X2DRIV 0 /XDISP PGDISP or FIGDISP server for X workstations C
+-! XWDRIV 1 /XWINDOW Workstations running X Window System C
+-! XWDRIV 2 /XSERVE Persistent window on X Window System C
++ XWDRIV 1 /XWINDOW Workstations running X Window System C
++ XWDRIV 2 /XSERVE Persistent window on X Window System C
+ ! ZEDRIV 0 /ZETA Zeta 8 Digital Plotter
+ !
+ ! The following drivers can only be used in PGPLOT installations on MS-DOS
diff --git a/sci-libs/pgplot/files/pgplot-makemake.patch b/sci-libs/pgplot/files/pgplot-makemake.patch
new file mode 100644
index 000000000..440f95d72
--- /dev/null
+++ b/sci-libs/pgplot/files/pgplot-makemake.patch
@@ -0,0 +1,35 @@
+--- pgplot.orig/makemake 1999-05-04 15:35:43.000000000 -0700
++++ pgplot/makemake 2005-12-15 20:48:42.000000000 -0800
+@@ -666,7 +666,7 @@
+ # the library don't have to list a slew of other implementation-specific
+ # libraries when they link their executables.
+ #
+-SHARED_LIB_LIBS=$SHARED_LIB_LIBS
++SHARED_LIB_LIBS=-lpng
+ #
+ # Ranlib command if required
+ #
+@@ -681,7 +681,7 @@
+ OBSOLETE_ROUTINES=$OBSOLETE_ROUTINES
+ DRIVERS=$DRIV_LIST
+ PGDISP_ROUTINES=$PGDISP_ROUTINES
+-DEMOS=$DEMOS
++#DEMOS=$DEMOS
+ #
+ #-----------------------------------------------------------------------
+ # Target "all" makes everything (except the library of obsolete routines)
+@@ -1025,12 +1025,12 @@
+ grivas.o : $(DRVDIR)/gadef.h
+ grtv00.o : $(DRVDIR)/imdef.h
+ pgxwin.o : $(DRVDIR)/pgxwin.h
+-pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h
++pndriv.o :
+
+ x2driv.o figdisp_comm.o: $(DRVDIR)/commands.h
+
+
+-cpg: libcpgplot.a cpgplot.h cpgdemo
++cpg: libcpgplot.a cpgplot.h
+ @echo ' '
+ @echo '*** Finished compilation of the C PGPLOT wrapper library ***'
+ @echo ' '
diff --git a/sci-libs/pgplot/files/pgplot-path.patch b/sci-libs/pgplot/files/pgplot-path.patch
new file mode 100644
index 000000000..990d9104c
--- /dev/null
+++ b/sci-libs/pgplot/files/pgplot-path.patch
@@ -0,0 +1,18 @@
+diff -Nur pgplot/makehtml pgplot.new/makehtml
+--- pgplot/makehtml 1997-02-26 21:54:09.000000000 +0000
++++ pgplot.new/makehtml 2006-06-04 16:21:34.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+
+ $, = ' '; # set output field separator
+ $\ = "\n"; # set output record separator
+diff -Nur pgplot/maketex pgplot.new/maketex
+--- pgplot/maketex 1996-04-16 22:51:24.000000000 +0100
++++ pgplot.new/maketex 2006-06-04 16:21:47.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+
+ $, = ' '; # set output field separator
+ $\ = "\n"; # set output record separator
diff --git a/sci-libs/pgplot/metadata.xml b/sci-libs/pgplot/metadata.xml
new file mode 100644
index 000000000..84d256153
--- /dev/null
+++ b/sci-libs/pgplot/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+<email>spyderous@gentoo.org</email>
+<name>Donnie Berkholz</name>
+</maintainer>
+<longdescription>
+The PGPLOT Graphics Subroutine Library is a Fortran- or C-callable,
+device-independent graphics package for making simple scientific
+graphs. It is intended for making graphical images of publication
+quality with minimum effort on the part of the user. For most
+applications, the program can be device-independent, and the output
+can be directed to the appropriate device at run time.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-libs/pgplot/pgplot-5.2.2-r1.ebuild b/sci-libs/pgplot/pgplot-5.2.2-r1.ebuild
new file mode 100644
index 000000000..330f3a108
--- /dev/null
+++ b/sci-libs/pgplot/pgplot-5.2.2-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs fortran
+
+FORTRAN="g77"
+MY_P="${PN}${PV//.}"
+DESCRIPTION="A Fortran- or C-callable, device-independent graphics package for making simple scientific graphs"
+HOMEPAGE="http://www.astro.caltech.edu/~tjp/pgplot/"
+SRC_URI="ftp://ftp.astro.caltech.edu/pub/pgplot/${MY_P}.tar.gz"
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~x86"
+IUSE="examples motif"
+RDEPEND="|| ( x11-libs/libX11 virtual/x11 )
+ media-libs/libpng
+ motif? ( virtual/motif )"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${PN}-drivers.patch
+ epatch ${FILESDIR}/${PN}-makemake.patch
+ epatch ${FILESDIR}/${PN}-compile-setup.patch
+ epatch ${FILESDIR}/${PN}-path.patch
+
+ cp sys_linux/g77_gcc.conf local.conf
+
+ sed -i \
+ -e "s:FCOMPL=.*:FCOMPL=\"${FORTRANC}\":g" \
+ -e "s:FFLAGOPT=.*:FFLAGOPT=\"${FFLAGS:- -O2}\":g" \
+ -e "s:CCOMPL=.*:CCOMPL=\"$(tc-getCC)\":g" \
+ -e "s:CFLAGOPT=.*:CFLAGOPT=\"${CFLAGS}\":g" \
+ local.conf
+
+ sed -i \
+ -e "s:/usr/local/pgplot:/usr/$(get_libdir)/pgplot:" \
+ src/grgfil.f
+
+ if use motif; then
+ sed -i \
+ -e '/XMDRIV/s/!//' \
+ drivers.list
+ fi
+}
+
+src_compile() {
+ ./makemake ${S} linux
+
+ emake -j1 || die "emake failed"
+
+ # Build C portion
+ make cpg || die "make cpg failed"
+
+ # this just cleans out unneeded files
+ make clean
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/pgplot
+ doins grfont.dat grexec.f grpckg1.inc rgb.txt
+ dolib.a libpgplot.a
+ dolib.so libpgplot.so
+ dobin pgxwin_server
+
+ # C binding
+ insinto /usr/include
+ doins cpgplot.h
+ if use motif; then
+ doins XmPgplot.h
+ dolib.a libXmPgplot.a
+ fi
+ dolib.a libcpgplot.a
+
+ dodoc aaaread.me pgplot.doc cpg/cpgplot.doc \
+ applications/curvefit/curvefit.doc
+ dohtml pgplot.html
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/* cpg/cpgdemo.c
+ insinto /usr/share/doc/${PF}/pgm
+ doins pgmf/* drivers/xmotif/pgmdemo.c
+ fi
+}