summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2005-12-16 05:34:39 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2005-12-16 05:34:39 +0000
commit4e8bd29c99a34ae419939c841bf20dda124a8178 (patch)
treefd4a6a038089ea1a15d105b36c5aa5a8368f8c39 /sci-libs/pgplot
parentAnother crystallography package. This one considers itself a versatile, SHELX... (diff)
downloadgentoo-2-4e8bd29c99a34ae419939c841bf20dda124a8178.tar.gz
gentoo-2-4e8bd29c99a34ae419939c841bf20dda124a8178.tar.bz2
gentoo-2-4e8bd29c99a34ae419939c841bf20dda124a8178.zip
A Fortran- or C-callable, device-independent graphics package for making simple scientific graphs.
(Portage version: 2.0.53)
Diffstat (limited to 'sci-libs/pgplot')
-rw-r--r--sci-libs/pgplot/ChangeLog12
-rw-r--r--sci-libs/pgplot/Manifest5
-rw-r--r--sci-libs/pgplot/files/digest-pgplot-5.2.21
-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/metadata.xml9
-rw-r--r--sci-libs/pgplot/pgplot-5.2.2.ebuild64
8 files changed, 242 insertions, 0 deletions
diff --git a/sci-libs/pgplot/ChangeLog b/sci-libs/pgplot/ChangeLog
new file mode 100644
index 000000000000..1e79f43d5b86
--- /dev/null
+++ b/sci-libs/pgplot/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sci-libs/pgplot
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/pgplot/ChangeLog,v 1.1 2005/12/16 05:34:39 spyderous Exp $
+
+*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 000000000000..e1745e598f8b
--- /dev/null
+++ b/sci-libs/pgplot/Manifest
@@ -0,0 +1,5 @@
+MD5 ef0e808c413549505a4c1f147da16e3d files/digest-pgplot-5.2.2 62
+MD5 4f8ac4db89ea14bd777557e225b200e4 files/pgplot-compile-setup.patch 1600
+MD5 d097f08f0c028bea283303904d133116 files/pgplot-drivers.patch 4024
+MD5 1e3d99da0d638ce62b08ca0958eb66fb files/pgplot-makemake.patch 1040
+MD5 d32534793850acdad09b05af4ae4d563 pgplot-5.2.2.ebuild 1390
diff --git a/sci-libs/pgplot/files/digest-pgplot-5.2.2 b/sci-libs/pgplot/files/digest-pgplot-5.2.2
new file mode 100644
index 000000000000..db6acf6cdfa4
--- /dev/null
+++ b/sci-libs/pgplot/files/digest-pgplot-5.2.2
@@ -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 000000000000..d7c281057eef
--- /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 000000000000..18eeebb28f79
--- /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 000000000000..440f95d72870
--- /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/metadata.xml b/sci-libs/pgplot/metadata.xml
new file mode 100644
index 000000000000..211b8bd0f0a4
--- /dev/null
+++ b/sci-libs/pgplot/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+</pkgmetadata>
diff --git a/sci-libs/pgplot/pgplot-5.2.2.ebuild b/sci-libs/pgplot/pgplot-5.2.2.ebuild
new file mode 100644
index 000000000000..4db49c030e36
--- /dev/null
+++ b/sci-libs/pgplot/pgplot-5.2.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/pgplot/pgplot-5.2.2.ebuild,v 1.1 2005/12/16 05:34:39 spyderous Exp $
+
+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="~x86"
+IUSE=""
+RDEPEND="|| ( x11-libs/libX11 virtual/x11 )
+ media-libs/libpng"
+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
+
+ 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
+}
+
+src_compile() {
+ ./makemake ${S} linux
+
+ emake -j1 || die "emake failed"
+
+ # Build C portion
+ make cpg
+
+ # this just cleans out unneeded files
+ make clean
+}
+
+src_install() {
+ insinto /usr/lib/pgplot
+ doins grfont.dat
+
+ dolib.a libpgplot.a
+ dolib.so libpgplot.so
+ dodoc pgplot.doc
+ dobin pgxwin_server
+
+ # C binding
+ insinto /usr/include
+ doins cpgplot.h
+ dolib.a libcpgplot.a
+}