commit:     434c5826f7eba3584c752788056739a4052a277b
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 22 16:07:28 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Mar 22 16:07:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=434c5826

games-engines/frobtads: Fixed build with sys-libs/ncurses[tinfo]

Closes: https://bugs.gentoo.org/602446
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 .../frobtads/files/frobtads-1.2.4-tinfo.patch      | 12 ++++++++++
 games-engines/frobtads/frobtads-1.2.4.ebuild       | 28 +++++++++++++++-------
 2 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/games-engines/frobtads/files/frobtads-1.2.4-tinfo.patch 
b/games-engines/frobtads/files/frobtads-1.2.4-tinfo.patch
new file mode 100644
index 00000000000..c50b5a05de4
--- /dev/null
+++ b/games-engines/frobtads/files/frobtads-1.2.4-tinfo.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/602446
+
+--- frobtads-1.2.4/configure.ac
++++ frobtads-1.2.4/configure.ac
+@@ -88,6 +88,7 @@
+ # doesn't hust to try pdcurses as a last resort.)
+ #
+ AC_SEARCH_LIBS([initscr], [ncurses curses pdcurses], [curseslibfound=true], 
[curseslibfound=false])
++AC_SEARCH_LIBS([keypad], [tinfo])
+ 
+ # Check for libcurl (network client library for http et al).
+ #

diff --git a/games-engines/frobtads/frobtads-1.2.4.ebuild 
b/games-engines/frobtads/frobtads-1.2.4.ebuild
index 7f2b43c1446..f0fd3816a63 100644
--- a/games-engines/frobtads/frobtads-1.2.4.ebuild
+++ b/games-engines/frobtads/frobtads-1.2.4.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils
+
+inherit autotools
 
 DESCRIPTION="Curses-based interpreter and dev tools for TADS 2 and TADS 3 text 
adventures"
 HOMEPAGE="http://www.tads.org/frobtads.htm";
@@ -16,17 +17,28 @@ IUSE="debug tads2compiler tads3compiler"
 RESTRICT="!tads3compiler? ( test )"
 
 RDEPEND="net-misc/curl
-       sys-libs/ncurses:0"
-DEPEND=${RDEPEND}
+       sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
 
 DOCS=( doc/{AUTHORS,BUGS,ChangeLog.old,NEWS,README,SRC_GUIDELINES,THANKS} )
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.2.4-tinfo.patch #602446
+)
+
+src_prepare() {
+       default
+       eautoreconf #602446
+}
+
 src_configure() {
-       econf \
-               $(use_enable debug error-checking) \
-               $(use_enable debug t3debug) \
-               $(use_enable tads2compiler t2-compiler) \
+       local myeconfargs=(
+               $(use_enable debug error-checking)
+               $(use_enable debug t3debug)
+               $(use_enable tads2compiler t2-compiler)
                $(use_enable tads3compiler t3-compiler)
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_test() {

Reply via email to