diff options
author | Christoph Junghans <kleiner_otti@gmx.de> | 2010-02-22 22:05:08 +0100 |
---|---|---|
committer | Christoph Junghans <kleiner_otti@gmx.de> | 2010-02-22 22:05:08 +0100 |
commit | 0d81f2303b62cfec86393f10f7866886ca74de4f (patch) | |
tree | af452e97f7d25496c3b612cf0f72f586561c7295 | |
parent | package.mask: added =sci-visualization/gnuplot-4.4.9999 (diff) | |
download | sci-0d81f2303b62cfec86393f10f7866886ca74de4f.tar.gz sci-0d81f2303b62cfec86393f10f7866886ca74de4f.tar.bz2 sci-0d81f2303b62cfec86393f10f7866886ca74de4f.zip |
sci-visualization/gnuplot-4.4.9999 added stable cvs-gnuplot
(Portage version: 2.1.7.16/git/Linux i686)
(Signed Manifest commit)
-rw-r--r-- | sci-visualization/gnuplot/ChangeLog | 6 | ||||
-rw-r--r-- | sci-visualization/gnuplot/Manifest | 9 | ||||
-rw-r--r-- | sci-visualization/gnuplot/gnuplot-4.4.9999.ebuild | 215 |
3 files changed, 226 insertions, 4 deletions
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog index 6d6b8affc..4d7202198 100644 --- a/sci-visualization/gnuplot/ChangeLog +++ b/sci-visualization/gnuplot/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*gnuplot-4.4.9999 (22 Feb 2010) + + 22 Feb 2010; Christoph Junghans <kleiner_otti@gmx.de> + +gnuplot-4.4.9999.ebuild: + added stable cvs gnuplot + 22 Feb 2010; Christoph Junghans <kleiner_otti@gmx.de> gnuplot-4.5.9999.ebuild, -files/gnuplot-4.5.9999-gentoo-version.patch: version patch got merged upstream diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest index a12d9d89a..6bd9a439a 100644 --- a/sci-visualization/gnuplot/Manifest +++ b/sci-visualization/gnuplot/Manifest @@ -14,13 +14,14 @@ DIST gnuplot-4.2.6.tar.gz 2936753 RMD160 3b1726e5327b17bb7b528198e62a12b9fe3e5a7 DIST gnuplot-4.4.0-rc1.tar.gz 3294054 RMD160 262cce576e6d64dd8a54edef0730f4576414456c SHA1 e9c2b99896a652a52d0160e8e2a6406ed861fda4 SHA256 d284ac5f75948e5a6716d26532adaf40e9ed8a205cbdeb75e76999dab07baf14 EBUILD gnuplot-4.2.6-r1.ebuild 6997 RMD160 ae586b402f58efb5e12f3eff39ce00db1a98f088 SHA1 0d705aa36ec4e162e12f13e486bdc0e4ab5fc665 SHA256 28f245975ef12746830103fdf5d4333dff288163a53c94a71c1da602b81f0afc EBUILD gnuplot-4.4.0_rc1.ebuild 6712 RMD160 62cbc04a43cee4212550168c2517ff01c2ed2710 SHA1 31fc52029dacdfbd792a1d9baae2c036e4e7ac4d SHA256 f164c5733a0e4ec29a1b1e35ac5a5f63468c5ea4aa9ba8b4b59c9861bb7e6594 +EBUILD gnuplot-4.4.9999.ebuild 6308 RMD160 6d6be3a51affeb5ec6b4f5da1c78a5461ecde017 SHA1 ae14f195338116750dd9dcdac3bf0a318ea10631 SHA256 b396a25ea85727f7bcfca85430eeb3dcde2bf08ad38a913b8f5e34e0d8516c68 EBUILD gnuplot-4.5.9999.ebuild 6409 RMD160 8400bc079bbeef1ca36d60fd0b1591af58ab2065 SHA1 8c5f14d098f8065f4e3b953116d5df1534998f46 SHA256 ce2fea89b18177e7fa0168489541419c02ab034a206cbde7d48a2d45cd6d3e81 -MISC ChangeLog 2495 RMD160 2c9f6cbe2542fef38027ec7934358571e51eaea0 SHA1 427093658bd73f80d7c20560c211e5abfa51f9dc SHA256 cb83029690ca6a9bcdc062ddeb1d7c4798bdd0001276b1964b5a1769f6a6750b +MISC ChangeLog 2640 RMD160 a8ec5f46bede5fd759959a0f44b8adc9895667f7 SHA1 7941329afd7b28db9fe3d25738ceda2af642c6f1 SHA256 2e93d425c6cd150b53665e59e204fbe55e78f59df55ae4e15eafc47140e9dda5 MISC metadata.xml 349 RMD160 87a767ce8e90a00d852a98474ba4613ec1311796 SHA1 d4de5b0b36dac3911669ae23a080982f0986d273 SHA256 70b5b4315995c437de4e5b0434d5f2034fbd35975be71ecc2782cffee5be16a2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAkuC5uwACgkQy0OE/ans1/mY8ACfd3YUJpk9c2ftx0xxh4V0a9vA -DKIAn194dud8Gu22ZQJuyya4I8e+AMbm -=k9EM +iEYEARECAAYFAkuC8YQACgkQy0OE/ans1/lmWwCffupJfMT2kTBk50rK//Hk8IEc +53AAmwZaee6hvey+ikDgOfT8TUlQeKzE +=nYMJ -----END PGP SIGNATURE----- diff --git a/sci-visualization/gnuplot/gnuplot-4.4.9999.ebuild b/sci-visualization/gnuplot/gnuplot-4.4.9999.ebuild new file mode 100644 index 000000000..3a9f0ff3d --- /dev/null +++ b/sci-visualization/gnuplot/gnuplot-4.4.9999.ebuild @@ -0,0 +1,215 @@ +# Copyright 1999-2010 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 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_BRANCH="branch-4-4-stable" +ECVS_USER="anonymous" +ECVS_CVS_OPTIONS="-dP" + +LICENSE="gnuplot" +GP_VERSION="${PV:0:3}" +use multislot && SLOT="${PV:0:3}" || SLOT="0" +KEYWORDS="~x86" +IUSE="cairo doc emacs +gd ggi latex lua multislot pdf plotutils readline svga wxwidgets X xemacs" +RESTRICT="wxwidgets? ( test )" + +RDEPEND=" + multislot? ( !!<=sci-visualization/gnuplot-4.2.6 + !!sci-visualization/gnuplot[-mutlislot] + app-admin/eselect-gnuplot ) + xemacs? ( app-editors/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 + app-text/ghostscript-gpl ) + 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 ) + wxwidgets? ( x11-libs/wxGTK:2.8[X] + >=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 wxwidgets && need-wxwidgets unicode + use wxwidgets && wxwidgets_pkg_setup +} + +src_prepare() { + local dir + for dir in config demo m4 term tutorial; do + emake -C "$dir" -f Makefile.am.in Makefile.am || \ + die "make -f Makefile.am.in Makefile.am in $dir failed" + done + + # Add Gentoo version identification since the licence requires it + sed -i "s/$/ (Gentoo revision ${PR})/" PATCHLEVEL + + eautoreconf +} + +src_configure() { + local myconf="--enable-thin-splines" + + myconf="${myconf} $(use_with latex)" + myconf="${myconf} $(use_with X x)" + myconf="${myconf} $(use_with svga linux-vga)" + myconf="${myconf} $(use_with gd)" + myconf="${myconf} $(use_enable 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 latex && myconf="${myconf} --with-texdir=${TEXMF}/${PN}/${GP_VERSION}" + + 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" \ + || myconf="${myconf} --with-readline=builtin" + + myconf="${myconf} --without-lisp-files" + use multislot && myconf="${myconf} --program-suffix='-${GP_VERSION}'" + + #we do the (x)emacs econf in src_install, also solves bug #194216 + EMACS=no \ + DIST_CONTACT="<http://bugs.gentoo.org>" \ + 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 + # Avoid sandbox violation in epstopdf/ghostscript + addpredict /var/cache/fontconfig + 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 + + dodoc BUGS ChangeLog NEWS PATCHLEVEL PGPKEYS PORTING README* \ + TODO VERSION + use lua && newdoc term/lua/README README-lua + newdoc term/PostScript/README README-ps + newdoc term/js/README README-js + + if use doc; then + # Demo files + insinto /usr/share/${PN}/${GP_VERSION}/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 + + use multislot && \ + mv "${D}/usr/share/info/gnuplot.info" "${D}/usr/share/info/gnuplot-${GP_VERSION}.info" +} + +pkg_postinst() { + use multislot && eselect gnuplot update --if-unset --no-texupdate + 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 + if use gd; then + echo + einfo "For font support in png/jpeg/gif output, you may have to" + einfo "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment" + einfo "variables. See the FAQ file in /usr/share/doc/${PF}/" + einfo "for more information." + fi +} + +pkg_postrm() { + #in the case that we uninstall the last multislot version + if use multislot; then + #rm symlinks + has_version sci-visualization/gnuplot || eselect gnuplot update --no-texupdate + fi + use emacs && elisp-site-regen + use latex && texmf-update +} |