app-shells/hstr: Fix building against sys-libs/ncurses[tinfo] (bug #634428).
authorJeroen Roovers <jer@gentoo.org>
Mon, 16 Oct 2017 11:46:37 +0000 (13:46 +0200)
committerJeroen Roovers <jer@gentoo.org>
Mon, 16 Oct 2017 11:48:36 +0000 (13:48 +0200)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

app-shells/hstr/files/hstr-1.23-tinfo.patch [new file with mode: 0644]
app-shells/hstr/hstr-1.23.ebuild

diff --git a/app-shells/hstr/files/hstr-1.23-tinfo.patch b/app-shells/hstr/files/hstr-1.23-tinfo.patch
new file mode 100644 (file)
index 0000000..2dbd8dc
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -76,7 +76,7 @@
+ AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
+ AC_CHECK_LIB(readline, using_history, [], [AC_MSG_ERROR([Could not find readline library])])
+ # ncurses might be linked in libtinfo
+-#AC_CHECK_LIB(tinfo, keypad, [], [AC_MSG_ERROR([Could not find tinfo library])])
++AC_CHECK_LIB(tinfo, keypad, [], [AC_MSG_ERROR([Could not find tinfo library])])
+ # Checks for header files.
+ AC_CHECK_HEADER(assert.h)
index 8c05b341c62b9e31783b8d5a27b1cc3bb2752a03..aa0d958ff0d819d6f59f3504edbd48d0c18a4e6d 100644 (file)
@@ -20,6 +20,9 @@ DEPEND="
        virtual/pkgconfig"
 
 DOCS=( CONFIGURATION.md README.md )
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.23-tinfo.patch
+)
 
 src_prepare() {
        default