summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-12-12 18:31:13 +0100
committerDavid Seifert <soap@gentoo.org>2019-12-12 18:31:13 +0100
commit97b82b149274761ea662e2492fe345f4e5891d7c (patch)
tree4e152c5bf22944b312abe8106500502f6ae5d552 /media-libs/giblib
parentmedia-libs/icclib: Port to EAPI 7 (diff)
downloadgentoo-97b82b149274761ea662e2492fe345f4e5891d7c.tar.gz
gentoo-97b82b149274761ea662e2492fe345f4e5891d7c.tar.bz2
gentoo-97b82b149274761ea662e2492fe345f4e5891d7c.zip
media-libs/giblib: Port to EAPI 7
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/giblib')
-rw-r--r--media-libs/giblib/files/giblib-1.2.4-fix-build-system.patch33
-rw-r--r--media-libs/giblib/giblib-1.2.4-r1.ebuild31
2 files changed, 53 insertions, 11 deletions
diff --git a/media-libs/giblib/files/giblib-1.2.4-fix-build-system.patch b/media-libs/giblib/files/giblib-1.2.4-fix-build-system.patch
new file mode 100644
index 000000000000..f1c37fbadaed
--- /dev/null
+++ b/media-libs/giblib/files/giblib-1.2.4-fix-build-system.patch
@@ -0,0 +1,33 @@
+--- a/giblib-config.in
++++ b/giblib-config.in
+@@ -46,7 +46,7 @@
+ ;;
+ --libs)
+ libdirs=-L@libdir@
+- echo $libdirs -lgiblib @LDFLAGS@ @IMLIB_LIBS@
++ echo $libdirs -lgiblib @IMLIB_LIBS@
+ ;;
+ *)
+ echo "${usage}" 1>&2
+--- a/giblib.pc.in
++++ b/giblib.pc.in
+@@ -6,6 +6,6 @@
+ Name: giblib
+ Description: wrapper library for imlib2, and other stuff
+ Version: @VERSION@
+-Libs: -L${libdir} -lgiblib @LDFLAGS@ @IMLIB_LIBS@
++Libs: -L${libdir} -lgiblib @IMLIB_LIBS@
+ Cflags: -I${includedir} -I${includedir}/giblib @IMLIB_CFLAGS@
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -2,8 +2,7 @@
+
+ SUBDIRS = giblib
+
+-docs_DATA = README AUTHORS ChangeLog TODO
+-docsdir = $(prefix)/doc/giblib
++doc_DATA = README AUTHORS ChangeLog TODO
+
+ EXTRA_DIST= $(docs_DATA) giblib.pc.in
+
diff --git a/media-libs/giblib/giblib-1.2.4-r1.ebuild b/media-libs/giblib/giblib-1.2.4-r1.ebuild
index 8c542462cf43..8eb73843f2be 100644
--- a/media-libs/giblib/giblib-1.2.4-r1.ebuild
+++ b/media-libs/giblib/giblib-1.2.4-r1.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="4"
-inherit epunt-cxx libtool
+EAPI=7
+
+inherit autotools
DESCRIPTION="a graphics library built on top of imlib2"
HOMEPAGE="http://freecode.com/projects/giblib http://www.linuxbrit.co.uk/giblib/"
@@ -11,21 +12,29 @@ SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
LICENSE="feh"
SLOT="0"
KEYWORDS="alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~sh sparc x86"
-IUSE="static-libs"
-RDEPEND=">=media-libs/imlib2-1.0.3[X]
+RDEPEND="
+ media-libs/freetype
+ media-libs/imlib2:=[X]
x11-libs/libX11
- x11-libs/libXext
- >=media-libs/freetype-2.0"
+ x11-libs/libXext"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${PN}-1.2.4-fix-build-system.patch )
+
src_prepare() {
- sed -i 's:@LDFLAGS@::' giblib-config.in giblib.pc.in || die #430724
- sed -i "/^docsdir/s:=.*:= @datadir@/doc/${PF}:" Makefile.in || die
- epunt_cxx
- elibtoolize # otherwise it doesnt install the .so -> .so.x symlink on fbsd
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
}
src_configure() {
- econf $(use_enable static-libs static)
+ econf --disable-static
+}
+
+src_install() {
+ default
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
}