app-editors/fe: Fix compilation with ncurses[tinfo].
authorUlrich Müller <ulm@gentoo.org>
Fri, 23 Nov 2018 17:23:55 +0000 (18:23 +0100)
committerUlrich Müller <ulm@gentoo.org>
Fri, 23 Nov 2018 17:25:12 +0000 (18:25 +0100)
Closes: https://bugs.gentoo.org/671714
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
app-editors/fe/fe-2.0.ebuild

index 9e1866c107cee6a8636aa02d83099f52ca09db04..ca6658d94079037deee9f7c878282e82da58b817 100644 (file)
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="A small and easy to use folding editor"
 HOMEPAGE="http://www.moria.de/~michael/fe/"
 SRC_URI="http://www.moria.de/~michael/fe/${P}.tar.gz"
@@ -15,11 +17,14 @@ IUSE="sendmail"
 RDEPEND="sys-libs/ncurses:0=
        sendmail? ( virtual/mta )"
 DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=("${FILESDIR}"/${PN}-1.8-makefile.patch)
 
 src_configure() {
-       econf $(use_enable sendmail)
+       econf \
+               $(use_enable sendmail) \
+               LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
 }
 
 src_install() {