app-misc/abook: Fix building against sys-libs/ncurses[tinfo] (bug #606478).
authorJeroen Roovers <jer@gentoo.org>
Fri, 2 Mar 2018 10:14:16 +0000 (11:14 +0100)
committerJeroen Roovers <jer@gentoo.org>
Fri, 2 Mar 2018 10:14:16 +0000 (11:14 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-misc/abook/abook-0.6.1-r1.ebuild
app-misc/abook/files/abook-0.6.1-tinfo.patch [new file with mode: 0644]

index 4d1dccd13b8fc9cd3da243dc5fb9a36b74f7758c..37e0289c6c32cd23c9813dba746ffb969e8186f7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -26,11 +26,12 @@ DEPEND="nls? ( sys-devel/gettext )"
 S="${WORKDIR}/${MY_P}"
 
 DOCS=( BUGS ChangeLog FAQ README TODO sample.abookrc )
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.6.1-tinfo.patch
+)
 
 src_prepare() {
        default
-
-       # TODO: do the right thing and find out whats wrong with Makefile.in
        eautoreconf
 }
 
diff --git a/app-misc/abook/files/abook-0.6.1-tinfo.patch b/app-misc/abook/files/abook-0.6.1-tinfo.patch
new file mode 100644 (file)
index 0000000..e8c4585
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -86,6 +86,7 @@
+ AC_CHECK_LIB(ncursesw, initscr,
+       [LIBS="$LIBS -lncursesw"
++      AC_SEARCH_LIBS(cbreak, tinfo)
+       if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
+               CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
+       fi
+@@ -93,6 +94,7 @@
+       ac_widec_possible=no
+       AC_CHECK_LIB(ncurses, initscr,
+               [LIBS="$LIBS -lncurses"
++              AC_SEARCH_LIBS(cbreak, tinfo)
+               if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
+                       CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
+               fi