From 09b77cdaec0cd7b617c92e936cbec78652157e3a Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Fri, 2 Mar 2018 11:26:01 +0100 Subject: [PATCH] app-editors/hteditor: Fix building against sys-libs/ncurses[tinfo] (bug #601080). Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- .../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(-) create mode 100644 app-editors/hteditor/files/hteditor-2.1.0-tinfo.patch 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 \ -- 2.26.2