app-shells/hstr: add back tinfo patch.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 23 Feb 2018 09:06:20 +0000 (10:06 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 23 Feb 2018 09:06:51 +0000 (10:06 +0100)
Closes: https://bugs.gentoo.org/644750
Package-Manager: Portage-2.3.19, Repoman-2.3.6

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

diff --git a/app-shells/hstr/files/hstr-1.24-tinfo.patch b/app-shells/hstr/files/hstr-1.24-tinfo.patch
new file mode 100644 (file)
index 0000000..85a4743
--- /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_SEARCH_LIBS(keypad, tinfo, [], [AC_MSG_ERROR([Could not find tinfo library])])
+ # Checks for header files.
+ AC_CHECK_HEADER(assert.h)
index 0f8e9981f2a383c384e73d976bab3ac0703a8dd1..fc44e8039c0be5ad282cda6075e82d678fc1c1a9 100644 (file)
@@ -20,6 +20,7 @@ DEPEND="
        virtual/pkgconfig"
 
 DOCS=( CONFIGURATION.md README.md )
+PATCHES=( "${FILESDIR}/${P}-tinfo.patch" )
 
 src_prepare() {
        default