dev-scheme/guile: Also look for tgoto in libtinfo (bug #539316)
authorRyan Hill <rhill@gentoo.org>
Sat, 19 Sep 2015 04:57:01 +0000 (22:57 -0600)
committerRyan Hill <rhill@gentoo.org>
Mon, 12 Oct 2015 23:22:24 +0000 (17:22 -0600)
This is the case when ncurses is built with USE=tinfo.

Gentoo-Bug: https://bugs.gentoo.org/539316

dev-scheme/guile/files/guile-1.8.8-tinfo.patch [new file with mode: 0644]
dev-scheme/guile/guile-1.8.8-r2.ebuild

diff --git a/dev-scheme/guile/files/guile-1.8.8-tinfo.patch b/dev-scheme/guile/files/guile-1.8.8-tinfo.patch
new file mode 100644 (file)
index 0000000..6c4d011
--- /dev/null
@@ -0,0 +1,15 @@
+With ncurses[tinfo] tgoto will be in libtinfo
+
+https://bugs.gentoo.org/539316
+
+--- a/guile-readline/configure.in
++++ b/guile-readline/configure.in
+@@ -33,7 +33,7 @@ if test "$MINGW32" = "yes" ; then
+ fi
+ AC_SUBST(EXTRA_DEFS)
+ 
+-for termlib in ncurses curses termcap terminfo termlib ; do
++for termlib in ncurses curses termcap terminfo termlib tinfo ; do
+    AC_CHECK_LIB(${termlib}, tgoto,
+                 [LIBS="-l${termlib} $LIBS"; break])
+ done
index e0f62a9caac3ab82151462cb06c8168f739cfd16..2856054af76293525e8d34201652ae0cdd093c4a 100644 (file)
@@ -36,6 +36,7 @@ src_prepare() {
                "${FILESDIR}/${P}-gcc5.patch" \
                "${FILESDIR}/${P}-makeinfo-5.patch" \
                "${FILESDIR}/${P}-gtexinfo-5.patch" \
+               "${FILESDIR}/${P}-tinfo.patch" \
                "${FILESDIR}/${P}-sandbox.patch"
 
        sed \