--- ./abook-0.6.1.ebuild.old 2017-01-20 12:04:53.000000000 +0100 +++ ./abook-0.6.1.ebuild 2017-01-28 10:54:42.354147205 +0100 @@ -3,7 +3,7 @@ # $Id$ EAPI=5 -inherit autotools +inherit autotools toolchain-funcs MY_P="${P/_/}" DESCRIPTION="Abook is a text-based addressbook program designed to use with mutt mail client" @@ -38,7 +38,8 @@ src_compile() { # bug 570428 - emake CFLAGS="${CFLAGS} -std=gnu89" + emake CFLAGS="${CFLAGS} -std=gnu89" \ + abook_LDADD="$($(tc-getPKG_CONFIG) --libs ncurses)" } src_install() {