-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
sndfile? ( media-libs/libsndfile:= )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.8.1-ldflags.patch
+ "${FILESDIR}"/${PN}-2.9.1-tinfo.patch
+)
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
- eapply "${FILESDIR}"/${PN}-2.8.1-ldflags.patch
- eapply_user
+ default
# if use python ; then
# sed -i -e "s:\$(ecasoundc_libs):\0 $(python_get_library -l):" \
--- /dev/null
+--- a/configure.ac
++++ b/configure.ac
+@@ -810,7 +810,9 @@
+ dnl switch to C for testing
+ AC_LANG_C
+
+-AC_CHECK_LIB(ncurses, main, termcap_library=ncurses,
++AC_CHECK_LIB(ncurses, main,
++ [termcap_library=ncurses]
++ AC_SEARCH_LIBS(tigetstr, tinfo),
+ AC_CHECK_LIB(termcap, main, termcap_library=termcap,
+ termcap_library=none))
+
+@@ -821,6 +823,7 @@
+ y | yes)
+ AC_MSG_RESULT(yes)
+ termcap_library=ncurses
++
+ ;;
+
+ n | no)