summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-12-31 13:23:44 +0100
committerDavid Seifert <soap@gentoo.org>2017-12-31 13:44:18 +0100
commit395bfd358c5499dcf401ebaa00f9073d40d49c41 (patch)
tree2dcfb27a4782c1dd8ad762ee061c07c38479860f /dev-libs/pslib/pslib-0.4.5.ebuild
parentdev-libs/mdsplib: Port to EAPI 6 (diff)
downloadgentoo-395bfd358c5499dcf401ebaa00f9073d40d49c41.tar.gz
gentoo-395bfd358c5499dcf401ebaa00f9073d40d49c41.tar.bz2
gentoo-395bfd358c5499dcf401ebaa00f9073d40d49c41.zip
dev-libs/pslib: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-libs/pslib/pslib-0.4.5.ebuild')
-rw-r--r--dev-libs/pslib/pslib-0.4.5.ebuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/dev-libs/pslib/pslib-0.4.5.ebuild b/dev-libs/pslib/pslib-0.4.5.ebuild
index f3a704c4f43..b81fc2baa5c 100644
--- a/dev-libs/pslib/pslib-0.4.5.ebuild
+++ b/dev-libs/pslib/pslib-0.4.5.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=6
-inherit eutils autotools
+inherit autotools
DESCRIPTION="pslib is a C-library to create PostScript files on the fly"
HOMEPAGE="http://pslib.sourceforge.net/"
@@ -15,9 +15,9 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="debug jpeg png static-libs tiff"
RDEPEND="
- png? ( >=media-libs/libpng-1.2.43-r2:0 )
- jpeg? ( virtual/jpeg )
- tiff? ( media-libs/tiff )"
+ png? ( media-libs/libpng:0= )
+ jpeg? ( virtual/jpeg:0 )
+ tiff? ( media-libs/tiff:0= )"
#gif? requires libungif, not in portage
DEPEND="${RDEPEND}
dev-lang/perl
@@ -25,10 +25,11 @@ DEPEND="${RDEPEND}
dev-util/intltool
dev-perl/XML-Parser"
+PATCHES=( "${FILESDIR}"/${PN}-0.4.5-fix-build-system.patch )
+
src_prepare() {
- # hackpatchfix underlinking
- sed -i -e 's/$(TIFF_LIBS)/$(TIFF_LIBS) -lm/' src/Makefile.am || die
- sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
+ default
+ mv configure.{in,ac} || die
eautoreconf
}
@@ -45,5 +46,6 @@ src_configure() {
src_install() {
default
- prune_libtool_files --all
+ # package installs .pc files
+ find "${D}" -name '*.la' -delete || die
}