From 2f7cb7ecafb25f97b813317ee661f0d6701eb7f8 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sat, 19 Feb 2022 22:27:39 +0500 Subject: net-news/sfeed: use pkgconfig to configure ncurses Signed-off-by: Anna (cybertailor) Vyalkova --- net-news/sfeed/sfeed-1.2.ebuild | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'net-news') 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() { -- cgit v1.2.3-65-gdbad