summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-10-31 16:07:06 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-10-31 16:07:06 +0000
commit36ebecbedb984c57beefaa3a1d94ca40292a9bf8 (patch)
treea36737f472c154bb7978f0548323711b10d33540 /media-libs/plotutils
parentFixing file collision with sys-libs/talloc, bug #384873 (diff)
downloadgentoo-2-36ebecbedb984c57beefaa3a1d94ca40292a9bf8.tar.gz
gentoo-2-36ebecbedb984c57beefaa3a1d94ca40292a9bf8.tar.bz2
gentoo-2-36ebecbedb984c57beefaa3a1d94ca40292a9bf8.zip
old, incompatible with stable png
(Portage version: 2.2.0_alpha71_p73/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/plotutils')
-rw-r--r--media-libs/plotutils/ChangeLog10
-rw-r--r--media-libs/plotutils/files/plotutils-2.4.1-correct_test.patch19
-rw-r--r--media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch89
-rw-r--r--media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch38
-rw-r--r--media-libs/plotutils/files/plotutils-2.5-rangecheck.patch19
-rw-r--r--media-libs/plotutils/files/plotutils-2.5.1-fix-tests.patch29
-rw-r--r--media-libs/plotutils/plotutils-2.4.1-r4.ebuild78
-rw-r--r--media-libs/plotutils/plotutils-2.5.1.ebuild77
-rw-r--r--media-libs/plotutils/plotutils-2.5.ebuild76
9 files changed, 9 insertions, 426 deletions
diff --git a/media-libs/plotutils/ChangeLog b/media-libs/plotutils/ChangeLog
index 511f0537d821..7045a133ea36 100644
--- a/media-libs/plotutils/ChangeLog
+++ b/media-libs/plotutils/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/plotutils
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/ChangeLog,v 1.58 2011/03/23 17:55:05 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/ChangeLog,v 1.59 2011/10/31 16:07:05 ssuominen Exp $
+
+ 31 Oct 2011; Samuli Suominen <ssuominen@gentoo.org>
+ -plotutils-2.4.1-r4.ebuild, -files/plotutils-2.4.1-correct_test.patch,
+ -files/plotutils-2.4.1-gentoo.patch, -files/plotutils-2.4.1-rangecheck.patch,
+ -plotutils-2.5.ebuild, -plotutils-2.5.1.ebuild,
+ -files/plotutils-2.5.1-fix-tests.patch,
+ -files/plotutils-2.5-rangecheck.patch:
+ old
23 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org> plotutils-2.6.ebuild:
ppc/ppc64 stable wrt #353433
diff --git a/media-libs/plotutils/files/plotutils-2.4.1-correct_test.patch b/media-libs/plotutils/files/plotutils-2.4.1-correct_test.patch
deleted file mode 100644
index 9b92e34e9b37..000000000000
--- a/media-libs/plotutils/files/plotutils-2.4.1-correct_test.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/test/plot2ps.xout 2007-03-13 07:23:11.000000000 +0100
-+++ b//test/plot2ps.xout 2007-03-13 07:23:46.000000000 +0100
-@@ -1,7 +1,6 @@
- %!PS-Adobe-3.0 EPSF-3.0
- %%Creator: GNU libplot drawing library 4.1
- %%Title: PostScript plot
--%%CreationDate: Fri Jun 16 21:08:33 2000
- %%DocumentData: Clean7Bit
- %%LanguageLevel: 1
- %%Pages: 1
-@@ -294,7 +293,7 @@
- gsave
- fgred fggreen fgblue setrgbcolor
- /fontDict printFont findfont printSize scalefont dup setfont def
--/descender fontDict begin 0 [FontBBox] 1 get FontMatrix end
-+/descender fontDict begin 0 fontDict /FontBBox get 1 get FontMatrix end
- transform exch pop def
- /vertoffset 1 printSize sub descender sub def {
- 0 vertoffset moveto show
diff --git a/media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch b/media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch
deleted file mode 100644
index 136cd060d315..000000000000
--- a/media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch
+++ /dev/null
@@ -1,89 +0,0 @@
---- plotutils-2.4.1/libplot/g_write.c~ Fri May 19 18:10:01 2000
-+++ plotutils-2.4.1/libplot/g_write.c Sun Jun 16 03:22:30 2002
-@@ -40,7 +40,7 @@
- }
- #ifdef LIBPLOTTER
- else if (data->outstream)
-- data->outstream->write(c, n);
-+ data->outstream->write ((const char*)c, n);
- #endif
- }
-
---- plotutils-2.4.1/libplot/i_rle.c~ Sun Jun 27 18:58:10 1999
-+++ plotutils-2.4.1/libplot/i_rle.c Sun Jun 16 03:22:30 2002
-@@ -78,7 +78,7 @@
- else if (rle->outstream)
- {
- rle->outstream->put ((unsigned char)(rle->oblen));
-- rle->outstream->write (&(rle->oblock[0]), rle->oblen);
-+ rle->outstream->write ((const char*)(&rle->oblock[0]), rle->oblen);
- }
- #endif
-
---- plotutils-2.4.1/libplot/n_write.c~ Fri Jun 16 07:42:13 2000
-+++ plotutils-2.4.1/libplot/n_write.c Sun Jun 16 03:22:30 2002
-@@ -208,7 +208,7 @@
- linebuf[pos++] = '0';
- if (pos >= MAX_PBM_PIXELS_PER_LINE || i == (width - 1))
- {
-- stream->write (linebuf, pos);
-+ stream->write ((const char*)linebuf, pos);
- stream->put ('\n');
-
- pos = 0;
-@@ -253,7 +253,7 @@
- rowbuf[bytecount++] = outbyte;
- }
- /* emit row of bytes */
-- stream->write (rowbuf, bytecount);
-+ stream->write ((const char*)rowbuf, bytecount);
- }
-
- free (rowbuf);
-@@ -366,7 +366,7 @@
- num_pixels++;
- if (num_pixels >= MAX_PGM_PIXELS_PER_LINE || i == (width - 1))
- {
-- stream->write (linebuf, pos);
-+ stream->write ((const char*)linebuf, pos);
- stream->put ('\n');
-
- num_pixels = 0;
-@@ -392,7 +392,7 @@
- {
- for (i = 0; i < width; i++)
- rowbuf[i] = pixmap[j][i].u.rgb[0];
-- stream->write (rowbuf, width);
-+ stream->write ((const char*)rowbuf, width);
- }
- free (rowbuf);
- }
-@@ -514,7 +514,7 @@
- num_pixels++;
- if (num_pixels >= MAX_PPM_PIXELS_PER_LINE || i == (width - 1))
- {
-- stream->write (linebuf, pos);
-+ stream->write ((const char*)linebuf, pos);
- stream->put ('\n');
-
- num_pixels = 0;
-@@ -542,7 +542,7 @@
- for (i = 0; i < width; i++)
- for (component = 0; component < 3; component++)
- rowbuf[3 * i + component] = pixmap[j][i].u.rgb[component];
-- stream->write (rowbuf, 3 * width);
-+ stream->write ((const char*)rowbuf, 3 * width);
- }
- free (rowbuf);
- }
---- plotutils-2.4.1/libplot/z_write.c~ Tue Jun 20 06:34:42 2000
-+++ plotutils-2.4.1/libplot/z_write.c Sun Jun 16 03:22:30 2002
-@@ -484,7 +484,7 @@
- ostream *stream;
-
- stream = (ostream *)png_get_io_ptr (png_ptr);
-- stream->write (data, length);
-+ stream->write ((const char*)data, length);
- }
-
- static void
diff --git a/media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch b/media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch
deleted file mode 100644
index d3346b74ab0a..000000000000
--- a/media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-*** plotutils-2.4.1/graph/plotter.c.orig Thu Mar 2 22:05:24 2000
---- plotutils-2.4.1/graph/plotter.c Tue Apr 29 01:48:09 2003
-***************
-*** 1045,1051 ****
- multigrapher->x_trans.output_min = 0.0;
- multigrapher->x_trans.output_max = (double)PLOT_SIZE;
- multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
-! multigrapher->x_trans.output_min = 0.0;
- multigrapher->y_trans.output_max = (double)PLOT_SIZE;
- multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
-
---- 1045,1051 ----
- multigrapher->x_trans.output_min = 0.0;
- multigrapher->x_trans.output_max = (double)PLOT_SIZE;
- multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
-! multigrapher->y_trans.output_min = 0.0;
- multigrapher->y_trans.output_max = (double)PLOT_SIZE;
- multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
-
-*** plotutils-2.4.1/libplot/p_header.h.orig Mon Sep 6 01:08:46 1999
---- plotutils-2.4.1/libplot/p_header.h Wed Dec 3 23:43:54 2003
-***************
-*** 288,294 ****
- gsave\n\
- fgred fggreen fgblue setrgbcolor\n\
- /fontDict printFont findfont printSize scalefont dup setfont def\n\
-! /descender fontDict begin 0 [FontBBox] 1 get FontMatrix end\n\
- transform exch pop def\n\
- /vertoffset 1 printSize sub descender sub def {\n\
- 0 vertoffset moveto show\n\
---- 288,294 ----
- gsave\n\
- fgred fggreen fgblue setrgbcolor\n\
- /fontDict printFont findfont printSize scalefont dup setfont def\n\
-! /descender fontDict begin 0 fontDict /FontBBox get 1 get FontMatrix end\n\
- transform exch pop def\n\
- /vertoffset 1 printSize sub descender sub def {\n\
- 0 vertoffset moveto show\n\
diff --git a/media-libs/plotutils/files/plotutils-2.5-rangecheck.patch b/media-libs/plotutils/files/plotutils-2.5-rangecheck.patch
deleted file mode 100644
index 16dd2cd07738..000000000000
--- a/media-libs/plotutils/files/plotutils-2.5-rangecheck.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-*** plotutils-2.4.1/graph/plotter.c.orig Thu Mar 2 22:05:24 2000
---- plotutils-2.4.1/graph/plotter.c Tue Apr 29 01:48:09 2003
-***************
-*** 1045,1051 ****
- multigrapher->x_trans.output_min = 0.0;
- multigrapher->x_trans.output_max = (double)PLOT_SIZE;
- multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
-! multigrapher->x_trans.output_min = 0.0;
- multigrapher->y_trans.output_max = (double)PLOT_SIZE;
- multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
-
---- 1045,1051 ----
- multigrapher->x_trans.output_min = 0.0;
- multigrapher->x_trans.output_max = (double)PLOT_SIZE;
- multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
-! multigrapher->y_trans.output_min = 0.0;
- multigrapher->y_trans.output_max = (double)PLOT_SIZE;
- multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
-
diff --git a/media-libs/plotutils/files/plotutils-2.5.1-fix-tests.patch b/media-libs/plotutils/files/plotutils-2.5.1-fix-tests.patch
deleted file mode 100644
index 889c2b2b374c..000000000000
--- a/media-libs/plotutils/files/plotutils-2.5.1-fix-tests.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Source: Santiago M. Mola <coldwind@gentoo.org>
-Upstream: Sent.
-Reason: Reference test results are outdated.(Gentoo bug #238818).
---- plotutils-2.5.1.orig/test/plot2ps.xout 2008-09-26 23:48:15.000000000 +0200
-+++ plotutils-2.5.1/test/plot2ps.xout 2008-09-26 23:48:35.000000000 +0200
-@@ -1,5 +1,5 @@
- %!PS-Adobe-3.0 EPSF-3.0
--%%Creator: GNU libplot drawing library 4.2
-+%%Creator: GNU libplot drawing library 4.3
- %%Title: PostScript plot
- %%CreationDate: Fri Dec 9 13:09:44 2005
- %%DocumentData: Clean7Bit
-diff -ur plotutils-2.5.1.orig/test/plot2svg.xout plotutils-2.5.1/test/plot2svg.xout
---- plotutils-2.5.1.orig/test/plot2svg.xout 2008-09-26 23:48:15.000000000 +0200
-+++ plotutils-2.5.1/test/plot2svg.xout 2008-09-26 23:57:27.000000000 +0200
-@@ -2,10 +2,10 @@
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
- <svg version="1.1" baseProfile="full" id="body" width="8in" height="8in" viewBox="0 0 1 1" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events">
- <title>SVG drawing</title>
--<desc>This was produced by version 4.2 of GNU libplot, a free library for exporting 2-D vector graphics.</desc>
-+<desc>This was produced by version 4.3 of GNU libplot, a free library for exporting 2-D vector graphics.</desc>
- <rect id="background" x="0" y="0" width="1" height="1" stroke="none" fill="white"/>
--<g id="content" transform="translate(0,1) scale(1,-1) scale(0.00024414) " xml:space="preserve" stroke="black" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10.433" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1" fill="none" fill-rule="even-odd" fill-opacity="1" font-style="normal" font-variant="normal" font-weight="normal" font-stretch="normal" font-size-adjust="none" letter-spacing="normal" word-spacing="normal" text-anchor="start">
--<text transform="translate(2048,3222.5) scale(1,-1) " font-family="Times-Roman,Times,serif" font-size="184.32px" text-anchor="middle" alignment-baseline="text-after-edge" stroke="none" fill="black" >A Sample Plot</text>
-+<g id="content" transform="translate(0,1) scale(1,-1) scale(0.00024414) " xml:space="preserve" stroke="black" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10.433" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1" fill="none" fill-rule="evenodd" fill-opacity="1" font-style="normal" font-variant="normal" font-weight="normal" font-stretch="normal" font-size-adjust="none" letter-spacing="normal" word-spacing="normal" text-anchor="start">
-+<text transform="translate(2048,3262.7) scale(1,-1) scale(9.216) " font-family="Times-Roman,Times,serif" font-size="20px" text-anchor="middle" stroke="none" fill="black" >A Sample Plot</text>
- <rect x="1024" y="1024" width="2048" height="2048" stroke-width="4.8188" />
- <polyline points="1001.7,946.04 1001.7,886.46 994.21,882.73 " stroke-width="5.2876" stroke-linecap="round" stroke-linejoin="round" />
- <polyline points="1005.4,942.31 1005.4,886.46 1016.6,879.01 " stroke-width="5.2876" stroke-linecap="round" stroke-linejoin="round" />
diff --git a/media-libs/plotutils/plotutils-2.4.1-r4.ebuild b/media-libs/plotutils/plotutils-2.4.1-r4.ebuild
deleted file mode 100644
index 69047e7212a0..000000000000
--- a/media-libs/plotutils/plotutils-2.4.1-r4.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/plotutils-2.4.1-r4.ebuild,v 1.14 2007/07/22 09:33:22 dberkholz Exp $
-
-inherit libtool eutils flag-o-matic
-
-#The plotutils package contains extra X fonts. These fonts are not installed
-#in the current ebuild. The commented out ebuild lines below are for future
-#reference when this ebuild may be updated to install the fonts.
-#NOTE: The current method does not play nice with X and sandbox. Most of the
-#font installation procedures should probably be moved to pkg_postinst.
-#See Bug# 30 at http://bugs.gentoo.org/show_bug.cgi?id=30
-
-DESCRIPTION="a powerful C/C++ function library for exporting 2-D vector graphics"
-HOMEPAGE="http://www.gnu.org/software/plotutils/"
-SRC_URI="mirror://gnu/plotutils/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86"
-IUSE="X"
-
-DEPEND="media-libs/libpng
- X? ( x11-libs/libXaw
- x11-proto/xextproto
- )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/plotutils-2.4.1-gentoo.patch"
- epatch "${FILESDIR}/plotutils-2.4.1-rangecheck.patch"
- epatch "${FILESDIR}/plotutils-2.4.1-correct_test.patch"
-
-}
-
-src_compile() {
- replace-cpu-flags k6 k6-2 k6-3 i586
- elibtoolize
-
- #enable build of C++ version
- local myconf="--enable-libplotter"
-
- #The following two additional configure options may be of interest
- #to users with specific printers, i.e. HP LaserJets with PCL 5 or HP-GL/2.
- #Not sure if enabling screws the pooch for those without these printers.
- #--enable-ps-fonts-in-pcl --enable-lj-fonts-in-ps
-
- use X \
- && myconf="${myconf} --with-x --enable-libxmi" \
- || myconf="${myconf} --without-x"
-
- econf ${myconf} || die "./configure failed"
- emake || die "Parallel Make Failed"
-}
-
-src_install() {
- einstall datadir="${D}/usr/share" || die "Installation Failed"
-
- dodoc AUTHORS COMPAT ChangeLog INSTALL* \
- KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO
-}
-
-pkg_postinst() {
- if use X; then
- elog "There are extra fonts available in plotutils package."
- elog "The current ebuild does not install them for you."
- elog "You may want to do so, but you will have to do it"
- elog "manually. You are on your own for now."
- elog "See /usr/share/doc/${P}/INSTALL.fonts"
- elog ""
- elog "If you manually install the extra fonts and use the"
- elog "program xfig, you might want to recompile to take"
- elog "advantage of the additional ps fonts."
- elog "Also, it is possible to enable ghostscript and possibly"
- elog "your printer to use the HP fonts."
- fi
-}
diff --git a/media-libs/plotutils/plotutils-2.5.1.ebuild b/media-libs/plotutils/plotutils-2.5.1.ebuild
deleted file mode 100644
index 6adc677b3f8e..000000000000
--- a/media-libs/plotutils/plotutils-2.5.1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/plotutils-2.5.1.ebuild,v 1.8 2009/01/07 15:58:17 ranger Exp $
-
-inherit libtool eutils flag-o-matic
-
-#The plotutils package contains extra X fonts. These fonts are not installed
-#in the current ebuild. The commented out ebuild lines below are for future
-#reference when this ebuild may be updated to install the fonts.
-#NOTE: The current method does not play nice with X and sandbox. Most of the
-#font installation procedures should probably be moved to pkg_postinst.
-#See Bug# 30 at http://bugs.gentoo.org/show_bug.cgi?id=30
-
-DESCRIPTION="a powerful C/C++ function library for exporting 2-D vector graphics"
-HOMEPAGE="http://www.gnu.org/software/plotutils/"
-SRC_URI="mirror://gnu/plotutils/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd"
-IUSE="X"
-
-DEPEND="media-libs/libpng
- X? ( x11-libs/libXaw
- x11-proto/xextproto
- )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-rangecheck.patch"
- epatch "${FILESDIR}/${P}-fix-tests.patch"
- elibtoolize
-}
-
-src_compile() {
- # bug #14488
- replace-cpu-flags k6 k6-2 k6-3 i586
-
- #enable build of C++ version
- local myconf="--enable-libplotter"
-
- #The following two additional configure options may be of interest
- #to users with specific printers, i.e. HP LaserJets with PCL 5 or HP-GL/2.
- #Not sure if enabling screws the pooch for those without these printers.
- #--enable-ps-fonts-in-pcl --enable-lj-fonts-in-ps
-
- use X \
- && myconf="${myconf} --with-x --enable-libxmi" \
- || myconf="${myconf} --without-x"
-
- econf ${myconf} || die "./configure failed"
- emake || die "Parallel Make Failed"
-}
-
-src_install() {
- einstall datadir="${D}/usr/share" || die "Installation Failed"
-
- dodoc AUTHORS COMPAT ChangeLog INSTALL* \
- KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO
-}
-
-pkg_postinst() {
- if use X; then
- elog "There are extra fonts available in plotutils package."
- elog "The current ebuild does not install them for you."
- elog "You may want to do so, but you will have to do it"
- elog "manually. You are on your own for now."
- elog "See /usr/share/doc/${P}/INSTALL.fonts"
- elog ""
- elog "If you manually install the extra fonts and use the"
- elog "program xfig, you might want to recompile to take"
- elog "advantage of the additional ps fonts."
- elog "Also, it is possible to enable ghostscript and possibly"
- elog "your printer to use the HP fonts."
- fi
-}
diff --git a/media-libs/plotutils/plotutils-2.5.ebuild b/media-libs/plotutils/plotutils-2.5.ebuild
deleted file mode 100644
index 883c45c23bdc..000000000000
--- a/media-libs/plotutils/plotutils-2.5.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/plotutils-2.5.ebuild,v 1.2 2008/10/15 13:13:23 aballier Exp $
-
-inherit libtool eutils flag-o-matic
-
-#The plotutils package contains extra X fonts. These fonts are not installed
-#in the current ebuild. The commented out ebuild lines below are for future
-#reference when this ebuild may be updated to install the fonts.
-#NOTE: The current method does not play nice with X and sandbox. Most of the
-#font installation procedures should probably be moved to pkg_postinst.
-#See Bug# 30 at http://bugs.gentoo.org/show_bug.cgi?id=30
-
-DESCRIPTION="a powerful C/C++ function library for exporting 2-D vector graphics"
-HOMEPAGE="http://www.gnu.org/software/plotutils/"
-SRC_URI="mirror://gnu/plotutils/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
-IUSE="X"
-
-DEPEND="media-libs/libpng
- X? ( x11-libs/libXaw
- x11-proto/xextproto
- )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/plotutils-2.5-rangecheck.patch"
-
-}
-
-src_compile() {
- replace-cpu-flags k6 k6-2 k6-3 i586
- elibtoolize
-
- #enable build of C++ version
- local myconf="--enable-libplotter"
-
- #The following two additional configure options may be of interest
- #to users with specific printers, i.e. HP LaserJets with PCL 5 or HP-GL/2.
- #Not sure if enabling screws the pooch for those without these printers.
- #--enable-ps-fonts-in-pcl --enable-lj-fonts-in-ps
-
- use X \
- && myconf="${myconf} --with-x --enable-libxmi" \
- || myconf="${myconf} --without-x"
-
- econf ${myconf} || die "./configure failed"
- emake || die "Parallel Make Failed"
-}
-
-src_install() {
- einstall datadir="${D}/usr/share" || die "Installation Failed"
-
- dodoc AUTHORS COMPAT ChangeLog INSTALL* \
- KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO
-}
-
-pkg_postinst() {
- if use X; then
- elog "There are extra fonts available in plotutils package."
- elog "The current ebuild does not install them for you."
- elog "You may want to do so, but you will have to do it"
- elog "manually. You are on your own for now."
- elog "See /usr/share/doc/${P}/INSTALL.fonts"
- elog ""
- elog "If you manually install the extra fonts and use the"
- elog "program xfig, you might want to recompile to take"
- elog "advantage of the additional ps fonts."
- elog "Also, it is possible to enable ghostscript and possibly"
- elog "your printer to use the HP fonts."
- fi
-}