aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-02-19 22:27:39 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-02-21 00:01:48 +0500
commit2f7cb7ecafb25f97b813317ee661f0d6701eb7f8 (patch)
tree52032dad891be0cfa54662caedeba61f62d6afaf /net-news
parentnet-irc/pounce: initial import (diff)
downloadguru-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.ebuild13
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() {