summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/gnuplot/ChangeLog7
-rw-r--r--sci-visualization/gnuplot/Manifest16
-rw-r--r--sci-visualization/gnuplot/files/gnuplot-4.2.0-libggi.patch68
-rw-r--r--sci-visualization/gnuplot/gnuplot-4.2.3-r2.ebuild191
-rw-r--r--sci-visualization/gnuplot/gnuplot-4.2.5.ebuild199
5 files changed, 17 insertions, 464 deletions
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog
index a18507e829cb..4c748f9f9976 100644
--- a/sci-visualization/gnuplot/ChangeLog
+++ b/sci-visualization/gnuplot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-visualization/gnuplot
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.121 2009/10/01 20:04:09 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.122 2009/10/02 00:27:47 ulm Exp $
+
+ 02 Oct 2009; Ulrich Mueller <ulm@gentoo.org>
+ -files/gnuplot-4.2.0-libggi.patch, -gnuplot-4.2.3-r2.ebuild,
+ -gnuplot-4.2.5.ebuild:
+ Remove old.
01 Oct 2009; Steve Dibb <beandog@gentoo.org> gnuplot-4.2.5-r1.ebuild:
amd64 stable, bug 282642
diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest
index c6f203b27352..e170f2bb3e8d 100644
--- a/sci-visualization/gnuplot/Manifest
+++ b/sci-visualization/gnuplot/Manifest
@@ -1,19 +1,25 @@
-AUX gnuplot-4.2.0-libggi.patch 2437 RMD160 ef60c994bf2b34ca42a7e487a1fec89c01eb1530 SHA1 dc566b4c6406c135e2505132fca598ea52da7b24 SHA256 7263c8b22a2c7691e4cae85be6ea284846e4c5d328c894d174221cb2ffd3b3d3
+-----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-app-defaults.patch 2097 RMD160 d0764b54424cfec60b22e498b8624801559e3526 SHA1 bac7dd281e679a6c638f7ba1b211e13443221486 SHA256 91cab9715e99c5e394ac6e08f17ef8063d3f0b574e0404fc5e6b643b26fddaf3
AUX gnuplot-4.2.3-disable-texhash.patch 677 RMD160 b299c7425e735ebad6afa1e2d154190fb2f3fdf8 SHA1 6e5f25a0283b2dd887738d8caee7c92d1905b1cc SHA256 af25fded8998eb48ea0b89f9ce0d5322721088c2b69a360ec7928a7f6115873e
AUX gnuplot-4.2.5-colorbox_accounting.patch 2925 RMD160 d34fd681bc9a17de6d612fe23df35f3963e3e1f3 SHA1 f2d16c98a733b801932c558481411101ca7a3c3b SHA256 6456dd2ff7baaa6c938ee33c7ebc62e00568049f76c219d3f4403d1c7ef3a38f
AUX gnuplot-4.2.5-configure-pkgconfig.patch 484 RMD160 d1d8031382b8062c393fa430eb69f74f68d93c64 SHA1 e749dbd1cf8047a6274182cc0e2317d3f1b09a2e SHA256 58d0c0106337c5f48ad2f75671566556c055eb58ee016c4a125dbc6fd434d1b6
AUX gnuplot-gentoo-version.patch 2079 RMD160 394bee0853cb9343864342a2a11a4453af30e22e SHA1 337c0b3b329965c01d75decf49a7ef678e3d46a9 SHA256 c6c1b8a6ccc9d8aeaa12d178f5e91653d4f7f5f9c49eae1feb1ec3f7267670e1
-DIST gnuplot-4.2.3.tar.gz 2840611 RMD160 b4692db884c9da2f0d160f33f53c3d2aba65f36e SHA1 9f6239ef69ac5a6d68f40dc797f8a0b35b80f491 SHA256 4aae09bf99ab2642308b0042eb18b75bc18ff33969a7431bba60b09cc2f600f4
DIST gnuplot-4.2.4.tar.gz 2904358 RMD160 88acf7561a74116aece627f9b5e41e0726daee75 SHA1 4226b959493a37bc5a1f40a3b165ffd9e1b9d202 SHA256 2a20701410a21307c404a9d10ad9fdf699bb92fa0a919797213208d80b080913
DIST gnuplot-4.2.5-lua-term.patch.bz2 26660 RMD160 981db04276ce51ece9b95076856b9811de872e3d SHA1 845fffa290d66e51ce5924d020a1d9b3bf354986 SHA256 32f39b4eb14e41f22fc911c73adf740e38af0819315ee102449ad4e572ab1b7f
DIST gnuplot-4.2.5.tar.gz 2873303 RMD160 79ab74627d66c2eff6d69276c1556acca89ec6dd SHA1 e7ad6afc1ca7b39a512a18f2dc6f2bcda9bf9128 SHA256 89477ede06ca5a6cc814e123babadeda75bc52d89b078b92b79fba957caf11f8
DIST gnuplot-4.2.6.tar.gz 2936753 RMD160 3b1726e5327b17bb7b528198e62a12b9fe3e5a76 SHA1 d11fdde8218bee98597ee836cbc17e4bf6093b70 SHA256 81fbc2eb6077bd6abfe98c5c82aae14a2c970473ee4c2c37743ff3b1e2aa8e82
-EBUILD gnuplot-4.2.3-r2.ebuild 5240 RMD160 dd553e8e5118fa4a245c63c5efb953f3e73001dc SHA1 6333cb24a522c6232f02f7681f877543ece6a34d SHA256 c31fdbc96b8c44f6b5656c2be4b6957e5d4465e4ba3873033395c80ea6321ae7
EBUILD gnuplot-4.2.4-r1.ebuild 5171 RMD160 44296d4ff1951a779c85af886bc15285f18fa731 SHA1 3a4792dfb91826ef57da6a81f19659d8e280c3cd SHA256 b3a39121493a827691f4e7417b2ef3659b12a51218cdbd05d7bf8d22955d0119
EBUILD gnuplot-4.2.5-r1.ebuild 5695 RMD160 ca40c1b28d5f79195267e2646c7045f2f8366b08 SHA1 b2d267f65e74217e1e4893a32c05d9f5c699167e SHA256 ec384ff14fe0f2ad833224ff3c8c9b9b349d323e5f486d5ee710d42c8be076aa
-EBUILD gnuplot-4.2.5.ebuild 5544 RMD160 7532cb5e508b6ab056e6bd1424b60c4ecd4eeade SHA1 969f0bd80af0f03c5589e1873083834b52319a56 SHA256 1b180ea101c89f96e3d364a02197e8091c790a04f25c3013a8c294e59d6cd8a2
EBUILD gnuplot-4.2.6.ebuild 5656 RMD160 1412866cc88ce06010d20ecc8b6cc16763d4fbd1 SHA1 e5babaef59004aa8013474c99fc289ed9c504831 SHA256 51bd9dc1bfec9ac891a55981cf86ad26aedd3f9562ed3af67758af80eb8abad5
-MISC ChangeLog 24240 RMD160 7469c5db230ac5c4b1c9a8c7d97cf058781fff26 SHA1 047d0e6a401d5a1fd0e3c5a714ebd96bd93753ea SHA256 2ac791db8f86edc115b95b4b723ad989e8b51a8a0cd37d3422897f1916579b67
+MISC ChangeLog 24386 RMD160 f4790b7fcbe41cf3cacb21db219dcd7bec54331a SHA1 c2e9ec165955d64dd68676d6f470a37e1b6d36fb SHA256 728fe0da5c15bd792acd99c6eb65291b50c59169307fc8c15e58027508a29b77
MISC metadata.xml 215 RMD160 ec20f35cba71ed779c37faff72797d5162aca3ab SHA1 365b4e7ba49bbe889a7755c256161fcbf1bfd6cd SHA256 3c0405bae8c54a7aa4c92bbb44941fc4243a8474a6209063fa6f24e1c85e8bb6
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.10 (GNU/Linux)
+
+iEYEARECAAYFAkrFSYoACgkQOeoy/oIi7uzMzgCdGZY5JK9vnL8IAXC9l3llI6ax
+zCAAn0VI3EliVg8DddhV0Phw7YmlKhs1
+=b6mp
+-----END PGP SIGNATURE-----
diff --git a/sci-visualization/gnuplot/files/gnuplot-4.2.0-libggi.patch b/sci-visualization/gnuplot/files/gnuplot-4.2.0-libggi.patch
deleted file mode 100644
index 94b0beecdebf..000000000000
--- a/sci-visualization/gnuplot/files/gnuplot-4.2.0-libggi.patch
+++ /dev/null
@@ -1,68 +0,0 @@
---- gnuplot-4.2.0/term/ggi.trm.orig 2007-06-27 14:37:05.000000000 +0900
-+++ gnuplot-4.2.0/term/ggi.trm 2007-06-27 14:53:54.000000000 +0900
-@@ -116,9 +116,9 @@
- } GGI_vertex_t;
-
- TERM_PUBLIC long int GGI_SetTime(const struct timeval* current);
--TERM_PUBLIC int GGI_from_keysym __PROTO((uint32 keysym));
--TERM_PUBLIC int GGI_from_button __PROTO((uint32 button));
--TERM_PUBLIC int GGI_y __PROTO((sint32 y));
-+TERM_PUBLIC int GGI_from_keysym __PROTO((uint32_t keysym));
-+TERM_PUBLIC int GGI_from_button __PROTO((uint32_t button));
-+TERM_PUBLIC int GGI_y __PROTO((int32_t y));
- TERM_PUBLIC int GGI_dispatch_event __PROTO((const ggi_event* event));
- TERM_PUBLIC int GGI_eventually_update_modifiers __PROTO((const ggi_event* event, const int add));
- TERM_PUBLIC int GGI_waitforinput __PROTO((void));
-@@ -134,13 +134,13 @@
- TERM_PUBLIC void GGI_save_puts __PROTO((GGI_vertex_t* v, const int tag));
- TERM_PUBLIC void GGI_set_vertex __PROTO((GGI_vertex_t* v, const int x, const int y, const char* str, const int tag));
- TERM_PUBLIC void GGI_abort_zooming __PROTO((void));
--TERM_PUBLIC void GGI_put_tmptext __PROTO((int, const char str[]));
--TERM_PUBLIC void GGI_relative __PROTO((int r[2]));
-+TERM_PUBLIC void GGI_put_tmptext __PROTO((int, const char *str));
-+TERM_PUBLIC void GGI_relative __PROTO((int *r));
- TERM_PUBLIC void GGI_clear_hline __PROTO((int x1, int x2, int y));
- TERM_PUBLIC void GGI_clear_vline __PROTO((int y1, int y2, int x));
- TERM_PUBLIC void GGI_draw_hline __PROTO((int x1, int x2, int y));
- TERM_PUBLIC void GGI_draw_vline __PROTO((int y1, int y2, int x));
--TERM_PUBLIC void GGI_set_clipboard __PROTO((const char[]));
-+TERM_PUBLIC void GGI_set_clipboard __PROTO((const char *s));
- #endif /* USE_MOUSE */
-
- TERM_PUBLIC int GGI_make_palette __PROTO((t_sm_palette*));
-@@ -645,7 +645,7 @@
-
- /* translate ggi keysym to gnuplot keysym */
- TERM_PUBLIC int
--GGI_from_keysym(uint32 keysym)
-+GGI_from_keysym(uint32_t keysym)
- {
- switch (keysym) {
- case GIIUC_BackSpace:
-@@ -811,7 +811,7 @@
- }
-
- TERM_PUBLIC int
--GGI_from_button(uint32 button)
-+GGI_from_button(uint32_t button)
- {
- switch (button) {
- case GII_PBUTTON_LEFT:
-@@ -827,7 +827,7 @@
- }
-
- TERM_PUBLIC int
--GGI_y(sint32 y)
-+GGI_y(int32_t y)
- {
- return GGIymax - y;
- }
-@@ -1363,7 +1363,7 @@
- }
-
- TERM_PUBLIC void
--GGI_set_clipboard(const char s[])
-+GGI_set_clipboard(const char *s)
- {
- /* XXX: not implemented */
- (void) s; /* avoid -Wunused */
diff --git a/sci-visualization/gnuplot/gnuplot-4.2.3-r2.ebuild b/sci-visualization/gnuplot/gnuplot-4.2.3-r2.ebuild
deleted file mode 100644
index d4c139648779..000000000000
--- a/sci-visualization/gnuplot/gnuplot-4.2.3-r2.ebuild
+++ /dev/null
@@ -1,191 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.3-r2.ebuild,v 1.14 2009/08/01 12:08:20 bicatali Exp $
-
-inherit autotools elisp-common eutils 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"
-
-LICENSE="gnuplot"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd"
-IUSE="doc emacs gd ggi latex pdf plotutils readline svga wxwidgets X xemacs"
-RESTRICT="wxwidgets? ( test )"
-
-RDEPEND="
- xemacs? ( app-editors/xemacs app-xemacs/texinfo app-xemacs/xemacs-base )
- emacs? ( virtual/emacs !app-emacs/gnuplot-mode )
- pdf? ( media-libs/pdflib )
- ggi? ( media-libs/libggi )
- gd? ( >=media-libs/gd-2 )
- doc? ( virtual/latex-base
- virtual/ghostscript )
- latex? ( virtual/latex-base )
- X? ( x11-libs/libXaw )
- svga? ( media-libs/svgalib )
- readline? ( >=sys-libs/readline-4.2 )
- plotutils? ( media-libs/plotutils )
- wxwidgets? ( =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}/${MY_P}
-
-E_SITEFILE=50${PN}-gentoo.el
-TEXMF=/usr/share/texmf-site
-
-latex_rehash() {
- if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' || has_version 'app-text/texlive'; then
- texmf-update
- else
- texconfig rehash
- fi
-}
-
-pkg_setup() {
- if use gd && ! built_with_use media-libs/gd png; then
- eerror "media-libs/gd needs to be built with PNG support"
- die "please rebuilt media-libs/gd with USE=png"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # not sane enough for upstream, but we will keep it
- epatch "${FILESDIR}"/${PN}-4.2.0-libggi.patch
- epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch #194216
- epatch "${FILESDIR}"/${P}-app-defaults.patch #219323
- epatch "${FILESDIR}"/${P}-disable-texhash.patch #201871
-
- eautoreconf
-}
-
-src_compile() {
- # Prevent access violations, see bug 201871
- VARTEXFONTS="${T}/fonts"
-
- # See bug #156427.
- if use latex ; then
- sed -i -e "s:\`kpsexpand.*\`:${TEXMF}/tex/latex/${PN}:" \
- share/LaTeX/Makefile.in || die
- else
- sed -i \
- -e '/^SUBDIRS/ s/LaTeX//' share/LaTeX/Makefile.in || die
- fi
-
- if use wxwidgets ; 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_enable wxwidgets)"
- myconf="${myconf} $(use_with plotutils plot /usr/$(get_libdir))"
- myconf="${myconf} $(use_with pdf pdf /usr/$(get_libdir))"
-
- 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"
-
- 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
-
- TEMACS=no
- use xemacs && TEMACS=xemacs
- use emacs && TEMACS=emacs
- EMACS=${TEMACS} econf ${myconf} || die
- emake || die
-
- if use doc ; then
- cd docs
- emake pdf || die
- cd ../tutorial
- emake pdf || die
- fi
-}
-
-src_install () {
- emake DESTDIR="${D}" install || die
-
- if use emacs; then
- cd lisp
- einfo "Configuring gnuplot-mode for GNU Emacs..."
- EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || die
- emake DESTDIR="${D}" install || die
- emake 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" econf --with-lispdir="/usr/lib/xemacs/site-packages/${PN}" || die
- emake DESTDIR="${D}" install || 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
-
- if ! use X; then
- # see bug 194527
- rm -rf "${D}/usr/$(get_libdir)/X11"
- 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
- use latex && latex_rehash
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
- use latex && latex_rehash
-}
diff --git a/sci-visualization/gnuplot/gnuplot-4.2.5.ebuild b/sci-visualization/gnuplot/gnuplot-4.2.5.ebuild
deleted file mode 100644
index adc5864446df..000000000000
--- a/sci-visualization/gnuplot/gnuplot-4.2.5.ebuild
+++ /dev/null
@@ -1,199 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.5.ebuild,v 1.13 2009/08/01 12:08:20 bicatali Exp $
-
-EAPI=2
-WX_GTK_VER="2.8"
-
-inherit autotools elisp-common eutils 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
- mirror://gentoo/${P}-lua-term.patch.bz2"
-
-LICENSE="gnuplot"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd"
-IUSE="doc emacs gd ggi latex lua pdf plotutils readline svga wxwidgets X xemacs"
-RESTRICT="wxwidgets? ( test )"
-
-RDEPEND="
- 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? ( 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 )
- wxwidgets? ( =x11-libs/wxGTK-2.8*
- >=x11-libs/cairo-0.9
- >=x11-libs/pango-1.10.3
- >=x11-libs/gtk+-2.8 )"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-S="${WORKDIR}/${MY_P}"
-E_SITEFILE="50${PN}-gentoo.el"
-TEXMF="/usr/share/texmf-site"
-
-pkg_setup() {
- use wxwidgets && wxwidgets_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch #194216
- epatch "${FILESDIR}"/${PN}-4.2.3-app-defaults.patch #219323
- epatch "${FILESDIR}"/${PN}-4.2.3-disable-texhash.patch #201871
- epatch "${WORKDIR}"/${P}-lua-term.patch #233475
- epatch "${FILESDIR}"/${P}-configure-pkgconfig.patch #233475 c9
- # Add Gentoo version identification since the licence requires it
- epatch "${FILESDIR}"/${PN}-gentoo-version.patch
-
- eautoreconf
-}
-
-src_configure() {
- # See bug #156427.
- if use latex ; then
- sed -i -e "s:\`kpsexpand.*\`:${TEXMF}/tex/latex/${PN}:" \
- share/LaTeX/Makefile.in || die
- else
- sed -i \
- -e '/^SUBDIRS/ s/LaTeX//' share/LaTeX/Makefile.in || die
- 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 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"
-
- 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
-}
-
-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
-
- if use doc ; then
- cd docs
- emake pdf || die
- cd ../tutorial
- emake pdf || die
- fi
-}
-
-src_install () {
- emake DESTDIR="${D}" install || die
-
- if use emacs; then
- cd lisp
- einfo "Configuring gnuplot-mode for GNU Emacs..."
- EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || die
- emake DESTDIR="${D}" install || die
- 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
- emake DESTDIR="${D}" install || die
- 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
- 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
-}