app-editors/aee: fix build with sys-libs/ncurses[tinfo]
authorAkinori Hattori <hattya@gentoo.org>
Sat, 16 May 2020 15:04:22 +0000 (00:04 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sat, 16 May 2020 15:04:22 +0000 (00:04 +0900)
Closes: https://bugs.gentoo.org/715782
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
app-editors/aee/aee-2.2.21.ebuild

index 69453af195f6de6366e6d597d97da29756a35094..b4b1aa5d647ee626c7f7c47642d9b7e800026e28 100644 (file)
@@ -17,6 +17,7 @@ IUSE="X"
 
 RDEPEND="X? ( x11-libs/libX11 )"
 DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-ae-location.patch
@@ -36,6 +37,7 @@ src_prepare() {
                -e "s/\([\t ]\)cc /\1\\\\\$(CC) /" \
                -e "/CFLAGS =/s/\" >/ \\\\\$(LDFLAGS)\" >/" \
                -e "/other_cflag/s/ \${strip_option}//" \
+               -e "s/-lcurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
                create.mk.{aee,xae}
 
        default