summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2010-10-26 22:18:13 +0000
committerTim Harder <radhermit@gentoo.org>2010-10-26 22:18:13 +0000
commit34dc1fe238ef8fa2f4ec4d8a4200625385c2c1c2 (patch)
treee2fcd10467353533af4dbdda16248e8549f162e0 /media-libs
parentInitial import (diff)
downloadgentoo-2-34dc1fe238ef8fa2f4ec4d8a4200625385c2c1c2.tar.gz
gentoo-2-34dc1fe238ef8fa2f4ec4d8a4200625385c2c1c2.tar.bz2
gentoo-2-34dc1fe238ef8fa2f4ec4d8a4200625385c2c1c2.zip
Version bump for bug #300559. Update info about extra fonts (bug #256086 by Martin Mokrejš), bump to EAPI=3, add png and static-libs USE flags, set RDEPEND=, apply patch to fix sandbox issues, remove old CFLAGS replacement, and use emake rather than einstall.
(Portage version: 2.2_rc98/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/plotutils/ChangeLog13
-rw-r--r--media-libs/plotutils/files/plotutils-2.6-makefile.patch73
-rw-r--r--media-libs/plotutils/plotutils-2.6.ebuild67
3 files changed, 151 insertions, 2 deletions
diff --git a/media-libs/plotutils/ChangeLog b/media-libs/plotutils/ChangeLog
index 06bae775b422..631872f0d487 100644
--- a/media-libs/plotutils/ChangeLog
+++ b/media-libs/plotutils/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-libs/plotutils
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/ChangeLog,v 1.51 2009/01/07 15:58:17 ranger Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/ChangeLog,v 1.52 2010/10/26 22:18:13 radhermit Exp $
+
+*plotutils-2.6 (26 Oct 2010)
+
+ 26 Oct 2010; Tim Harder <radhermit@gentoo.org> +plotutils-2.6.ebuild,
+ +files/plotutils-2.6-makefile.patch:
+ Version bump for bug #300559. Update info about extra fonts (bug #256086
+ by Martin Mokrejš), bump to EAPI=3, add png and static-libs USE flags,
+ set RDEPEND=, apply patch to fix sandbox issues, remove old CFLAGS
+ replacement, and use emake rather than einstall.
07 Jan 2009; Brent Baude <ranger@gentoo.org> plotutils-2.5.1.ebuild:
stable ppc64, bug 245690
diff --git a/media-libs/plotutils/files/plotutils-2.6-makefile.patch b/media-libs/plotutils/files/plotutils-2.6-makefile.patch
new file mode 100644
index 000000000000..a78801f3cf79
--- /dev/null
+++ b/media-libs/plotutils/files/plotutils-2.6-makefile.patch
@@ -0,0 +1,73 @@
+--- plotutils-2.6.orig/configure.ac 2009-07-29 20:14:09.000000000 -0700
++++ plotutils-2.6/configure.ac 2010-10-18 01:46:57.328444564 -0700
+@@ -65,6 +65,8 @@
+ # SCO OpenServer 5 (i.e. *-*-sco3.2v5*), "-belf" is added.
+ AC_PROG_LIBTOOL
+
++AC_PROG_CXX
++
+ # Determine extension (e.g. ".exe") on executables, if any.
+ AC_EXEEXT
+
+--- plotutils-2.6.orig/doc/Makefile.am 2009-07-30 08:49:46.000000000 -0700
++++ plotutils-2.6/doc/Makefile.am 2010-10-18 01:57:50.525852285 -0700
+@@ -3,11 +3,3 @@
+
+ # files with nonstandard names in this directory
+ EXTRA_DIST = colors.txt h-fonts.txt h-glyphs.txt hershey.bib kana.txt kanji.txt
+-
+-# remove documentation files installed by previous versions of the package,
+-# with obsolete names
+-
+-OBSOLETEDOC = hershey-demo.c hershey-fonts hershey-number hershey.doc h-fonts.doc h-glyphs.doc kana.doc kanji.doc demo-page h-demo.c
+-
+-install-data-hook:
+- -for f in $(OBSOLETEDOC) ; do rm -f $(datadir)/libplot/$$f; done
+--- plotutils-2.6.orig/graph/Makefile.am 2005-11-25 20:40:13.000000000 -0800
++++ plotutils-2.6/graph/Makefile.am 2010-10-18 01:23:07.194720342 -0700
+@@ -10,15 +10,5 @@
+
+ CLEANFILES = fontlist.c
+
+-# remove executables installed by previous versions of the package, and
+-# remove obsolete library versions too
+-
+-OBSOLETEBINS = graph-tek graph-hpgl graph-fig graph-ps graph-X
+-OBSOLETELIBS = libplottek.a libplothpgl.a libplotfig.a libplotps.a libplotX.a
+-
+-install-exec-hook:
+- -for f in $(OBSOLETEBINS) ; do rm -f $(bindir)/$$f; done
+- -for f in $(OBSOLETELIBS) ; do rm -f $(libdir)/$$f; done
+-
+ fontlist.c: $(top_srcdir)/lib/fontlist.c
+ @rm -f fontlist.c ; if $(LN_S) $(top_srcdir)/lib/fontlist.c fontlist.c ; then true ; else cp -p $(top_srcdir)/lib/fontlist.c fontlist.c ; fi
+--- plotutils-2.6.orig/plot/Makefile.am 2005-11-25 20:40:13.000000000 -0800
++++ plotutils-2.6/plot/Makefile.am 2010-10-18 01:23:37.714971379 -0700
+@@ -9,12 +9,5 @@
+
+ CLEANFILES = fontlist.c
+
+-# remove executables installed by previous versions of the package
+-
+-OBSOLETEBINS = plot2plot plot2tek plot2hpgl plot2fig plot2ps plot2X
+-
+-install-exec-hook:
+- -for f in $(OBSOLETEBINS) ; do rm -f $(bindir)/$$f; done
+-
+ fontlist.c: $(top_srcdir)/lib/fontlist.c
+ @rm -f fontlist.c ; if $(LN_S) $(top_srcdir)/lib/fontlist.c fontlist.c ; then true ; else cp -p $(top_srcdir)/lib/fontlist.c fontlist.c ; fi
+--- plotutils-2.6.orig/tek2plot/Makefile.am 2005-11-25 20:40:13.000000000 -0800
++++ plotutils-2.6/tek2plot/Makefile.am 2010-10-18 01:23:48.011056089 -0700
+@@ -12,12 +12,5 @@
+
+ SUBDIRS = teksamples
+
+-# remove executables installed by previous versions of the package
+-
+-OBSOLETEBINS = tek2tek tek2hpgl tek2fig tek2ps tek2X
+-
+-install-exec-hook:
+- -for f in $(OBSOLETEBINS) ; do rm -f $(bindir)/$$f; done
+-
+ fontlist.c: $(top_srcdir)/lib/fontlist.c
+ @rm -f fontlist.c ; if $(LN_S) $(top_srcdir)/lib/fontlist.c fontlist.c ; then true ; else cp -p $(top_srcdir)/lib/fontlist.c fontlist.c ; fi
diff --git a/media-libs/plotutils/plotutils-2.6.ebuild b/media-libs/plotutils/plotutils-2.6.ebuild
new file mode 100644
index 000000000000..efbf2e63a65d
--- /dev/null
+++ b/media-libs/plotutils/plotutils-2.6.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/plotutils/plotutils-2.6.ebuild,v 1.1 2010/10/26 22:18:13 radhermit Exp $
+
+EAPI=3
+inherit libtool eutils autotools
+
+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="+png static-libs X"
+
+DEPEND="png? ( media-libs/libpng
+ sys-libs/zlib )
+ X? ( x11-libs/libXaw
+ x11-proto/xextproto )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.5.1-rangecheck.patch"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+ eautoreconf
+ elibtoolize
+}
+
+src_configure() {
+ local myconf
+ if use X ; then
+ myconf="--with-x --enable-libxmi"
+ else
+ myconf="--without-x"
+ fi
+
+ econf \
+ --disable-dependency-tracking \
+ --enable-shared \
+ --enable-libplotter \
+ $(use_enable static-libs static) \
+ $(use_with png libpng) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install 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 the plotutils package."
+ elog "The current ebuild does not install them for you since most"
+ elog "of them can be installed via the media-fonts/urw-fonts"
+ elog "package. See /usr/share/doc/${P}/INSTALL.fonts for"
+ elog "information on installing the remaining Tektronix 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
+}