diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2004-04-26 10:05:59 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2004-04-26 10:05:59 +0000 |
commit | d368be607ade15a6032680279b1a200948d9a3bd (patch) | |
tree | a58d94ad84483b5f544f2a3cf87c6d1ba570550c /media-libs/plotutils | |
parent | Added to ~ppc (Manifest recommit) (diff) | |
download | gentoo-2-d368be607ade15a6032680279b1a200948d9a3bd.tar.gz gentoo-2-d368be607ade15a6032680279b1a200948d9a3bd.tar.bz2 gentoo-2-d368be607ade15a6032680279b1a200948d9a3bd.zip |
bug #47688
Diffstat (limited to 'media-libs/plotutils')
-rw-r--r-- | media-libs/plotutils/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/plotutils/Manifest | 7 | ||||
-rw-r--r-- | media-libs/plotutils/files/digest-plotutils-2.4.1-r3 | 1 | ||||
-rw-r--r-- | media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch | 38 | ||||
-rw-r--r-- | media-libs/plotutils/plotutils-2.4.1-r3.ebuild | 82 |
5 files changed, 133 insertions, 3 deletions
diff --git a/media-libs/plotutils/ChangeLog b/media-libs/plotutils/ChangeLog index bafae61bab9b..150df10fb49c 100644 --- a/media-libs/plotutils/ChangeLog +++ b/media-libs/plotutils/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/plotutils # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/ChangeLog,v 1.14 2004/04/06 17:54:14 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/ChangeLog,v 1.15 2004/04/26 10:05:59 lanius Exp $ + +*plotutils-2.4.1-r3 (26 Apr 2004) + + 26 Apr 2004; Heinrich Wendel <lanius@gentoo.org> plotutils-2.4.1-r3.ebuild, + files/plotutils-2.4.1-rangecheck.patch: + bug #47688 06 Apr 2004; Aron Griffis <agriffis@gentoo.org> plotutils-2.4.1-r2.ebuild: Stable on ia64 diff --git a/media-libs/plotutils/Manifest b/media-libs/plotutils/Manifest index ba2c707b3b91..aaa2b0cee15f 100644 --- a/media-libs/plotutils/Manifest +++ b/media-libs/plotutils/Manifest @@ -1,5 +1,8 @@ -MD5 78a40349d589a6f9c03175db8335a6b8 ChangeLog 1802 +MD5 c671a3ddfe66ffeaa7650ab1a19ed006 plotutils-2.4.1-r3.ebuild 2673 MD5 83eaf66bc644402568b534078f498a2e plotutils-2.4.1-r2.ebuild 2614 +MD5 78a40349d589a6f9c03175db8335a6b8 ChangeLog 1802 MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161 -MD5 f41fecf24623ef77206e245d09f7c9da files/digest-plotutils-2.4.1-r2 68 +MD5 3b5cdbb61e3d7337ad331b2da0e82315 files/plotutils-2.4.1-rangecheck.patch 1858 MD5 37137ec05ee56b449d60098e9dd9c6e9 files/plotutils-2.4.1-gentoo.patch 2619 +MD5 f41fecf24623ef77206e245d09f7c9da files/digest-plotutils-2.4.1-r2 68 +MD5 f41fecf24623ef77206e245d09f7c9da files/digest-plotutils-2.4.1-r3 68 diff --git a/media-libs/plotutils/files/digest-plotutils-2.4.1-r3 b/media-libs/plotutils/files/digest-plotutils-2.4.1-r3 new file mode 100644 index 000000000000..e75553aa5a39 --- /dev/null +++ b/media-libs/plotutils/files/digest-plotutils-2.4.1-r3 @@ -0,0 +1 @@ +MD5 8da2cc2ed5a837cad0753c7843ef18ee plotutils-2.4.1.tar.gz 3316030 diff --git a/media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch b/media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch new file mode 100644 index 000000000000..d3346b74ab0a --- /dev/null +++ b/media-libs/plotutils/files/plotutils-2.4.1-rangecheck.patch @@ -0,0 +1,38 @@ +*** 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/plotutils-2.4.1-r3.ebuild b/media-libs/plotutils/plotutils-2.4.1-r3.ebuild new file mode 100644 index 000000000000..6e894b172b2d --- /dev/null +++ b/media-libs/plotutils/plotutils-2.4.1-r3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/plotutils-2.4.1-r3.ebuild,v 1.1 2004/04/26 10:05:59 lanius Exp $ + +IUSE="X" + +inherit libtool + +#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" +SRC_URI="ftp://ftp.gnu.org/gnu/plotutils/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/plotutils/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64 ~ia64" + +DEPEND="media-libs/libpng + X? ( virtual/x11 )" + + +# Filter out k6 from the CFLAGS +export CFLAGS="${CFLAGS/k6-3/i586}" +export CFLAGS="${CFLAGS/k6-2/i586}" +export CFLAGS="${CFLAGS/k6/i586}" +export CXXFLAGS="${CFLAGS}" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/plotutils-2.4.1-gentoo.patch + epatch ${FILESDIR}/plotutils-2.4.1-rangecheck.patch +} + +src_compile() { + 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 COPYING ChangeLog INSTALL* \ + KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO +} + +pkg_postinst() { + if [ 'use X' ] ; then + einfo "There are extra fonts available in plotutils package." + einfo "The current ebuild does not install them for you." + einfo "You may want to do so, but you will have to do it" + einfo "manually. You are on your own for now." + einfo "See /usr/share/doc/${P}/INSTALL.fonts" + einfo "" + einfo "If you manually install the extra fonts and use the" + einfo "program xfig, you might want to recompile to take" + einfo "advantage of the additional ps fonts." + einfo "Also, it is possible to enable ghostscript and possibly" + einfo "your printer to use the HP fonts." + fi +} |