summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-10-28 19:36:21 +0000
committerJeroen Roovers <jer@gentoo.org>2014-10-28 19:36:21 +0000
commitf72b82f823f3680bc5d5de1aa00e5136b692ba93 (patch)
tree5dc3189be4993b4742c0a8b97dd67b348662bf35 /net-nntp
parentFix e-mail address. (diff)
downloadgentoo-2-f72b82f823f3680bc5d5de1aa00e5136b692ba93.tar.gz
gentoo-2-f72b82f823f3680bc5d5de1aa00e5136b692ba93.tar.bz2
gentoo-2-f72b82f823f3680bc5d5de1aa00e5136b692ba93.zip
Fix building against sys-libs/ncurses[tinfo] (bug #527262).
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/nzbget/ChangeLog6
-rw-r--r--net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch18
-rw-r--r--net-nntp/nzbget/nzbget-14.0_pre1145.ebuild6
3 files changed, 27 insertions, 3 deletions
diff --git a/net-nntp/nzbget/ChangeLog b/net-nntp/nzbget/ChangeLog
index d7204b19c804..94513fe0b742 100644
--- a/net-nntp/nzbget/ChangeLog
+++ b/net-nntp/nzbget/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-nntp/nzbget
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.90 2014/10/18 04:33:28 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.91 2014/10/28 19:36:21 jer Exp $
+
+ 28 Oct 2014; Jeroen Roovers <jer@gentoo.org>
+ +files/nzbget-14.0_pre1145-tinfo.patch, nzbget-14.0_pre1145.ebuild:
+ Fix building against sys-libs/ncurses[tinfo] (bug #527262).
*nzbget-14.0_pre1145 (18 Oct 2014)
diff --git a/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch b/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch
new file mode 100644
index 000000000000..e6cd13f6ffc1
--- /dev/null
+++ b/net-nntp/nzbget/files/nzbget-14.0_pre1145-tinfo.patch
@@ -0,0 +1,18 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -46,6 +46,7 @@
+ AC_PATH_PROG(MAKE, make, $FALSE)
+ AC_PROG_INSTALL
+
++PKG_PROG_PKG_CONFIG()
+
+ dnl
+ dnl Do all tests with c++ compiler.
+@@ -291,6 +292,7 @@
+ if test "$FOUND" = "no"; then
+ AC_MSG_ERROR([Couldn't find curses headers (ncurses.h or curses.h)])
+ fi
++ PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",)
+ AC_SEARCH_LIBS([refresh], [ncurses curses],,
+ AC_ERROR([Couldn't find curses library]))
+ else
diff --git a/net-nntp/nzbget/nzbget-14.0_pre1145.ebuild b/net-nntp/nzbget/nzbget-14.0_pre1145.ebuild
index 70180f554f83..705bcf033389 100644
--- a/net-nntp/nzbget/nzbget-14.0_pre1145.ebuild
+++ b/net-nntp/nzbget/nzbget-14.0_pre1145.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-14.0_pre1145.ebuild,v 1.1 2014/10/18 04:33:28 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-14.0_pre1145.ebuild,v 1.2 2014/10/28 19:36:21 jer Exp $
EAPI=5
-inherit autotools user eutils
+inherit autotools eutils user
MY_P=${P/_pre/-testing-r}
@@ -36,6 +36,8 @@ DOCS=( AUTHORS ChangeLog README nzbget.conf )
S=${WORKDIR}/${P/_pre*/-testing}
src_prepare() {
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+
sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
sed \