net-news/newsbeuter: Fix building against sys-libs/ncurses-6 (bug #557608 by avx).
authorJeroen Roovers <jer@gentoo.org>
Fri, 18 Sep 2015 04:30:22 +0000 (06:30 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 18 Sep 2015 04:30:45 +0000 (06:30 +0200)
Package-Manager: portage-2.2.20.1

net-news/newsbeuter/files/newsbeuter-2.9-ncurses6.patch [new file with mode: 0644]
net-news/newsbeuter/newsbeuter-2.9.ebuild

diff --git a/net-news/newsbeuter/files/newsbeuter-2.9-ncurses6.patch b/net-news/newsbeuter/files/newsbeuter-2.9-ncurses6.patch
new file mode 100644 (file)
index 0000000..f645d7c
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/config.sh
++++ b/config.sh
+@@ -110,7 +110,7 @@
+ if [ `uname -s` = "Darwin" ]; then
+       check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4"
+ elif [ `uname -s` != "OpenBSD" ]; then
+-      check_custom "ncursesw5" "ncursesw5-config" ||  fail "ncursesw"
++      check_pkg "ncursesw" || fail "ncursesw"
+ fi
+ check_ssl_implementation
+ all_aboard_the_fail_boat
index 783def2a5240feb8f5a5fe569a30d9af78f7b759..8b1862ffc9e4d66523b0a4685f9f38278ba8081d 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI="5"
 
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
 
 DESCRIPTION="A RSS/Atom feed reader for the text console"
 HOMEPAGE="http://www.newsbeuter.org/index.html"
@@ -34,6 +34,7 @@ DEPEND="${RDEPEND}
 RESTRICT="test"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.9-ncurses6.patch
        sed -i 's:-ggdb::' Makefile || die
 }