newsbeuter: fix build with ncurses 6 (FS#1253)

This commit is contained in:
Juergen Daubert 2015-11-29 18:46:10 +01:00
parent f059b51b66
commit dc314eab55
4 changed files with 30 additions and 8 deletions

View File

@ -2,7 +2,8 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/newsbeuter
-rwxr-xr-x root/root usr/bin/podbeuter
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rwxr-xr-x root/root usr/man/man1/newsbeuter.1.gz
-rwxr-xr-x root/root usr/man/man1/podbeuter.1.gz
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rwxr-xr-x root/root usr/share/man/man1/newsbeuter.1.gz
-rwxr-xr-x root/root usr/share/man/man1/podbeuter.1.gz

View File

@ -1 +1,2 @@
9cf332dc7e591023147bda7add430835 newsbeuter-2.9.tar.gz
ce17d0a91470bd334be6e89c5673aa1c newsbeuter-ncursesw.patch

View File

@ -5,14 +5,16 @@
name=newsbeuter
version=2.9
release=1
source=(http://www.newsbeuter.org/downloads/$name-$version.tar.gz)
release=2
source=(http://www.newsbeuter.org/downloads/$name-$version.tar.gz \
$name-ncursesw.patch)
build () {
cd $name-$version
export prefix=/usr mandir=/usr/man
export prefix=/usr
patch -p1 -i $SRC/$name-ncursesw.patch
./config.sh
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
rm -r $PKG/usr/share/{doc,locale}
}

View File

@ -0,0 +1,18 @@
commit 02f08698f74bb5bba6f036292b1d26fd22255c7f
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Thu Aug 27 12:32:18 2015 +0200
Use pkg-config to search for ncursesw.
diff --git a/config.sh b/config.sh
index a9f0081..4f8afe4 100755
--- a/config.sh
+++ b/config.sh
@@ -110,6 +110,7 @@ check_pkg "stfl" || fail "stfl"
if [ `uname -s` = "Darwin" ]; then
check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4"
elif [ `uname -s` != "OpenBSD" ]; then
+ check_pkg "ncursesw" || \
check_custom "ncursesw5" "ncursesw5-config" || fail "ncursesw"
fi
check_ssl_implementation