diff options
author | Ulrich Müller <ulm@gentoo.org> | 2011-12-28 10:34:38 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2011-12-28 10:34:38 +0000 |
commit | c9aacc50c4e3680622ad7a6893dcca459921a9e1 (patch) | |
tree | 7546095177be7a5be7cf0d8c8b4fe9928d72360b /sci-visualization | |
parent | Stable for AMD64, wrt bug #395897 (diff) | |
download | gentoo-2-c9aacc50c4e3680622ad7a6893dcca459921a9e1.tar.gz gentoo-2-c9aacc50c4e3680622ad7a6893dcca459921a9e1.tar.bz2 gentoo-2-c9aacc50c4e3680622ad7a6893dcca459921a9e1.zip |
Fix tikz support, bug 396251, patch from upstream bug tracker.
Update ebuild to EAPI 4. Remove old.
(Portage version: 2.1.10.43/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/gnuplot/ChangeLog | 9 | ||||
-rw-r--r-- | sci-visualization/gnuplot/files/gnuplot-4.4.4-tikz.patch | 13 | ||||
-rw-r--r-- | sci-visualization/gnuplot/gnuplot-4.4.4-r1.ebuild (renamed from sci-visualization/gnuplot/gnuplot-4.4.2-r1.ebuild) | 80 |
3 files changed, 73 insertions, 29 deletions
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog index 25ebc703b37d..1913b272d219 100644 --- a/sci-visualization/gnuplot/ChangeLog +++ b/sci-visualization/gnuplot/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-visualization/gnuplot # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.170 2011/11/28 08:41:45 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.171 2011/12/28 10:34:38 ulm Exp $ + +*gnuplot-4.4.4-r1 (28 Dec 2011) + + 28 Dec 2011; Ulrich Mueller <ulm@gentoo.org> -gnuplot-4.4.2-r1.ebuild, + +gnuplot-4.4.4-r1.ebuild, +files/gnuplot-4.4.4-tikz.patch: + Fix tikz support, bug 396251, patch from upstream bug tracker. Update ebuild + to EAPI 4. Remove old. 28 Nov 2011; Ulrich Mueller <ulm@gentoo.org> -files/gnuplot-4.2.2-disable_texi_generation.patch, diff --git a/sci-visualization/gnuplot/files/gnuplot-4.4.4-tikz.patch b/sci-visualization/gnuplot/files/gnuplot-4.4.4-tikz.patch new file mode 100644 index 000000000000..174fdd1e18f9 --- /dev/null +++ b/sci-visualization/gnuplot/files/gnuplot-4.4.4-tikz.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/396251 +http://sourceforge.net/tracker/?func=detail&aid=3441899&group_id=2055&atid=102055 + +--- gnuplot-4.4.4-orig/term/lua/gnuplot-tikz.lua ++++ gnuplot-4.4.4/term/lua/gnuplot-tikz.lua +@@ -251,6 +251,7 @@ + gp.write(string.format("\\begin{tikzpicture}[gnuplot%s]\n",global_opt)) + gp.write(string.format("%%%% generated with GNUPLOT %sp%s (%s; terminal rev. %s, script rev. %s)\n%%%% %s\n", + term.gp_version, term.gp_patchlevel, ++ _VERSION, + string.sub(term.lua_term_revision,7,-3), + pgf.REVISION,os.date())) + if font ~= "" then diff --git a/sci-visualization/gnuplot/gnuplot-4.4.2-r1.ebuild b/sci-visualization/gnuplot/gnuplot-4.4.4-r1.ebuild index 4712ea887a34..8590f6904dcf 100644 --- a/sci-visualization/gnuplot/gnuplot-4.4.2-r1.ebuild +++ b/sci-visualization/gnuplot/gnuplot-4.4.4-r1.ebuild @@ -1,20 +1,31 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.2-r1.ebuild,v 1.6 2011/11/28 05:30:57 ottxor Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.4-r1.ebuild,v 1.1 2011/12/28 10:34:38 ulm Exp $ -EAPI=3 +EAPI=4 inherit elisp-common multilib wxwidgets -MY_P="${P/_/-}" - DESCRIPTION="Command-line driven interactive plotting program" HOMEPAGE="http://www.gnuplot.info/" -SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" + +if [[ -z ${PV%%*9999} ]]; then + inherit autotools cvs + ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" + ECVS_MODULE="gnuplot" + ECVS_BRANCH="branch-4-4-stable" + ECVS_USER="anonymous" + ECVS_CVS_OPTIONS="-dP" + MY_P="${PN}" + SRC_URI="" +else + MY_P="${P/_/-}" + SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" +fi LICENSE="gnuplot GPL-2" SLOT="0" -KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" IUSE="cairo doc emacs examples +gd ggi latex lua plotutils readline svga thin-splines wxwidgets X xemacs" RDEPEND=" @@ -46,6 +57,7 @@ DEPEND="${RDEPEND} dev-util/pkgconfig doc? ( virtual/latex-base + dev-texlive/texlive-latexextra app-text/ghostscript-gpl ) !emacs? ( xemacs? ( app-xemacs/texinfo ) )" @@ -58,6 +70,16 @@ E_SITEFILE="50${PN}-gentoo.el" TEXMF="${EPREFIX}/usr/share/texmf-site" src_prepare() { + epatch "${FILESDIR}/${P}-tikz.patch" + + if [[ -z ${PV%%*9999} ]]; then + local dir + for dir in config demo m4 term tutorial; do + emake -C "$dir" -f Makefile.am.in Makefile.am + done + eautoreconf + fi + # Add special version identification as required by provision 2 # of the gnuplot license sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die @@ -92,7 +114,9 @@ src_configure() { && myconf="${myconf} --with-readline=gnu" \ || myconf="${myconf} --with-readline=builtin" - econf ${myconf} DIST_CONTACT="http://bugs.gentoo.org/" + econf ${myconf} \ + DIST_CONTACT="http://bugs.gentoo.org/" \ + EMACS=$(usev emacs || usev xemacs || echo no) if use xemacs; then einfo "Configuring gnuplot-mode for XEmacs ..." @@ -117,44 +141,44 @@ src_compile() { # example plots. addwrite /dev/svga:/dev/mouse:/dev/tts/0 - emake all info || die + emake all info if use xemacs; then cd "${S}/lisp-xemacs" - emake || die + emake fi if use emacs; then cd "${S}/lisp" - emake || die + emake fi if use doc; then # Avoid sandbox violation in epstopdf/ghostscript addpredict /var/cache/fontconfig cd "${S}/docs" - emake pdf || die + emake pdf cd "${S}/tutorial" - emake pdf || die + emake pdf if use emacs || use xemacs; then cd "${S}/lisp" - emake pdf || die + emake pdf fi fi } src_install () { - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install if use xemacs; then cd "${S}/lisp-xemacs" - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install fi if use emacs; then cd "${S}/lisp" - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install # info-look* is included with >=emacs-21 rm -f "${ED}${SITELISP}/${PN}"/info-look* @@ -173,7 +197,7 @@ src_install () { if use examples; then # Demo files insinto /usr/share/${PN}/${GP_VERSION} - doins -r demo || die + doins -r demo rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile* rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary* fi @@ -200,23 +224,23 @@ pkg_postinst() { use emacs && elisp-site-regen use latex && texmf-update - einfo "Gnuplot no longer links against pdflib, see the ChangeLog for" - einfo "details. You can use the \"pdfcairo\" terminal for PDF output." - use cairo || einfo "It is available with USE=\"cairo\"." + elog "Gnuplot no longer links against pdflib, see the ChangeLog for" + elog "details. You can use the \"pdfcairo\" terminal for PDF output." + use cairo || elog "It is available with USE=\"cairo\"." if use svga; then echo - 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\"." + elog "In order to enable ordinary users to use SVGA console graphics" + elog "gnuplot needs to be set up as setuid root. Please note that" + elog "this is usually considered to be a security hazard." + elog "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." + elog "For font support in png/jpeg/gif output, you may have to" + elog "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment" + elog "variables. See the FAQ file in /usr/share/doc/${PF}/" + elog "for more information." fi } |