diff options
Diffstat (limited to 'sci-visualization')
8 files changed, 411 insertions, 0 deletions
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog new file mode 100644 index 000000000..febe147d9 --- /dev/null +++ b/sci-visualization/gnuplot/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for sci-visualization/gnuplot +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 21 May 2009; Christoph Junghans <kleiner_otti@gmx.de> ChangeLog: + Initial commit ,based upon bug #232363 + diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest new file mode 100644 index 000000000..381bf8704 --- /dev/null +++ b/sci-visualization/gnuplot/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX gnuplot-4.2.2-disable_texi_generation.patch 763 RMD160 99368c05fe2907f445a49b4d0be782f0384f319e SHA1 17723d5e5a12eef274b6f9216c9a9cbbe05cba1e SHA256 87a3bed1e3be244a511f1cbeb9852484da59decdae75635ae900fbafe5db02f6 +AUX gnuplot-4.2.3-disable-texhash.patch 677 RMD160 b299c7425e735ebad6afa1e2d154190fb2f3fdf8 SHA1 6e5f25a0283b2dd887738d8caee7c92d1905b1cc SHA256 af25fded8998eb48ea0b89f9ce0d5322721088c2b69a360ec7928a7f6115873e +AUX gnuplot-4.3.9999-app-defaults.patch 2239 RMD160 a0a8a2152d6b168c0e6188e53a332bc00617a4e4 SHA1 c16852541488e952e99944f260002458fe9cec23 SHA256 a32cb28122d90f817472f73cc24ba9f39a6407a00ed2e5ae7bd6a671dc56020c +AUX gnuplot-4.3.9999-gentoo-version.patch 2096 RMD160 2eb3fe86ca28386bf32a38da5ee4705727c51d69 SHA1 5456f947e0216fa43dd4d5e2ac14a86fef28a627 SHA256 e2b9082514bc3328b3efaf85785be0d79cf2f74503afd65079544b617bfcbd77 +EBUILD gnuplot-4.3.9999.ebuild 5936 RMD160 eba9397d67c1f434fb28ce66403ca73d87594373 SHA1 a60a41d91cdf4b0fc4f271def595f55420a45cad SHA256 2dc2d93c646dca6535eb95b11bc56946b6ad61ef0a6099c9fa9d3b65170177a6 +MISC ChangeLog 235 RMD160 d9344df0760d37c7a2af84859b064ecf815568d6 SHA1 285c20563b2701cf6c4c5c13305e46e152e7b615 SHA256 c8cb4fa405debdd69f47da1109a582826612054a6ef5ade17a9121c8120a57d6 +MISC metadata.xml 257 RMD160 f2ffbaee54f8534e419eea137c2a4da199b8b06c SHA1 502dbf5dd161bee261a494c5aedd6ee339090cc7 SHA256 f0ff74df1828056b76a2c69ee634fefe487987533698f6d4c2403f20f707b9c1 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkoVbRYACgkQy0OE/ans1/kMkwCcC0g+m2+csn+MUF1QwW0iPJGi +l8AAmwZjBrLlgkh0jEfgGMWvqgiw5Ywu +=k2Iw +-----END PGP SIGNATURE----- diff --git a/sci-visualization/gnuplot/files/gnuplot-4.2.2-disable_texi_generation.patch b/sci-visualization/gnuplot/files/gnuplot-4.2.2-disable_texi_generation.patch new file mode 100644 index 000000000..81d9eee90 --- /dev/null +++ b/sci-visualization/gnuplot/files/gnuplot-4.2.2-disable_texi_generation.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/194216 +Texinfo source is already shipped, so separate preparation not needed +and error-prone + +--- docs/Makefile.in 2007-10-30 20:35:47.000000000 +0100 ++++ docs/Makefile.in 2007-10-30 21:57:52.000000000 +0100 +@@ -348,16 +348,6 @@ + gnuplot.info: $(srcdir)/gnuplot.texi + $(MAKEINFO) -I$(srcdir) $(srcdir)/gnuplot.texi --no-split --output=$@ + +-# Thanks to Bruce Ravel for doc2texi.el! +-$(srcdir)/gnuplot.texi: $(srcdir)/doc2texi.el $(srcdir)/gnuplot.doc +- @echo "Creating texinfo" +- @if test "$(EMACS)" != no; then \ +- cd $(srcdir) ; \ +- $(EMACS) -batch -l doc2texi.el -f d2t-doc-to-texi ; \ +- else \ +- echo "No emacs found - cannot create texinfo file" ; \ +- fi +- + # this is how to make OS/2 ipfc documentation + ipf: gnuplot.ipf + diff --git a/sci-visualization/gnuplot/files/gnuplot-4.2.3-disable-texhash.patch b/sci-visualization/gnuplot/files/gnuplot-4.2.3-disable-texhash.patch new file mode 100644 index 000000000..2c0b0aae8 --- /dev/null +++ b/sci-visualization/gnuplot/files/gnuplot-4.2.3-disable-texhash.patch @@ -0,0 +1,15 @@ +http://bugs.gentoo.org/201871 +Disable texhash to prevent sandbox violation + +--- gnuplot-4.2.3-orig/share/LaTeX/Makefile.am 2006-10-02 23:05:30.000000000 +0200 ++++ gnuplot-4.2.3/share/LaTeX/Makefile.am 2008-08-26 20:09:43.000000000 +0200 +@@ -11,8 +11,7 @@ + installdir=`kpsexpand '$$TEXMFLOCAL'/tex/latex/gnuplot |sed "s%^.*share/%$(prefix)/share/%"` ; \ + $(top_srcdir)/mkinstalldirs $(DESTDIR)$$installdir ; \ + if [ ! -f $(DESTDIR)$$installdir/gnuplot.cfg ]; then \ +- $(INSTALL_DATA) $(srcdir)/gnuplot.cfg $(DESTDIR)$$installdir/gnuplot.cfg && \ +- texhash; \ ++ $(INSTALL_DATA) $(srcdir)/gnuplot.cfg $(DESTDIR)$$installdir/gnuplot.cfg; \ + fi ; \ + fi + diff --git a/sci-visualization/gnuplot/files/gnuplot-4.3.9999-app-defaults.patch b/sci-visualization/gnuplot/files/gnuplot-4.3.9999-app-defaults.patch new file mode 100644 index 000000000..650858e30 --- /dev/null +++ b/sci-visualization/gnuplot/files/gnuplot-4.3.9999-app-defaults.patch @@ -0,0 +1,51 @@ +http://bugs.gentoo.org/219323 +Don't store resource files in deprecated location +Reported upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=1953742&group_id=2055&atid=102055 + +--- gnuplot-orig/configure.in 2008-03-04 19:36:53.000000000 +0100 ++++ gnuplot/configure.in 2008-04-26 11:44:59.000000000 +0200 +@@ -1026,6 +1026,10 @@ + fi + AC_SUBST(LISPDIR) + ++dnl Location of application defaults ++AC_ARG_VAR(appdefaultdir,[Directory for application defaults]) ++test -z "$appdefaultdir" && appdefaultdir='${sysconfdir}/X11/app-defaults' ++ + dnl Substitute variables + AC_SUBST(PACKAGE) + AC_SUBST(VERSION_MAJOR) +--- gnuplot-orig/share/Makefile.am 2008-03-05 04:38:59.000000000 +0100 ++++ gnuplot/share/Makefile.am 2008-04-26 11:44:59.000000000 +0200 +@@ -5,8 +5,6 @@ + + SUBDIRS = LaTeX + +-appdefaultdir = $(libdir)/X11/app-defaults +- + APPDEFAULTFILES = Gnuplot + + appdefault_DATA = $(APPDEFAULTFILES) +--- gnuplot-orig/src/Makefile.am 2007-08-26 19:50:20.000000000 +0200 ++++ gnuplot/src/Makefile.am 2008-04-26 11:44:59.000000000 +0200 +@@ -31,7 +31,7 @@ + transform = @program_transform_name@ + GNUPLOT_X11 = `echo gnuplot_x11 | sed '$(transform)'`$(EXEEXT) + +-AM_CPPFLAGS = -I../term -I$(top_srcdir)/term -DBINDIR=\"$(bindir)\" -DX11_DRIVER_DIR=\"$(X11_DRIVER_DIR)\" -DGNUPLOT_PS_DIR=\"$(GNUPLOT_PS_DIR)\" -DGNUPLOT_JS_DIR=\"$(GNUPLOT_JS_DIR)\" -DCONTACT=\"$(EMAIL)\" -DHELPFILE=\"$(HELPFILE)\" -DGNUPLOT_X11=\"$(GNUPLOT_X11)\" ++AM_CPPFLAGS = -I../term -I$(top_srcdir)/term -DBINDIR=\"$(bindir)\" -DX11_DRIVER_DIR=\"$(X11_DRIVER_DIR)\" -DGNUPLOT_PS_DIR=\"$(GNUPLOT_PS_DIR)\" -DGNUPLOT_JS_DIR=\"$(GNUPLOT_JS_DIR)\" -DCONTACT=\"$(EMAIL)\" -DHELPFILE=\"$(HELPFILE)\" -DGNUPLOT_X11=\"$(GNUPLOT_X11)\" -DAppDefDir=\"$(appdefaultdir)\" + + gnuplot_SOURCES = alloc.c alloc.h ansichek.h axis.c axis.h binary.c \ + breaders.c breaders.h bitmap.c bitmap.h color.c color.h command.c \ +--- gnuplot-orig/src/gplt_x11.c 2007-12-10 00:55:27.000000000 +0100 ++++ gnuplot/src/gplt_x11.c 2008-04-26 11:45:18.000000000 +0200 +@@ -4851,7 +4851,9 @@ + */ + #define On(v) ( !strncasecmp(v, "on", 2) || !strncasecmp(v, "true", 4) ) + ++#ifndef AppDefDir + #define AppDefDir "/usr/lib/X11/app-defaults" ++#endif + #ifndef MAXHOSTNAMELEN + #define MAXHOSTNAMELEN 64 + #endif diff --git a/sci-visualization/gnuplot/files/gnuplot-4.3.9999-gentoo-version.patch b/sci-visualization/gnuplot/files/gnuplot-4.3.9999-gentoo-version.patch new file mode 100644 index 000000000..da95153f0 --- /dev/null +++ b/sci-visualization/gnuplot/files/gnuplot-4.3.9999-gentoo-version.patch @@ -0,0 +1,76 @@ +Add special version identification and Gentoo contact information, +in order to fulfil provisions 2 through 4 of the gnuplot licence. + +--- gnuplot-orig/src/plot.c ++++ gnuplot/src/plot.c +@@ -376,9 +376,11 @@ + " -V, --version\n" + " -h, --help\n" + " -e \"command1; command2; ...\"\n" +- "gnuplot %s patchlevel %s\n" +- "Report bugs to %s\n", +- gnuplot_version, gnuplot_patchlevel, bug_email); ++ "gnuplot %s patchlevel %s (Gentoo revision %s)\n" ++ "Report bugs to <%s>\n" ++ "or to <%s>\n", ++ gnuplot_version, gnuplot_patchlevel, gentoo_revision, ++ gentoo_bugtracker, bug_email); + return 0; + } + } +--- gnuplot-orig/src/show.c ++++ gnuplot/src/show.c +@@ -1015,7 +1015,7 @@ + + fprintf(fp, "%s\n\ + %s\t%s\n\ +-%s\tVersion %s patchlevel %s\n\ ++%s\tVersion %s patchlevel %s (Gentoo revision %s)\n\ + %s\tlast modified %s\n\ + %s\tSystem: %s %s\n\ + %s\n\ +@@ -1026,10 +1026,11 @@ + %s\tThe gnuplot FAQ is available from %s\n\ + %s\n\ + %s\tSend bug reports and suggestions to <%s>\n\ ++%s\tor to <%s>\n\ + %s\n", + p, /* empty line */ + p, PROGRAM, +- p, gnuplot_version, gnuplot_patchlevel, ++ p, gnuplot_version, gnuplot_patchlevel, gentoo_revision, + p, gnuplot_date, + p, os_name, os_rel, + p, /* empty line */ +@@ -1042,6 +1043,7 @@ + p, /* FAQ is at */ + p, faq_location, + p, /* empty line */ ++ p, gentoo_bugtracker, + p, help_email, + p, bug_email, + p); /* empty line */ +--- gnuplot-orig/src/version.c ++++ gnuplot/src/version.c +@@ -46,6 +46,9 @@ + + const char faq_location[] = FAQ_LOCATION; + ++const char gentoo_revision[] = GENTOO_REVISION; ++const char gentoo_bugtracker[] = "http://bugs.gentoo.org/"; ++ + char *compile_options = (void *)0; /* Will be loaded at runtime */ + + #define RELEASE_VERSION 1 +--- gnuplot-orig/src/version.h ++++ gnuplot/src/version.h +@@ -47,6 +47,9 @@ + extern const char bug_email[]; + extern const char help_email[]; + ++extern const char gentoo_revision[]; ++extern const char gentoo_bugtracker[]; ++ + extern char os_name[]; + extern char os_rel[]; + diff --git a/sci-visualization/gnuplot/gnuplot-4.3.9999.ebuild b/sci-visualization/gnuplot/gnuplot-4.3.9999.ebuild new file mode 100644 index 000000000..54a44db00 --- /dev/null +++ b/sci-visualization/gnuplot/gnuplot-4.3.9999.ebuild @@ -0,0 +1,213 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 +WX_GTK_VER="2.8" + +inherit autotools elisp-common eutils multilib wxwidgets cvs + +DESCRIPTION="Command-line driven interactive plotting program" +HOMEPAGE="http://www.gnuplot.info/" + +ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" +ECVS_MODULE="gnuplot" +ECVS_USER="anonymous" +ECVS_CVS_OPTIONS="-dP" + +LICENSE="gnuplot" +SLOT="0" +KEYWORDS="~x86" +IUSE="cairo doc emacs gd ggi latex lua pdf plotutils readline svga wxwindows X xemacs" +RESTRICT="wxwindows? ( test )" + +RDEPEND=" + xemacs? ( virtual/xemacs app-xemacs/texinfo app-xemacs/xemacs-base ) + emacs? ( virtual/emacs !app-emacs/gnuplot-mode ) + pdf? ( media-libs/pdflib ) + lua? ( >=dev-lang/lua-5.1 ) + ggi? ( media-libs/libggi ) + gd? ( >=media-libs/gd-2[png] ) + doc? ( dev-tex/picins + virtual/latex-base + virtual/ghostscript ) + latex? ( virtual/latex-base + lua? ( dev-tex/pgf + >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) + X? ( x11-libs/libXaw ) + svga? ( media-libs/svgalib ) + readline? ( >=sys-libs/readline-4.2 ) + plotutils? ( media-libs/plotutils ) + wxwindows? ( x11-libs/wxGTK:2.8 + >=x11-libs/cairo-0.9 + >=x11-libs/pango-1.10.3 + >=x11-libs/gtk+-2.8 ) + cairo? ( >=x11-libs/cairo-0.9 + >=x11-libs/pango-1.10.3 + >=x11-libs/gtk+-2.8 )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}/${ECVS_MODULE}" +E_SITEFILE="50${PN}-gentoo.el" +TEXMF="/usr/share/texmf-site" + +pkg_setup() { + use wxwindows && wxwidgets_pkg_setup +} + +src_prepare() { + local i + epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch #194216 + epatch "${FILESDIR}"/${PF}-app-defaults.patch #219323 + epatch "${FILESDIR}"/${PN}-4.2.3-disable-texhash.patch #201871 + # Add Gentoo version identification since the licence requires it + epatch "${FILESDIR}"/${PF}-gentoo-version.patch + + for i in config demo m4 term tutorial; do + cd $i + emake -f Makefile.am.in Makefile.am || \ + die "make -f Makefile.am.in Makefile.am in $i failed" + cd .. + done + eautoreconf +} + +src_configure() { + # See bug #156427, kpsexpand is part of texlive-core + if use latex ; then + sed -i -e "s:\`kpsexpand.*\`:${TEXMF}/tex/latex/${PN}:" \ + share/LaTeX/Makefile.in || die "sed kpsexpand removed failed" + else + sed -i \ + -e '/^SUBDIRS/ s/LaTeX//' share/Makefile.in || \ + die "sed disable of LateX failed" + 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_enable wxwindows wxwidgets)" + myconf="${myconf} $(use_with plotutils plot /usr/$(get_libdir))" + myconf="${myconf} $(use_with pdf pdf /usr/$(get_libdir))" + myconf="${myconf} $(use_with lua)" + myconf="${myconf} $(use_with doc tutorial)" + + use ggi \ + && myconf="${myconf} --with-ggi=/usr/$(get_libdir) + --with-xmi=/usr/$(get_libdir)" \ + || myconf="${myconf} --without-ggi" + + use readline \ + && myconf="${myconf} --with-readline=gnu --enable-history-file" \ + || myconf="${myconf} --with-readline=builtin" + + myconf="${myconf} --without-lisp-files" + + TEMACS=no + use xemacs && TEMACS=xemacs + use emacs && TEMACS=emacs + + CFLAGS="${CFLAGS} -DGENTOO_REVISION=\\\"${PR}\\\"" \ + EMACS=${TEMACS} \ + econf ${myconf} || die "econf failed" +} + +src_compile() { + # Prevent access violations, see bug 201871 + VARTEXFONTS="${T}/fonts" + + # 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 + + emake || die "emake failed" + + if use doc ; then + cd docs + emake pdf || die "emake pdf failed" + cd ../tutorial + emake pdf || die "emake pdf tutorial failed" + fi +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + + if use emacs; then + cd lisp + einfo "Configuring gnuplot-mode for GNU Emacs..." + EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || \ + die "econf emacs failed" + emake DESTDIR="${D}" install || die "lisp install for emacs failed" + emake clean + cd .. + + # Gentoo emacs site-lisp configuration + echo -e "\n;;; ${PN} site-lisp configuration\n" > ${E_SITEFILE} + echo -e "(add-to-list 'load-path \"@SITELISP@\")\n" >> ${E_SITEFILE} + sed '/^;; move/,+3 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" \ + econf --with-lispdir="/usr/lib/xemacs/site-packages/${PN}" || \ + die "econf xemacs failed" + emake DESTDIR="${D}" install || die "lisp install for xemacs failed" + cd .. + fi + + if use latex && use lua; then + # install style file in an (additional) place where TeX can find it + insinto "${TEXMF}/tex/latex/${PN}" + doins term/lua/gnuplot-lua-tikz.sty || \ + die "doins of gnuplot-lua-tikz.sty failed" + fi + + dodoc BUGS ChangeLog FAQ NEWS PATCHLEVEL PGPKEYS PORTING README* \ + TODO VERSION + use lua && newdoc term/lua/README README-lua + + 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 + + if ! use X; then + # see bug 194527 + rm -rf "${D}/usr/$(get_libdir)/X11" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + use latex && texmf-update + + 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 + use latex && texmf-update +} diff --git a/sci-visualization/gnuplot/metadata.xml b/sci-visualization/gnuplot/metadata.xml new file mode 100644 index 000000000..034ee26de --- /dev/null +++ b/sci-visualization/gnuplot/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>kleiner_otti@gmx.de</email> + <name>Christoph Junghans</name> + </maintainer> +</pkgmetadata> |