media-gfx/w3mimgfb: Fix linking issues (#655080 by Chris Torske)
authorPacho Ramos <pacho@gentoo.org>
Sat, 20 Oct 2018 16:00:19 +0000 (18:00 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sat, 20 Oct 2018 16:35:38 +0000 (18:35 +0200)
Closes: https://bugs.gentoo.org/655080
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild

index aa180059c55bd13d7f4395b7851e84f51d12a779..47def669f9b249ae4cb0e17795710c2aa547a311 100644 (file)
@@ -1,8 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-
+EAPI=7
 inherit toolchain-funcs
 
 DESCRIPTION="Image viewer for w3m under frame buffer environment"
@@ -16,13 +15,16 @@ IUSE=""
 
 DEPEND="media-libs/stimg"
 RDEPEND="${DEPEND}
-       virtual/w3m"
+       virtual/w3m
+"
 
 src_prepare() {
+       default
        sed \
                -e '/^CC/d' \
                -e '/^CFLAGS/d' \
                -e '/^LDFLAGS/d' \
+               -e 's/LIBS= -lstimg/LIBS= -lstimg -lpng -ljpeg -ltiff/g' \
                -i Makefile || die
        tc-export CC
 }