app-misc/cdircmp: Fix build with ncurses[tinfo]
authorPacho Ramos <pacho@gentoo.org>
Sat, 20 Oct 2018 18:22:07 +0000 (20:22 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sat, 20 Oct 2018 18:51:09 +0000 (20:51 +0200)
Thanks-to: SÅ‚awomir Nizio
Closes: https://bugs.gentoo.org/665036
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

app-misc/cdircmp/cdircmp-0.3-r2.ebuild

index 928b138f683c252be47b2905feda244b328d8723..320af7a9c01d25cddc2348bb21dce151c2f5113b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -15,6 +15,9 @@ KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
 RDEPEND=">=sys-libs/ncurses-5.4:0="
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+"
 
 src_prepare() {
        sed -i Makefile \
@@ -26,7 +29,7 @@ src_prepare() {
 src_compile() {
        emake CC="$(tc-getCC)" \
                CFLAGS="${CFLAGS}" \
-               LDFLAGS="${LDFLAGS}"
+               LDFLAGS="$(pkg-config --libs ncurses) ${LDFLAGS}"
 }
 
 src_install() {