1 |
commit: 2f7cb7ecafb25f97b813317ee661f0d6701eb7f8 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Feb 19 17:27:39 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Feb 20 19:01:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f7cb7ec |
7 |
|
8 |
net-news/sfeed: use pkgconfig to configure ncurses |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
net-news/sfeed/sfeed-1.2.ebuild | 13 ++++++------- |
13 |
1 file changed, 6 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/net-news/sfeed/sfeed-1.2.ebuild b/net-news/sfeed/sfeed-1.2.ebuild |
16 |
index 48eb012e4..903136159 100644 |
17 |
--- a/net-news/sfeed/sfeed-1.2.ebuild |
18 |
+++ b/net-news/sfeed/sfeed-1.2.ebuild |
19 |
@@ -29,14 +29,12 @@ IUSE=" |
20 |
REQUIRED_USE="ncurses? ( ^^ ( theme-mono theme-mono-highlight theme-newsboat theme-templeos ) )" |
21 |
|
22 |
DEPEND="ncurses? ( sys-libs/ncurses )" |
23 |
-RDEPEND="ncurses? ( !net-news/sfeed_curses ) ${DEPEND}" |
24 |
+RDEPEND="${DEPEND} |
25 |
+ ncurses? ( !net-news/sfeed_curses ) |
26 |
+" |
27 |
+BDEPEND="virtual/pkgconfig" |
28 |
|
29 |
src_configure() { |
30 |
- # Gentoo requires -ltinfo |
31 |
- sed -i \ |
32 |
- -e "/^#SFEED_CURSES_LDFLAGS.*-ltinfo/{s|#||g}" \ |
33 |
- Makefile || die "sed failed" |
34 |
- |
35 |
if use theme-mono ; then |
36 |
SFEED_THEME="mono" |
37 |
elif use theme-mono-highlight ; then |
38 |
@@ -60,7 +58,8 @@ src_compile() { |
39 |
tc-export AR CC |
40 |
emake RANLIB=$(tc-getRANLIB) \ |
41 |
SFEED_CURSES="${SFEED_CURSES}" \ |
42 |
- SFEED_THEME="${SFEED_THEME}" |
43 |
+ SFEED_THEME="${SFEED_THEME}" \ |
44 |
+ SFEED_CURSES_LDFLAGS="${LDFLAGS} $(pkg-config --libs ncurses)" |
45 |
} |
46 |
|
47 |
src_install() { |