summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-05-16 20:37:53 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-05-16 20:37:53 +0000
commitfecdc9b15deb8cd5de5d2a9eca07d4b3f288914d (patch)
treed603709e42308ccde35a510d7c435aac4d360cbd /dev-libs
parentStable on amd64 wrt bug #302033 (diff)
downloadgentoo-2-fecdc9b15deb8cd5de5d2a9eca07d4b3f288914d.tar.gz
gentoo-2-fecdc9b15deb8cd5de5d2a9eca07d4b3f288914d.tar.bz2
gentoo-2-fecdc9b15deb8cd5de5d2a9eca07d4b3f288914d.zip
Fix implicit declaration of function png_set_gray_1_2_4_to_8 with libpng14.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/pslib/ChangeLog11
-rw-r--r--dev-libs/pslib/pslib-0.4.1-r2.ebuild49
2 files changed, 58 insertions, 2 deletions
diff --git a/dev-libs/pslib/ChangeLog b/dev-libs/pslib/ChangeLog
index dc644f82c276..9df445dbf059 100644
--- a/dev-libs/pslib/ChangeLog
+++ b/dev-libs/pslib/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/pslib
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/pslib/ChangeLog,v 1.16 2009/11/21 17:30:30 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pslib/ChangeLog,v 1.17 2010/05/16 20:37:53 ssuominen Exp $
+
+*pslib-0.4.1-r2 (16 May 2010)
+
+ 16 May 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +pslib-0.4.1-r2.ebuild:
+ Fix implicit declaration of function png_set_gray_1_2_4_to_8 with
+ libpng14.
21 Nov 2009; Markus Meier <maekke@gentoo.org> pslib-0.4.1-r1.ebuild:
amd64 stable, bug #289340
diff --git a/dev-libs/pslib/pslib-0.4.1-r2.ebuild b/dev-libs/pslib/pslib-0.4.1-r2.ebuild
new file mode 100644
index 000000000000..b4176134872a
--- /dev/null
+++ b/dev-libs/pslib/pslib-0.4.1-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 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-r2.ebuild,v 1.1 2010/05/16 20:37:53 ssuominen Exp $
+
+EAPI=2
+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"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug jpeg png tiff"
+
+RDEPEND="png? ( >=media-libs/libpng-1.2.43-r2:0 )
+ jpeg? ( media-libs/jpeg:0 )
+ tiff? ( media-libs/tiff )"
+#gif? requires libungif, not in portage
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ >=dev-libs/glib-2
+ dev-util/intltool
+ dev-perl/XML-Parser"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-lm.patch \
+ "${FILESDIR}"/${PN}-getline.patch
+
+ sed -i \
+ -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
+ src/pslib.c || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with png) \
+ $(use_with jpeg) \
+ $(use_with tiff) \
+ $(use_with debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS README
+}