summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus D. Hanwell <cryos@gentoo.org>2006-01-29 19:38:57 +0000
committerMarcus D. Hanwell <cryos@gentoo.org>2006-01-29 19:38:57 +0000
commitb1de347e80fc17bc3ef5f9b83bd05d3bb2b18843 (patch)
tree189a529a0984903d836053272e7940a0ff485c55 /sci-visualization/gnuplot
parentMoved media-gfx/fig2sxd to sci-visualization/fig2sxd (diff)
downloadgentoo-2-b1de347e80fc17bc3ef5f9b83bd05d3bb2b18843.tar.gz
gentoo-2-b1de347e80fc17bc3ef5f9b83bd05d3bb2b18843.tar.bz2
gentoo-2-b1de347e80fc17bc3ef5f9b83bd05d3bb2b18843.zip
Moved from media-gfx/gnuplot to sci-visualization/gnuplot.
Diffstat (limited to 'sci-visualization/gnuplot')
-rw-r--r--sci-visualization/gnuplot/ChangeLog188
-rw-r--r--sci-visualization/gnuplot/Manifest43
-rw-r--r--sci-visualization/gnuplot/files/digest-gnuplot-3.8j1
-rw-r--r--sci-visualization/gnuplot/files/digest-gnuplot-3.8j-r11
-rw-r--r--sci-visualization/gnuplot/files/digest-gnuplot-4.0-r11
-rw-r--r--sci-visualization/gnuplot/files/gnuplot-3.8j-amd64.diff10
-rw-r--r--sci-visualization/gnuplot/files/header-order.patch44
-rw-r--r--sci-visualization/gnuplot/files/pdflib-6-compat.patch14
-rw-r--r--sci-visualization/gnuplot/gnuplot-3.8j-r1.ebuild80
-rw-r--r--sci-visualization/gnuplot/gnuplot-3.8j.ebuild73
-rw-r--r--sci-visualization/gnuplot/gnuplot-4.0-r1.ebuild142
-rw-r--r--sci-visualization/gnuplot/metadata.xml8
12 files changed, 605 insertions, 0 deletions
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog
new file mode 100644
index 000000000000..83eebea49bf9
--- /dev/null
+++ b/sci-visualization/gnuplot/ChangeLog
@@ -0,0 +1,188 @@
+# ChangeLog for media-gfx/gnuplot
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.1 2006/01/29 19:38:57 cryos Exp $
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org>
+ +files/gnuplot-3.8j-amd64.diff, +files/pdflib-6-compat.patch,
+ +files/header-order.patch, +metadata.xml, +gnuplot-3.8j.ebuild,
+ +gnuplot-3.8j-r1.ebuild, +gnuplot-4.0-r1.ebuild:
+ Moved from media-gfx/gnuplot to sci-visualization/gnuplot.
+
+ 22 Jan 2006; Marius Mauch <genone@gentoo.org> gnuplot-3.8j.ebuild,
+ gnuplot-3.8j-r1.ebuild, gnuplot-4.0-r1.ebuild:
+ Replacing pdflib use flag with pdf use flag
+
+ 13 Dec 2005; Donnie Berkholz <spyderous@gentoo.org>;
+ gnuplot-4.0-r1.ebuild:
+ Add modular X dependencies.
+
+ 24 May 2005; Donnie Berkholz <spyderous@gentoo.org>;
+ +files/pdflib-6-compat.patch, gnuplot-4.0-r1.ebuild:
+ (#86008) Add pdflib-6-compat.patch to fix compilation against >=pdflib-6.
+ PDF_open_fp suddenly disappeared, so switch to PDF_open_file.
+
+ 30 Mar 2005; Michael Hanselmann <hansmi@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Stable on ppc.
+
+ 14 Mar 2005; Gustavo Zacarias <gustavoz@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Stable on sparc
+
+ 02 Mar 2005; Lina Pezzella <j4rg0n@gentoo.org> gnuplot-3.8j.ebuild,
+ gnuplot-4.0-r1.ebuild:
+ Stable ppc-macos
+
+ 15 Feb 2005; Markus Rothe <corsair@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Stable on ppc64
+
+ 06 Feb 2005; Stephanie Lockwood-Childs <wormo@gentoo.org>
+ gnuplot-4.0-r1.ebuild:
+ Added ~ppc to KEYWORDS (passes 'maketest' unlike 3.8j, planning
+ to stabilize soon)
+
+ 07 Feb 2005; Bryan Østergaard <kloeri@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Stable on alpha.
+
+ 05 Feb 2005; Steve Arnold <nerdboy@gentoo.org> gnuplot-4.0-r1.ebuild,
+ -gnuplot-4.0.ebuild:
+ bumped to x86 and amd64 (both tested) and removed 4.0 ebuild as superfluous
+
+ 02 Feb 2005; Lina Pezzella <j4rg0n@gentoo.org> gnuplot-3.8j.ebuild:
+ Unstable ppc-macos
+
+ 30 Jan 2005; Markus Rothe <corsair@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Added ~ppc64 to KEYWORDS
+
+ 02 Jan 2005; Lina Pezzella <j4rg0n@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Unstable ppc-macos.
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 20 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Support for emacs. Thanks to P.L.Hayes <paul@wolfbone.ath.cx>; bug #66765.
+
+ 17 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Detects XEmacs correctly; bug #66765.
+
+ 05 Oct 2004; Jason Wever <weeve@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Added ~sparc keyword.
+
+*gnuplot-4.0-r1 (07 Aug 2004)
+
+ 07 Aug 2004; Olivier Fisette <ribosome@gentoo.org> gnuplot-4.0-r1.ebuild:
+ Moved help and demo files to "/usr/share/gnuplot".
+ Added gnuplot tutorial.
+ Added documentation and files related to PostScript
+ creation. (Fixes bug #41729.)
+ Provided access to /dev/svga from inside the sandbox
+ environment. (Fixes bug #41711.)
+
+ 31 Jul 2004; Tom Gall <tgall@gentoo.org> gnuplot-3.8j.ebuild:
+ stable on ppc64, bug #57147
+
+ 02 Jul 2004; Grant Goodyear <g2boojum@gentoo.org> gnuplot-4.0.ebuild:
+ Replaced specific dep on xemacs to virtual/xemacs.
+
+ 29 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> gnuplot-4.0.ebuild:
+ Marked ~amd64.
+
+ 07 Jun 2004; Aron Griffis <agriffis@gentoo.org> gnuplot-3.8j-r1.ebuild,
+ gnuplot-3.8j.ebuild, gnuplot-4.0.ebuild:
+ Fix use invocation
+
+ 05 May 2004; Patrick Kursawe <phosphan@gentoo.org> gnuplot-4.0.ebuild,
+ files/header-order.patch:
+ Added a patch for bug #49263 and corrected the header.
+
+ 05 May 2004; Bryan Østergaard <kloeri@gentoo.org> gnuplot-3.8j.ebuild:
+ Stable on alpha.
+
+*gnuplot-4.0 (27 Apr 2004)
+
+ 27 Apr 2004; Grant Goodyear <g2boojum@gentoo.org> +gnuplot-4.0.ebuild:
+ New version. Thanks to Frank Hellmuth and Tsyganenko.
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> gnuplot-3.8j-r1.ebuild:
+ Add inherit eutils
+
+*gnuplot-3.8j-r1 (08 Apr 2004)
+
+ 08 Apr 2004; Travis Tilley <lv@gentoo.org> gnuplot-3.8j-r1.ebuild,
+ files/gnuplot-3.8j-amd64.diff:
+ added a patch to fix a segfault on amd64 - see bug #46981 for more info
+
+ 06 Apr 2004; Aron Griffis <agriffis@gentoo.org> gnuplot-3.8j.ebuild:
+ Stable on ia64
+
+ 09 Feb 2004; <augustus@gentoo.org> gnuplot-3.8j.ebuild:
+ Added ~amd64 to keywords.
+
+*gnuplot-3.8j (08 Feb 2004)
+
+ 08 Feb 2004; Grant Goodyear <g2boojum@gentoo.org> gnuplot-3.7.1-r3.ebuild,
+ gnuplot-3.7.2.ebuild, gnuplot-3.7.3-r1.ebuild, gnuplot-3.7.3.ebuild,
+ gnuplot-3.8j.ebuild, metadata.xml:
+ Old versions fail to build due to some libpng setjmp weirdness that
+ I don't understand. I've added a new version that builds just fine
+ (on x86, at least), and is much less out-of-date. I've also removed
+ the versions that don't build.
+
+ 14 Dec 2003; Chuck Short <zul@gentoo.org> gnuplot-3.7.3-r1.ebuild:
+ Added amd64 keyword, closes #35807.
+
+*gnuplot-3.7.3-r1 (16 Oct 2003)
+
+ 16 Oct 2003; Mamoru KOMACHI <usata@gentoo.org> gnuplot-3.7.3-r1.ebuild:
+ Added doc and pdflib IUSE flags. doc IUSE flag is suggested by Thomas
+ Eckert <eckert.thomas@gmx.net> in Bug #31219
+
+ 25 Aug 2003; Jason Wever <weeve@gentoo.org> gnuplot-3.7.3.ebuild:
+ Marked stable for sparc.
+
+*gnuplot-3.7.3 (09 Mar 2003)
+
+ 10 Mar 2003; Aron Griffis <agriffis@gentoo.org> gnuplot-3.7.3.ebuild:
+ Mark stable on alpha
+
+ 09 Mar 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Version bump.
+
+*gnuplot-3.7.2 (06 Nov 2002)
+
+ 06 Nov 2002; Arcady Genkin <agenkin@gentoo.org> gnuplot-3.7.2.ebuild :
+
+ Version bump.
+
+*gnuplot-3.7.1-r3 (12 Apr 2002)
+
+ 10 Feb 2003; Peter Johanson <latexer@gentoo.org> gnuplot-3.7.1-r3.ebuild :
+ Added ~alpha to KEYWORDS.
+
+ 19 Sep 2002; Owen Stampflee <owen@gentoo.org> :
+ Added PPC to KEYWORDS.
+
+ 07 Sep 2002; George Shapovalov <george@gentoo.org> gnuplot-3.7.1-r3.ebuild :
+
+ corrected LICENSE (it has its own, not GPL-compatible)
+ corrected home page, added RDEPEND and some docs
+
+ 12 Apr 2002; Seemant Kulleen <seemant@gentoo.org> gnuplot-3.7.1-r3.ebuild :
+
+ Compile against newer libpng
+
+*gnuplot-3.7.1-r2 (12 Feb 2002)
+
+ 12 Feb 2002; T.Neidt <tod@gentoo.org> ChangeLog, gnuplot-3.7.1-r2.ebuild :
+
+ Added gnu plotutils support for gnuplot. Dependency and configuration for
+ plotutils requires 'plotutils' to be in the USE variable.
+
+*gnuplot-3.7.1-r1 (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest
new file mode 100644
index 000000000000..dfa31c2fde8f
--- /dev/null
+++ b/sci-visualization/gnuplot/Manifest
@@ -0,0 +1,43 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 b0c21ccd75cbc0be8aea09c9d939e2d5 ChangeLog 6467
+RMD160 fac84ec25d07a235fec8c636ab477409024d3078 ChangeLog 6467
+SHA256 63b3e5d40f65a47e251a0019843ffef1a8539f0c13f30a20785bd485542bc27c ChangeLog 6467
+MD5 4ca2057b57f07811b4da7bd8958d50c2 files/digest-gnuplot-3.8j 67
+RMD160 dcc77dcb3fa10b82a819deeef0623aa57ea1210c files/digest-gnuplot-3.8j 67
+SHA256 c1b537d191bb5e8e5eeb13523a8bdf40f89e6f651d443a855abf60208f05a4af files/digest-gnuplot-3.8j 67
+MD5 4ca2057b57f07811b4da7bd8958d50c2 files/digest-gnuplot-3.8j-r1 67
+RMD160 dcc77dcb3fa10b82a819deeef0623aa57ea1210c files/digest-gnuplot-3.8j-r1 67
+SHA256 c1b537d191bb5e8e5eeb13523a8bdf40f89e6f651d443a855abf60208f05a4af files/digest-gnuplot-3.8j-r1 67
+MD5 ca4f01c5e5b582017b2ff93ac26d650e files/digest-gnuplot-4.0-r1 66
+RMD160 40c8dda8c83c6a07a9552e7a25cbfb0db7ecdcf6 files/digest-gnuplot-4.0-r1 66
+SHA256 f3faf3dfcd68ec86da6abd798ca8c8da9a4ef35439feed046f4618c99fe6c7ed files/digest-gnuplot-4.0-r1 66
+MD5 d6d201e466142a8e19ab7a86da486dde files/gnuplot-3.8j-amd64.diff 329
+RMD160 fbc9606b2aa9346958eaee3ab9d28732f5356624 files/gnuplot-3.8j-amd64.diff 329
+SHA256 dde4957e83b7e779cf4c290da8349337333bbce1c22c125b15a29008300c3623 files/gnuplot-3.8j-amd64.diff 329
+MD5 6bd90ea3b0173af9fe24085ca37fbfa3 files/header-order.patch 1692
+RMD160 d9b45d996958e41b7b4bbc9d33cdb1018f718dc4 files/header-order.patch 1692
+SHA256 d0feb2cd13afae70d558fd3c4d1284383e7ccb4d1d14527d9564ffe0e9b0d7c1 files/header-order.patch 1692
+MD5 51225315add3dabcbbbde9e771bba24c files/pdflib-6-compat.patch 560
+RMD160 cb89ecb654a425925b34398a36cb83332fd438e2 files/pdflib-6-compat.patch 560
+SHA256 b1745ad75b58f081b7c9d5dc204f58f519b283aa116e2791c93128026b45700f files/pdflib-6-compat.patch 560
+MD5 114cb77fa0be46298cf0f59aec3e3d3a gnuplot-3.8j-r1.ebuild 2104
+RMD160 e727943bbd70f6ff621f248bf778aefb7cb5e1a5 gnuplot-3.8j-r1.ebuild 2104
+SHA256 95c096cf84caaba4b8818151bbc5d205c214e77c2ba4c3bb9377341b8a130cf5 gnuplot-3.8j-r1.ebuild 2104
+MD5 4526ea1fe0e918d4552551b513ebf41e gnuplot-3.8j.ebuild 1998
+RMD160 e7fb4dceaacdaf256537e74a0c47459430ea739e gnuplot-3.8j.ebuild 1998
+SHA256 8758bc0619a27724aa3f93a5d73fb142ec055f17267903c62739ee2a138ae5a4 gnuplot-3.8j.ebuild 1998
+MD5 d894525ac7f5227572fcf18638763870 gnuplot-4.0-r1.ebuild 4005
+RMD160 cfe9669bce1bd6949398febb63ed5a94f99f949b gnuplot-4.0-r1.ebuild 4005
+SHA256 c0f4c28a6537364bf63727aeaaf9d813b3e0a9892cd804fd8a53e3ab8c067fe3 gnuplot-4.0-r1.ebuild 4005
+MD5 0d0ccbc08efef8b97818204479649574 metadata.xml 220
+RMD160 f220b5db3b6de3f59e08ab45bfaae138eaae63ee metadata.xml 220
+SHA256 bcdae0f0c39207d696ad66e9c264b241cc25453afeadc3f6eb194a7e4452f770 metadata.xml 220
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFD09pu6J2i8a8J4okRAobbAJ4ibJhvy6chSdsLCzUepKVkIuFxOgCeM3zH
+sIvBAypb/2UQjAf86h9k2mE=
+=73mG
+-----END PGP SIGNATURE-----
diff --git a/sci-visualization/gnuplot/files/digest-gnuplot-3.8j b/sci-visualization/gnuplot/files/digest-gnuplot-3.8j
new file mode 100644
index 000000000000..a7642c4ce441
--- /dev/null
+++ b/sci-visualization/gnuplot/files/digest-gnuplot-3.8j
@@ -0,0 +1 @@
+MD5 929e210e2d6585d34b029fa59d39915f gnuplot-3.8j.0.tar.gz 2072307
diff --git a/sci-visualization/gnuplot/files/digest-gnuplot-3.8j-r1 b/sci-visualization/gnuplot/files/digest-gnuplot-3.8j-r1
new file mode 100644
index 000000000000..a7642c4ce441
--- /dev/null
+++ b/sci-visualization/gnuplot/files/digest-gnuplot-3.8j-r1
@@ -0,0 +1 @@
+MD5 929e210e2d6585d34b029fa59d39915f gnuplot-3.8j.0.tar.gz 2072307
diff --git a/sci-visualization/gnuplot/files/digest-gnuplot-4.0-r1 b/sci-visualization/gnuplot/files/digest-gnuplot-4.0-r1
new file mode 100644
index 000000000000..fe9dcb46f985
--- /dev/null
+++ b/sci-visualization/gnuplot/files/digest-gnuplot-4.0-r1
@@ -0,0 +1 @@
+MD5 66258443d9f93cc4f46b147dac33e63a gnuplot-4.0.0.tar.gz 2160918
diff --git a/sci-visualization/gnuplot/files/gnuplot-3.8j-amd64.diff b/sci-visualization/gnuplot/files/gnuplot-3.8j-amd64.diff
new file mode 100644
index 000000000000..04d38dc9338c
--- /dev/null
+++ b/sci-visualization/gnuplot/files/gnuplot-3.8j-amd64.diff
@@ -0,0 +1,10 @@
+--- src/fit.c.orig 2004-04-09 03:12:49.249588328 +0200
++++ src/fit.c 2004-04-09 03:11:56.805561032 +0200
+@@ -1685,6 +1685,7 @@
+ VA_START(args, fmt);
+ # if defined(HAVE_VFPRINTF) || _LIBC
+ vfprintf(STANDARD, fmt, args);
++ VA_START(args, fmt);
+ vfprintf(log_f, fmt, args);
+ # else
+ _doprnt(fmt, args, STANDARD);
diff --git a/sci-visualization/gnuplot/files/header-order.patch b/sci-visualization/gnuplot/files/header-order.patch
new file mode 100644
index 000000000000..82ba590fcb2b
--- /dev/null
+++ b/sci-visualization/gnuplot/files/header-order.patch
@@ -0,0 +1,44 @@
+--- src/term.h 2004-04-13 19:24:02.000000000 +0200
++++ src/term.h.new 2004-05-05 11:16:41.216200736 +0200
+@@ -270,6 +270,20 @@
+ /****************************************************************************/
+ /* These terminals can be used on any system */
+
++/* NOTE THAT PNG AND JPEG SUPPORT REQUIRE SEPARATE LIBRARIES */
++/* There are 2 flavors of PNG support */
++/* If you are using an old version of libgd in order to get true GIF support */
++/* then the best we can do is use a separate poor-quality PNG driver png.trm */
++/* But if you are using a newer libgd then it provides full blown support */
++/* for both PNG and JPEG in term/gd.trm */
++#ifdef HAVE_LIBPNG
++# if defined(HAVE_GD_PNG) || defined(HAVE_GD_JPEG)
++# include "gd.trm"
++# else
++# include "png.trm"
++# endif
++#endif
++
+ #ifdef X11
+ # include "x11.trm" /* X Window System */
+ # include "xlib.trm" /* dumps x11 commands to gpoutfile */
+@@ -351,20 +365,6 @@
+ # include "pdf.trm"
+ #endif
+
+-/* NOTE THAT PNG AND JPEG SUPPORT REQUIRE SEPARATE LIBRARIES */
+-/* There are 2 flavors of PNG support */
+-/* If you are using an old version of libgd in order to get true GIF support */
+-/* then the best we can do is use a separate poor-quality PNG driver png.trm */
+-/* But if you are using a newer libgd then it provides full blown support */
+-/* for both PNG and JPEG in term/gd.trm */
+-#ifdef HAVE_LIBPNG
+-# if defined(HAVE_GD_PNG) || defined(HAVE_GD_JPEG)
+-# include "gd.trm"
+-# else
+-# include "png.trm"
+-# endif
+-#endif
+-
+ /* postscript */
+ #include "post.trm"
+
diff --git a/sci-visualization/gnuplot/files/pdflib-6-compat.patch b/sci-visualization/gnuplot/files/pdflib-6-compat.patch
new file mode 100644
index 000000000000..3a25292d93d6
--- /dev/null
+++ b/sci-visualization/gnuplot/files/pdflib-6-compat.patch
@@ -0,0 +1,14 @@
+diff -urN gnuplot-4.0.0.orig/term/pdf.trm gnuplot-4.0.0/term/pdf.trm
+--- gnuplot-4.0.0.orig/term/pdf.trm 2004-04-10 08:55:17.000000000 -0700
++++ gnuplot-4.0.0/term/pdf.trm 2005-05-24 15:33:52.000000000 -0700
+@@ -343,7 +343,9 @@
+ myPDF = PDF_new();
+
+ /*open new PDF file */
+- if (PDF_open_fp(myPDF, gpoutfile) == -1)
++ /* HBB FIXME 20040708: PDF_open_file is deprecated, will have to
++ * be re-done again soon. */
++ if (PDF_open_file(myPDF, outstr) == -1)
+ int_error(NO_CARET, "Error:cannot open PDF file .\n");
+
+ #ifdef PDF_DONT_COMPRESS
diff --git a/sci-visualization/gnuplot/gnuplot-3.8j-r1.ebuild b/sci-visualization/gnuplot/gnuplot-3.8j-r1.ebuild
new file mode 100644
index 000000000000..d9d734a8422c
--- /dev/null
+++ b/sci-visualization/gnuplot/gnuplot-3.8j-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-3.8j-r1.ebuild,v 1.1 2006/01/29 19:38:57 cryos Exp $
+
+inherit eutils
+
+MY_P="${P}.0"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Quick and useful plotting program"
+HOMEPAGE="http://www.gnuplot.info/"
+SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
+
+LICENSE="gnuplot"
+SLOT="0"
+KEYWORDS="-x86 -ppc -sparc -alpha amd64 -ia64"
+IUSE="X readline svga plotutils pdf doc"
+
+# Old png driver seems to have problems; switching to gd instead
+DEPEND=">=media-libs/gd-2
+ pdf? ( media-libs/pdflib )
+ doc? ( virtual/tetex )
+ X? ( virtual/x11 )
+ svga? ( media-libs/svgalib )
+ readline? ( sys-libs/readline )
+ plotutils? ( media-libs/plotutils )"
+
+src_unpack() {
+ unpack ${A}
+ use amd64 && (cd ${S} ; epatch ${FILESDIR}/gnuplot-3.8j-amd64.diff)
+}
+
+src_compile() {
+ local myconf
+ #--with-lasergnu flag seems to be broken and I'm too lazy to fix now
+ #myconf=" --with-png --without-gd --with-lasergnu"
+ myconf=" --with-gd --with-plot=/usr/lib"
+ #--with-plot enables the Gnu plotutils library
+ #need to specify path to differentiate from Unix plot
+
+ use plotutils \
+ && myconf="${myconf} --with-plot=/usr/lib" \
+ || myconf="${myconf} --without-plot"
+
+ myconf="${myconf} `use_with pdf`"
+ myconf="${myconf} `use_with X x`"
+
+ use readline \
+ && myconf="${myconf} --with-readline=gnu" \
+ || myconf="${myconf} --with-readline"
+
+ myconf="${myconf} `use_with svga vga`"
+
+ econf \
+ --datadir=/usr/share/gnuplot \
+ ${myconf} || die
+
+ cd ${S}
+ emake || die
+
+ if use doc ; then
+ cd docs
+ make pdf || die
+ fi
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+
+ dodoc 0* ChangeLog CodeStyle Copyright NEWS PGPKEYS TODO
+ use doc && dodoc docs/gnuplot.pdf
+}
+
+pkg_postinst() {
+ if use svga ; then
+ einfo "In order to enable ordinary users to use SVGA console graphics"
+ einfo "gnuplot needs to be set up as setuid root. Please note that"
+ einfo "this is usually considered to be a security hazard."
+ einfo "As root, manually chmod u+s /usr/bin/gnuplot"
+ fi
+}
diff --git a/sci-visualization/gnuplot/gnuplot-3.8j.ebuild b/sci-visualization/gnuplot/gnuplot-3.8j.ebuild
new file mode 100644
index 000000000000..d6219645a84d
--- /dev/null
+++ b/sci-visualization/gnuplot/gnuplot-3.8j.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-3.8j.ebuild,v 1.1 2006/01/29 19:38:57 cryos Exp $
+
+MY_P="${P}.0"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Quick and useful plotting program"
+HOMEPAGE="http://www.gnuplot.info/"
+SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
+
+LICENSE="gnuplot"
+SLOT="0"
+KEYWORDS="x86 ppc ~sparc alpha amd64 ia64 ppc64 ppc-macos"
+IUSE="X readline svga plotutils pdf doc"
+
+# Old png driver seems to have problems; switching to gd instead
+DEPEND=">=media-libs/gd-2
+ pdf? ( media-libs/pdflib )
+ doc? ( virtual/tetex )
+ X? ( virtual/x11 )
+ svga? ( media-libs/svgalib )
+ readline? ( sys-libs/readline )
+ plotutils? ( media-libs/plotutils )"
+
+src_compile() {
+ local myconf
+ #--with-lasergnu flag seems to be broken and I'm too lazy to fix now
+ #myconf=" --with-png --without-gd --with-lasergnu"
+ myconf=" --with-gd --with-plot=/usr/lib"
+ #--with-plot enables the Gnu plotutils library
+ #need to specify path to differentiate from Unix plot
+
+ use plotutils \
+ && myconf="${myconf} --with-plot=/usr/lib" \
+ || myconf="${myconf} --without-plot"
+
+ myconf="${myconf} `use_with pdf`"
+ myconf="${myconf} `use_with X x`"
+
+ use readline \
+ && myconf="${myconf} --with-readline=gnu" \
+ || myconf="${myconf} --with-readline"
+
+ myconf="${myconf} `use_with svga vga`"
+
+ econf \
+ --datadir=/usr/share/gnuplot \
+ ${myconf} || die
+
+ cd ${S}
+ emake || die
+
+ if use doc ; then
+ cd docs
+ make pdf || die
+ fi
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+
+ dodoc 0* ChangeLog CodeStyle Copyright NEWS PGPKEYS TODO
+ use doc && dodoc docs/gnuplot.pdf
+}
+
+pkg_postinst() {
+ if use svga ; then
+ einfo "In order to enable ordinary users to use SVGA console graphics"
+ einfo "gnuplot needs to be set up as setuid root. Please note that"
+ einfo "this is usually considered to be a security hazard."
+ einfo "As root, manually chmod u+s /usr/bin/gnuplot"
+ fi
+}
diff --git a/sci-visualization/gnuplot/gnuplot-4.0-r1.ebuild b/sci-visualization/gnuplot/gnuplot-4.0-r1.ebuild
new file mode 100644
index 000000000000..1a33fc6432b8
--- /dev/null
+++ b/sci-visualization/gnuplot/gnuplot-4.0-r1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.0-r1.ebuild,v 1.1 2006/01/29 19:38:57 cryos Exp $
+
+inherit eutils elisp-common
+
+MY_P="${P}.0"
+
+DESCRIPTION="Command-line driven interactive plotting program"
+HOMEPAGE="http://www.gnuplot.info/"
+SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
+
+LICENSE="gnuplot"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ~ia64 ppc ppc-macos ppc64 s390 sparc x86"
+IUSE="doc emacs gd ggi pdf plotutils png readline svga X xemacs"
+
+DEPEND="
+ xemacs? ( virtual/xemacs )
+ emacs? ( virtual/emacs !app-emacs/gnuplot-mode )
+ pdf? ( media-libs/pdflib )
+ ggi? ( media-libs/libggi )
+ png? ( media-libs/libpng )
+ gd? ( >=media-libs/gd-2 )
+ doc? ( virtual/tetex )
+ X? ( || ( x11-libs/libXaw virtual/x11 ) )
+ svga? ( media-libs/svgalib )
+ readline? ( >=sys-libs/readline-4.2 )
+ plotutils? ( media-libs/plotutils )"
+
+S=${WORKDIR}/${MY_P}
+
+E_SITEFILE="50gnuplot-gentoo.el"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/header-order.patch
+ epatch ${FILESDIR}/pdflib-6-compat.patch
+}
+
+src_compile() {
+ local myconf="--with-gihdir=/usr/share/${PN}/gih"
+
+ myconf="${myconf} $(use_with X x)"
+ myconf="${myconf} $(use_with svga linux-vga)"
+ myconf="${myconf} $(use_with gd)"
+ myconf="${myconf} $(use_with plotutils plot /usr/lib)"
+ myconf="${myconf} $(use_with png png /usr/lib)"
+ myconf="${myconf} $(use_with pdf pdf /usr/lib)"
+
+ use ggi \
+ && myconf="${myconf} --with-ggi=/usr/lib --with-xmi=/usr/lib" \
+ || myconf="${myconf} --without-ggi"
+
+ use readline \
+ && myconf="${myconf} --with-readline=gnu --enable-history-file" \
+ || myconf="${myconf} --with-readline"
+
+ myconf="${myconf} --without-lisp-files"
+
+ # This is a hack to avoid sandbox violations when using the Linux console.
+ # Creating the DVI and PDF tutorials require /dev/svga to build the
+ # example plots.
+ addwrite /dev/svga
+
+ econf ${myconf} || die
+ emake || die
+
+ if use doc ; then
+ cd docs
+ make pdf || die
+ cd ../tutorial
+ make pdf || die
+ fi
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+
+ if use emacs; then
+ cd lisp
+ einfo "Configuring gnuplot-mode for emacs..."
+ EMACS="emacs" lispdir="/usr/share/emacs/site-lisp/${PN}" econf || die
+ make DESTDIR=${D} install || die
+ make clean
+ cd ..
+
+ # Gentoo emacs site-lisp configuration
+ string="(add-to-list 'load-path \"/usr/share/emacs/site-lisp/${PN}\")"
+ echo -e ";;; Gnuplot site-lisp configuration\n\n${string}\n" > ${E_SITEFILE}
+ sed '/^;; move/,+4 d' lisp/dotemacs >> ${E_SITEFILE}
+ elisp-site-file-install ${E_SITEFILE}
+ fi
+
+ if use xemacs; then
+ cd lisp
+ einfo "Configuring gnuplot-mode for xemacs..."
+ EMACS="xemacs" lispdir="/usr/lib/xemacs/site-packages/${PN}" econf || die
+ make DESTDIR=${D} install || {
+ ewarn "Compiling/installing gnuplot-mode for xemacs has failed."
+ ewarn "I need xemacs-base to be installed before I can compile"
+ ewarn "the gnuplot-mode lisp files for xemacs successfully."
+ ewarn "Please try re-emerging me after app-xemacs/xemacs-base"
+ ewarn "has been successfuly emerged."
+ die
+ }
+ cd ..
+ fi
+
+
+ dodoc BUGS ChangeLog FAQ NEWS PATCHLEVEL PGPKEYS PORTING README* TODO VERSION
+
+ if use doc; then
+ # Demo files
+ insinto /usr/share/${PN}/demo
+ doins demo/*
+ # Manual
+ insinto /usr/share/doc/${PF}/manual
+ doins docs/gnuplot.pdf
+ # Tutorial
+ insinto /usr/share/doc/${PF}/tutorial
+ doins tutorial/{tutorial.dvi,tutorial.pdf}
+ # Documentation for making PostScript files
+ insinto /usr/share/doc/${PF}/psdoc
+ doins docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ if use svga ; then
+ einfo "In order to enable ordinary users to use SVGA console graphics"
+ einfo "gnuplot needs to be set up as setuid root. Please note that"
+ einfo "this is usually considered to be a security hazard."
+ einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-visualization/gnuplot/metadata.xml b/sci-visualization/gnuplot/metadata.xml
new file mode 100644
index 000000000000..b60eba97bb2a
--- /dev/null
+++ b/sci-visualization/gnuplot/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>g2boojum@gentoo.org</email>
+</maintainer>
+</pkgmetadata>