diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2022-02-19 22:27:39 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2022-02-21 00:01:48 +0500 |
commit | 2f7cb7ecafb25f97b813317ee661f0d6701eb7f8 (patch) | |
tree | 52032dad891be0cfa54662caedeba61f62d6afaf /net-news | |
parent | net-irc/pounce: initial import (diff) | |
download | guru-2f7cb7ecafb25f97b813317ee661f0d6701eb7f8.tar.gz guru-2f7cb7ecafb25f97b813317ee661f0d6701eb7f8.tar.bz2 guru-2f7cb7ecafb25f97b813317ee661f0d6701eb7f8.zip |
net-news/sfeed: use pkgconfig to configure ncurses
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'net-news')
-rw-r--r-- | net-news/sfeed/sfeed-1.2.ebuild | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net-news/sfeed/sfeed-1.2.ebuild b/net-news/sfeed/sfeed-1.2.ebuild index 48eb012e4..903136159 100644 --- a/net-news/sfeed/sfeed-1.2.ebuild +++ b/net-news/sfeed/sfeed-1.2.ebuild @@ -29,14 +29,12 @@ IUSE=" REQUIRED_USE="ncurses? ( ^^ ( theme-mono theme-mono-highlight theme-newsboat theme-templeos ) )" DEPEND="ncurses? ( sys-libs/ncurses )" -RDEPEND="ncurses? ( !net-news/sfeed_curses ) ${DEPEND}" +RDEPEND="${DEPEND} + ncurses? ( !net-news/sfeed_curses ) +" +BDEPEND="virtual/pkgconfig" src_configure() { - # Gentoo requires -ltinfo - sed -i \ - -e "/^#SFEED_CURSES_LDFLAGS.*-ltinfo/{s|#||g}" \ - Makefile || die "sed failed" - if use theme-mono ; then SFEED_THEME="mono" elif use theme-mono-highlight ; then @@ -60,7 +58,8 @@ src_compile() { tc-export AR CC emake RANLIB=$(tc-getRANLIB) \ SFEED_CURSES="${SFEED_CURSES}" \ - SFEED_THEME="${SFEED_THEME}" + SFEED_THEME="${SFEED_THEME}" \ + SFEED_CURSES_LDFLAGS="${LDFLAGS} $(pkg-config --libs ncurses)" } src_install() { |