From ebfff671d9dafad8cbeb0da8f97bbbeaef1d35df Mon Sep 17 00:00:00 2001 From: Donnie Berkholz Date: Thu, 28 Sep 2006 10:46:45 -0700 Subject: Add live cvs gnuplot --- sci-visualization/gnuplot/Manifest | 19 +++ .../gnuplot/files/digest-gnuplot-9999 | 1 + .../gnuplot/files/gnuplot-3.8j-amd64.diff | 10 ++ sci-visualization/gnuplot/files/header-order.patch | 44 ++++++ .../gnuplot/files/pdflib-6-compat.patch | 14 ++ sci-visualization/gnuplot/gnuplot-9999.ebuild | 151 +++++++++++++++++++++ 6 files changed, 239 insertions(+) create mode 100644 sci-visualization/gnuplot/Manifest create mode 100644 sci-visualization/gnuplot/files/digest-gnuplot-9999 create mode 100644 sci-visualization/gnuplot/files/gnuplot-3.8j-amd64.diff create mode 100644 sci-visualization/gnuplot/files/header-order.patch create mode 100644 sci-visualization/gnuplot/files/pdflib-6-compat.patch create mode 100644 sci-visualization/gnuplot/gnuplot-9999.ebuild (limited to 'sci-visualization') diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest new file mode 100644 index 0000000..089ed18 --- /dev/null +++ b/sci-visualization/gnuplot/Manifest @@ -0,0 +1,19 @@ +AUX gnuplot-3.8j-amd64.diff 329 RMD160 fbc9606b2aa9346958eaee3ab9d28732f5356624 SHA1 b00974c5fc81803795c7f5e8144afe78f0214ad1 SHA256 dde4957e83b7e779cf4c290da8349337333bbce1c22c125b15a29008300c3623 +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 +AUX header-order.patch 1692 RMD160 d9b45d996958e41b7b4bbc9d33cdb1018f718dc4 SHA1 2e59302f469c31ee14bbe6b2f1658e571342e7e9 SHA256 d0feb2cd13afae70d558fd3c4d1284383e7ccb4d1d14527d9564ffe0e9b0d7c1 +MD5 6bd90ea3b0173af9fe24085ca37fbfa3 files/header-order.patch 1692 +RMD160 d9b45d996958e41b7b4bbc9d33cdb1018f718dc4 files/header-order.patch 1692 +SHA256 d0feb2cd13afae70d558fd3c4d1284383e7ccb4d1d14527d9564ffe0e9b0d7c1 files/header-order.patch 1692 +AUX pdflib-6-compat.patch 560 RMD160 cb89ecb654a425925b34398a36cb83332fd438e2 SHA1 42d4bb19118e61730a82cabbf4fdbd59bb95c75d SHA256 b1745ad75b58f081b7c9d5dc204f58f519b283aa116e2791c93128026b45700f +MD5 51225315add3dabcbbbde9e771bba24c files/pdflib-6-compat.patch 560 +RMD160 cb89ecb654a425925b34398a36cb83332fd438e2 files/pdflib-6-compat.patch 560 +SHA256 b1745ad75b58f081b7c9d5dc204f58f519b283aa116e2791c93128026b45700f files/pdflib-6-compat.patch 560 +EBUILD gnuplot-9999.ebuild 4161 RMD160 eec3f1c9214624ed3557f15cc1cb6df87d59fc96 SHA1 c85d83ea8aeb0a920ec102f044986f4295cb6f30 SHA256 fc3b6d1a7daa508453e75b7858fda4d5512b6afa581c2d27815a65e81bfe442a +MD5 1d58430eafe3c5dfdd9bbb2751c32aca gnuplot-9999.ebuild 4161 +RMD160 eec3f1c9214624ed3557f15cc1cb6df87d59fc96 gnuplot-9999.ebuild 4161 +SHA256 fc3b6d1a7daa508453e75b7858fda4d5512b6afa581c2d27815a65e81bfe442a gnuplot-9999.ebuild 4161 +MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-gnuplot-9999 1 +RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-gnuplot-9999 1 +SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-gnuplot-9999 1 diff --git a/sci-visualization/gnuplot/files/digest-gnuplot-9999 b/sci-visualization/gnuplot/files/digest-gnuplot-9999 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sci-visualization/gnuplot/files/digest-gnuplot-9999 @@ -0,0 +1 @@ + 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 0000000..04d38dc --- /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 0000000..82ba590 --- /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 0000000..3a25292 --- /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-9999.ebuild b/sci-visualization/gnuplot/gnuplot-9999.ebuild new file mode 100644 index 0000000..11af1c5 --- /dev/null +++ b/sci-visualization/gnuplot/gnuplot-9999.ebuild @@ -0,0 +1,151 @@ +# 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.2 2006/03/24 16:40:14 agriffis Exp $ + +inherit cvs eutils elisp-common + +ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" +ECVS_MODULE="gnuplot" + +#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}/${PN} + +E_SITEFILE="50gnuplot-gentoo.el" + +src_unpack() { + cvs_src_unpack + cd "${S}" + ./prepare +} + +#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 +} -- cgit v1.2.3-65-gdbad