This package now requires unicode support for ncurses,
otherwise compilation will fails. Fix the pkgconfig handling,
drop the unicode USE flag and always require unicode support.
Fixes: https://bugs.gentoo.org/690224
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
-IUSE="unicode"
+IUSE=""
COMMON_DEPEND="
>=dev-libs/libxml2-2.5.6
- >=sys-libs/ncurses-5.3:0=[unicode?]
+ >=sys-libs/ncurses-5.3:0=[unicode]
"
RDEPEND="
${COMMON_DEPEND}
src_prepare() {
default
tc-export PKG_CONFIG
- sed -i 's|-lncurses|`\\$(PKG_CONFIG) --libs '"$(usex unicode ncursesw ncurses)"'`|' configure || die
+ local libs=$(${PKG_CONFIG} --libs ncursesw)
+ sed -i "s|-lncursesw\?|${libs}|" configure Config.mk.in || die
sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die
}