From 78754950ffa3aaba0f48b1ca1d505caa4a3dfbfa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 4 Oct 2022 13:17:38 +0100 Subject: gentoo auto-resync : 04:10:2022 - 13:17:38 --- dev-libs/pslib/pslib-0.4.6.ebuild | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-libs/pslib/pslib-0.4.6.ebuild (limited to 'dev-libs/pslib/pslib-0.4.6.ebuild') diff --git a/dev-libs/pslib/pslib-0.4.6.ebuild b/dev-libs/pslib/pslib-0.4.6.ebuild new file mode 100644 index 000000000000..4391cb1b9132 --- /dev/null +++ b/dev-libs/pslib/pslib-0.4.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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 ~amd64-linux ~x86-linux" +IUSE="debug jpeg png tiff" + +RDEPEND=" + png? ( media-libs/libpng:= ) + jpeg? ( media-libs/libjpeg-turbo:= ) + tiff? ( media-libs/tiff:= )" +#gif? requires libungif, not in portage +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/perl + dev-libs/glib:2 + dev-util/intltool + dev-perl/XML-Parser + sys-devel/gettext" + +PATCHES=( + "${FILESDIR}"/${PN}-0.4.5-fix-build-system.patch + "${FILESDIR}"/${PN}-0.4.6-Fix-implicit-function-declarations.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --enable-bmp \ + $(use_with png) \ + $(use_with jpeg) \ + $(use_with tiff) \ + $(use_with debug) +} + +src_install() { + default + + # package installs .pc files + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3