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

index ad4bb78c8530122307bd274e84533d337ef29cde..0cf7383a4c7e4d284de2ad89117fb24a63d87254 100644 (file)
@@ -16,6 +16,7 @@ KEYWORDS="~alpha amd64 ~ia64 ~mips ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux
 IUSE=""
 
 RDEPEND="!app-editors/ersatz-emacs"
+BDEPEND="virtual/pkgconfig"
 S="${WORKDIR}/easyedit-${PV}"
 
 PATCHES=(
@@ -36,6 +37,7 @@ src_prepare() {
                -e "s/\tcc /\t\\\\\$(CC) /" \
                -e "/CFLAGS =/s/\" >/ \\\\\$(LDFLAGS)\" >/" \
                -e "/other_cflag/s/ *-s//" \
+               -e "s/-lcurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
                create.make
 
        default