summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-03-02 11:26:01 +0100
committerJeroen Roovers <jer@gentoo.org>2018-03-02 11:26:14 +0100
commit09b77cdaec0cd7b617c92e936cbec78652157e3a (patch)
tree52778fd37ea24fecb9bf1c1e9a00542882e244ff /app-editors
parentdev-ruby/netrc: add ruby24, ruby25 (diff)
downloadgentoo-09b77cdaec0cd7b617c92e936cbec78652157e3a.tar.gz
gentoo-09b77cdaec0cd7b617c92e936cbec78652157e3a.tar.bz2
gentoo-09b77cdaec0cd7b617c92e936cbec78652157e3a.zip
app-editors/hteditor: Fix building against sys-libs/ncurses[tinfo] (bug #601080).
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch10
-rw-r--r--app-editors/hteditor/hteditor-2.1.0.ebuild14
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 000000000000..556cb93569d4
--- /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 a38ef31072d0..5e5d0e083085 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 \