Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/hteditor/files/, app-editors/hteditor/
Date: Fri, 02 Mar 2018 10:26:19
Message-Id: 1519986374.09b77cdaec0cd7b617c92e936cbec78652157e3a.jer@gentoo
1 commit: 09b77cdaec0cd7b617c92e936cbec78652157e3a
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 2 10:26:01 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 2 10:26:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09b77cda
7
8 app-editors/hteditor: Fix building against sys-libs/ncurses[tinfo] (bug #601080).
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch | 10 ++++++++++
13 app-editors/hteditor/hteditor-2.1.0.ebuild | 14 +++++++++++---
14 2 files changed, 21 insertions(+), 3 deletions(-)
15
16 diff --git a/app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch b/app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch
17 new file mode 100644
18 index 00000000000..556cb93569d
19 --- /dev/null
20 +++ b/app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch
21 @@ -0,0 +1,10 @@
22 +--- a/configure.ac
23 ++++ b/configure.ac
24 +@@ -198,6 +198,7 @@
25 + fi
26 + HT_LIBS="$HT_LIBS -l$CURSES_LIB"
27 + fi
28 ++AC_SEARCH_LIBS(stdscr,tinfo)
29 +
30 + dnl Makefile vars.
31 + AC_SUBST(IO_DIR)
32
33 diff --git a/app-editors/hteditor/hteditor-2.1.0.ebuild b/app-editors/hteditor/hteditor-2.1.0.ebuild
34 index a38ef31072d..5e5d0e08308 100644
35 --- a/app-editors/hteditor/hteditor-2.1.0.ebuild
36 +++ b/app-editors/hteditor/hteditor-2.1.0.ebuild
37 @@ -1,9 +1,9 @@
38 -# Copyright 1999-2017 Gentoo Foundation
39 +# Copyright 1999-2018 Gentoo Foundation
40 # Distributed under the terms of the GNU General Public License v2
41
42 EAPI=6
43
44 -inherit toolchain-funcs
45 +inherit autotools toolchain-funcs
46
47 MY_P=${P/editor}
48
49 @@ -27,7 +27,15 @@ DOCS=( AUTHORS ChangeLog KNOWNBUGS README TODO )
50
51 S=${WORKDIR}/${MY_P}
52
53 -PATCHES=("${FILESDIR}"/${P}-gcc-7.patch)
54 +PATCHES=(
55 + "${FILESDIR}"/${P}-gcc-7.patch
56 + "${FILESDIR}"/${P}-tinfo.patch
57 +)
58 +
59 +src_prepare() {
60 + default
61 + eautoreconf
62 +}
63
64 src_configure() {
65 econf \