summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-02-08 11:15:55 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-02-08 11:15:55 +0000
commit49be811cac79b56dfa2a17ad3596a95d7d365937 (patch)
treeab41a4e01b24334331acaefe029623f902be28d6 /dev-libs/pslib
parentversion bump as per bug #257121 thanks Daniel Pielmeier and Bernd Butscheidt (diff)
downloadgentoo-2-49be811cac79b56dfa2a17ad3596a95d7d365937.tar.gz
gentoo-2-49be811cac79b56dfa2a17ad3596a95d7d365937.tar.bz2
gentoo-2-49be811cac79b56dfa2a17ad3596a95d7d365937.zip
Fix forced as-needed by linking to libm by Kevin Pyle, bug #249359
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/pslib')
-rw-r--r--dev-libs/pslib/ChangeLog10
-rw-r--r--dev-libs/pslib/files/pslib-lm.patch11
-rw-r--r--dev-libs/pslib/pslib-0.4.1-r1.ebuild43
3 files changed, 62 insertions, 2 deletions
diff --git a/dev-libs/pslib/ChangeLog b/dev-libs/pslib/ChangeLog
index 2b4bc24d522b..833c9b4778f3 100644
--- a/dev-libs/pslib/ChangeLog
+++ b/dev-libs/pslib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/pslib
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/pslib/ChangeLog,v 1.12 2008/01/19 16:48:05 aballier Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pslib/ChangeLog,v 1.13 2009/02/08 11:15:55 aballier Exp $
+
+*pslib-0.4.1-r1 (08 Feb 2009)
+
+ 08 Feb 2009; Alexis Ballier <aballier@gentoo.org> +files/pslib-lm.patch,
+ +pslib-0.4.1-r1.ebuild:
+ Fix forced as-needed by linking to libm by Kevin Pyle, bug #249359
*pslib-0.4.1 (19 Jan 2008)
diff --git a/dev-libs/pslib/files/pslib-lm.patch b/dev-libs/pslib/files/pslib-lm.patch
new file mode 100644
index 000000000000..46292eee3d4a
--- /dev/null
+++ b/dev-libs/pslib/files/pslib-lm.patch
@@ -0,0 +1,11 @@
+--- a/configure.in 2007-10-30 02:38:30.000000000 -0500
++++ b/configure.in 2009-01-21 18:55:37.000000000 -0600
+@@ -92,6 +92,8 @@
+ AC_SUBST(LIBHNJ_CFLAGS)
+ AC_SUBST(LIBHNJ_LIBS)
+
++AC_CHECK_LIB([m], [pow])
++
+ PNG_PREFIX=no
+ AC_ARG_WITH(png, [ --with-png=DIR Path to png library (/usr)])
+ case "${withval}" in
diff --git a/dev-libs/pslib/pslib-0.4.1-r1.ebuild b/dev-libs/pslib/pslib-0.4.1-r1.ebuild
new file mode 100644
index 000000000000..c4f4fc9d7711
--- /dev/null
+++ b/dev-libs/pslib/pslib-0.4.1-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pslib/pslib-0.4.1-r1.ebuild,v 1.1 2009/02/08 11:15:55 aballier Exp $
+
+inherit autotools eutils
+
+DESCRIPTION="pslib is a C-library to create PostScript files on the fly."
+HOMEPAGE="http://pslib.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pslib/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug jpeg png tiff"
+
+RDEPEND="png? ( media-libs/libpng )
+ jpeg? ( media-libs/jpeg )
+ tiff? ( media-libs/tiff )"
+#gif? requires libungif, not in portage
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ dev-perl/XML-Parser"
+SLOT="0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-lm.patch"
+ eautoreconf
+}
+
+src_compile() {
+ econf $(use_with png) \
+ $(use_with jpeg) \
+ $(use_with tiff) \
+ $(use_with debug) \
+ || die "Configure failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Make install failed"
+ dodoc AUTHORS README
+}