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

app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch [new file with mode: 0644]
app-editors/hteditor/hteditor-2.1.0.ebuild

diff --git a/app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch b/app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch
new file mode 100644 (file)
index 0000000..556cb93
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -198,6 +198,7 @@
+       fi
+       HT_LIBS="$HT_LIBS -l$CURSES_LIB"
+ fi    
++AC_SEARCH_LIBS(stdscr,tinfo)
+ dnl Makefile vars.
+ AC_SUBST(IO_DIR)
index a38ef31072d0a36cf054f9d2e97efaf35ff2ec79..5e5d0e0830854c763c77738a284d6606191c31b5 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit toolchain-funcs
+inherit autotools toolchain-funcs
 
 MY_P=${P/editor}
 
@@ -27,7 +27,15 @@ DOCS=( AUTHORS ChangeLog KNOWNBUGS README TODO )
 
 S=${WORKDIR}/${MY_P}
 
-PATCHES=("${FILESDIR}"/${P}-gcc-7.patch)
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc-7.patch
+       "${FILESDIR}"/${P}-tinfo.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
 
 src_configure() {
        econf \