diff options
author | Mamoru Komachi <usata@gentoo.org> | 2003-10-16 09:15:46 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2003-10-16 09:15:46 +0000 |
commit | 384612673a8b27e413033e7f9509b2842bb1c543 (patch) | |
tree | 17a48894e630c1b6eb7413a2a043e17aa851da1a /media-gfx | |
parent | Added doc and pdflib IUSE flags, closing Bug #31219. (diff) | |
download | gentoo-2-384612673a8b27e413033e7f9509b2842bb1c543.tar.gz gentoo-2-384612673a8b27e413033e7f9509b2842bb1c543.tar.bz2 gentoo-2-384612673a8b27e413033e7f9509b2842bb1c543.zip |
Added doc and pdflib IUSE flags, closing Bug #31219.
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/gnuplot/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/gnuplot/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/gnuplot/files/digest-gnuplot-3.7.3-r1 | 1 | ||||
-rw-r--r-- | media-gfx/gnuplot/gnuplot-3.7.3-r1.ebuild | 92 |
4 files changed, 102 insertions, 3 deletions
diff --git a/media-gfx/gnuplot/ChangeLog b/media-gfx/gnuplot/ChangeLog index 65ccab5feae1..dfa14c73e639 100644 --- a/media-gfx/gnuplot/ChangeLog +++ b/media-gfx/gnuplot/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/gnuplot # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnuplot/ChangeLog,v 1.12 2003/08/25 19:51:15 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnuplot/ChangeLog,v 1.13 2003/10/16 09:15:42 usata Exp $ + +*gnuplot-3.7.3-r1 (16 Oct 2003) + + 16 Oct 2003; Mamoru KOMACHI <usata@gentoo.org> gnuplot-3.7.3-r1.ebuild: + Added doc and pdflib IUSE flags. doc IUSE flag is suggested by Thomas + Eckert <eckert.thomas@gmx.net> in Bug #31219 25 Aug 2003; Jason Wever <weeve@gentoo.org> gnuplot-3.7.3.ebuild: Marked stable for sparc. diff --git a/media-gfx/gnuplot/Manifest b/media-gfx/gnuplot/Manifest index be7e41d4dab8..34adb903ab05 100644 --- a/media-gfx/gnuplot/Manifest +++ b/media-gfx/gnuplot/Manifest @@ -1,8 +1,8 @@ -MD5 7be2a01b037bb5f1c8d25e95647132ca ChangeLog 1858 +MD5 d86d47fb7fc5a7fa703b3ae80970d9b6 ChangeLog 2085 MD5 118558a66fb810260ecc981ee43bf024 gnuplot-3.7.1-r3.ebuild 2117 MD5 b88d23050e0b0c5272a0465c23e6bf89 gnuplot-3.7.2.ebuild 2242 MD5 0eef9dff7a6a14bb2ddd9c5892f6f296 gnuplot-3.7.3.ebuild 2255 -MD5 841e6f5713c82fe5b02638960f27ad9c gnuplot-3.7.3-r1.ebuild 2505 +MD5 b6c540359ed5c61883bdba0a6aa83657 gnuplot-3.7.3-r1.ebuild 2515 MD5 5e79534e55aae9132c24e01965a7db2c files/digest-gnuplot-3.7.1-r3 66 MD5 48e8cfbf9c54abadeb745852cbf228a2 files/digest-gnuplot-3.7.2 66 MD5 c54a92a7dd33235eabf9610499f8adb4 files/digest-gnuplot-3.7.3 66 diff --git a/media-gfx/gnuplot/files/digest-gnuplot-3.7.3-r1 b/media-gfx/gnuplot/files/digest-gnuplot-3.7.3-r1 new file mode 100644 index 000000000000..fa088ac5cdec --- /dev/null +++ b/media-gfx/gnuplot/files/digest-gnuplot-3.7.3-r1 @@ -0,0 +1 @@ +MD5 07921c091153b1f52825fb291849d36d gnuplot-3.7.3.tar.gz 1418889 diff --git a/media-gfx/gnuplot/gnuplot-3.7.3-r1.ebuild b/media-gfx/gnuplot/gnuplot-3.7.3-r1.ebuild new file mode 100644 index 000000000000..4e3a6918851c --- /dev/null +++ b/media-gfx/gnuplot/gnuplot-3.7.3-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnuplot/gnuplot-3.7.3-r1.ebuild,v 1.1 2003/10/16 09:15:42 usata Exp $ + +IUSE="X readline svga plotutils pdflib doc" + +S=${WORKDIR}/${P} +DESCRIPTION="Quick and useful plotting program" +SRC_URI="mirror://sourceforge/gnuplot/${P}.tar.gz" +HOMEPAGE="http://www.gnuplot.info" + +SLOT="0" +LICENSE="gnuplot" +KEYWORDS="~x86 ~ppc ~alpha ~sparc" + +DEPEND="media-libs/libpng + pdflib? ( media-libs/pdflib ) + doc? ( virtual/tetex ) + X? ( virtual/x11 ) + svga? ( media-libs/svgalib ) + readline? ( sys-libs/readline ) + plotutils? ( media-libs/plotutils )" + +src_compile() { + local myconf + #--with-lasergnu flag seems to be broken and I'm too lazy to fix now + #myconf=" --with-png --without-gd --with-lasergnu" + myconf=" --with-png --without-gd --with-plot=/usr/lib" + #--with-plot enables the Gnu plotutils library + #need to specify path to differentiate from Unix plot + + use plotutils \ + && myconf="${myconf} --with-plot=/usr/lib" \ + || myconf="${myconf} --without-plot" + + use pdflib \ + && myconf="${myconf} --with-pdf" \ + || myconf="${myconf} --without-pdf" + + use X \ + && myconf="${myconf} --with-x" \ + || myconf="${myconf} --without-x" + + use readline \ + && myconf="${myconf} --with-readline=gnu" \ + || myconf="${myconf} --with-readline" + + use svga \ + && myconf="${myconf} --with-linux-vga" \ + || myconf="${myconf} --without-linux-vga" + + econf \ + --datadir=/usr/share/gnuplot \ + ${myconf} || die + + mv Makefile Makefile.orig + sed -e 's/datadir = \/usr/datadir = ${prefix}/' \ + -e 's/mandir = \/usr/mandir = ${prefix}/' \ + -e 's/infodir = \/usr/infodir = ${prefix}/' \ + Makefile.orig > Makefile + + cd docs + mv Makefile Makefile.orig + sed -e 's/datadir = \/usr/datadir = ${prefix}/' \ + -e 's/infodir = \/usr/infodir = ${prefix}/' \ + -e 's/mandir = \/usr/mandir = ${prefix}/' \ + Makefile.orig > Makefile + + cd ${S} + emake || die + + if [ -n "`use doc`" ] ; then + cd docs + make pdf || die + fi +} + +src_install () { + make prefix=${D}/usr install || die + + dodoc 0* ChangeLog CodeStyle Copyright NEWS PGPKEYS TODO + use doc && dodoc docs/gnuplot.pdf +} + +pkg_postinst() { + 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 +} |