media-libs/libcaca: avoid mixing ncurses with ncursesw

Also only do this with USE=ncurses and use || die

(fixes runtime with mpv wrt bug #825058)

Closes: https://bugs.gentoo.org/825058
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-11-07 16:04:40 -05:00
parent fe167b181b
commit 35683548ca

View File

@@ -89,8 +89,8 @@ src_prepare() {
# bug #653400
append-cxxflags -std=c++11
# bug #601902
append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)"
# bug #601902, bug #825058
use ncurses && append-libs $($(tc-getPKG_CONFIG) --libs tinfow || die)
# fix docs install path, bug 543870#c14
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die