commit:     09b77cdaec0cd7b617c92e936cbec78652157e3a
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  2 10:26:01 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Mar  2 10:26:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09b77cda

app-editors/hteditor: Fix building against sys-libs/ncurses[tinfo] (bug 
#601080).

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch | 10 ++++++++++
 app-editors/hteditor/hteditor-2.1.0.ebuild            | 14 +++++++++++---
 2 files changed, 21 insertions(+), 3 deletions(-)

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
index 00000000000..556cb93569d
--- /dev/null
+++ b/app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch
@@ -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)

diff --git a/app-editors/hteditor/hteditor-2.1.0.ebuild 
b/app-editors/hteditor/hteditor-2.1.0.ebuild
index a38ef31072d..5e5d0e08308 100644
--- a/app-editors/hteditor/hteditor-2.1.0.ebuild
+++ b/app-editors/hteditor/hteditor-2.1.0.ebuild
@@ -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 \

Reply via email to