diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2007-10-14 16:26:29 -0700 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2007-10-14 16:26:29 -0700 |
commit | 14523eadfe27f21ff25aabe08c7d642566f5f03d (patch) | |
tree | 942c2a2d9c7b5f5b379fbeae309eb1f23f516903 /sci-visualization | |
parent | Drop unneeded packages and packages that exist in other repos. (diff) | |
download | dberkholz-14523eadfe27f21ff25aabe08c7d642566f5f03d.tar.gz dberkholz-14523eadfe27f21ff25aabe08c7d642566f5f03d.tar.bz2 dberkholz-14523eadfe27f21ff25aabe08c7d642566f5f03d.zip |
Restore live gnuplot ebuild.
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/gnuplot/Manifest | 19 | ||||
-rw-r--r-- | sci-visualization/gnuplot/files/gnuplot-3.8j-amd64.diff | 10 | ||||
-rw-r--r-- | sci-visualization/gnuplot/files/header-order.patch | 44 | ||||
-rw-r--r-- | sci-visualization/gnuplot/files/pdflib-6-compat.patch | 14 | ||||
-rw-r--r-- | sci-visualization/gnuplot/gnuplot-9999.ebuild | 163 |
5 files changed, 250 insertions, 0 deletions
diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest new file mode 100644 index 0000000..c3f5181 --- /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 4458 RMD160 3e2bf06e025713dcd1100bea469140fcdbc196b1 SHA1 caba25d87d4e6ebfa09252de033bc8d8ef359dd5 SHA256 428a163e6f91bdb8f6c5735ea3e755e37440992103ab1a68563fc61e734eec68 +MD5 6739258f757e44be6435d46895448cc2 gnuplot-9999.ebuild 4458 +RMD160 3e2bf06e025713dcd1100bea469140fcdbc196b1 gnuplot-9999.ebuild 4458 +SHA256 428a163e6f91bdb8f6c5735ea3e755e37440992103ab1a68563fc61e734eec68 gnuplot-9999.ebuild 4458 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gnuplot-9999 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-gnuplot-9999 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-gnuplot-9999 0 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..2ba5f8d --- /dev/null +++ b/sci-visualization/gnuplot/gnuplot-9999.ebuild @@ -0,0 +1,163 @@ +# 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 wxwidgets + +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 wxwindows" + +RDEPEND=" + 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 ) + svga? ( media-libs/svgalib ) + readline? ( >=sys-libs/readline-4.2 ) + plotutils? ( media-libs/plotutils ) + wxwindows? ( =x11-libs/wxGTK-2.6* + >=x11-libs/cairo-0.9 + >=x11-libs/pango-1.10.3 + >=x11-libs/gtk+-2.8 )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +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() { + if use wxwindows; then + WX_GTK_VER="2.6" + need-wxwidgets unicode + fi + + 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 wxwindows wxwidgets)" + 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:/dev/mouse:/dev/tts/0 + + 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 +} |