Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/lpe/
Date: Fri, 02 Apr 2021 13:59:42
Message-Id: 1617371967.5ea6be86d6e62ea1e0e0fd25ab1afe8f2bb3646f.sam@gentoo
1 commit: 5ea6be86d6e62ea1e0e0fd25ab1afe8f2bb3646f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 2 13:51:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 2 13:59:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ea6be86
7
8 app-editors/lpe: fix ncurses discovery
9
10 I originally tested on a macOS Prefix which
11 apparently has non-split tinfo.
12
13 Closes: https://bugs.gentoo.org/779778
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 app-editors/lpe/lpe-1.2.8_p20210401.ebuild | 8 +++++++-
17 1 file changed, 7 insertions(+), 1 deletion(-)
18
19 diff --git a/app-editors/lpe/lpe-1.2.8_p20210401.ebuild b/app-editors/lpe/lpe-1.2.8_p20210401.ebuild
20 index 549d8c087e3..4cf5b201a5b 100644
21 --- a/app-editors/lpe/lpe-1.2.8_p20210401.ebuild
22 +++ b/app-editors/lpe/lpe-1.2.8_p20210401.ebuild
23 @@ -37,7 +37,13 @@ src_prepare() {
24 # That is, if you need eautoreconf
25 sed -i \
26 -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs-only-l ncurses):" \
27 - src/Makefile.in || die
28 + configure.ac || die
29 +
30 + # Actually use what configure discovers (above)
31 + # bug #779778
32 + sed -i \
33 + -e 's:-lncurses:@NCURSES_LIB@:' \
34 + src/Makefile.am || die
35
36 # Refresh outdated libtool (elibtoolize insufficient)
37 # Fixes undefined references on macOS/Darwin