From a5dc6c8c29e7de309f921841e8eb4d2741c80563 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 26 May 2018 13:25:07 -0700 Subject: [PATCH] xorg-2.eclass: Limit adding IUSE=nls to packages without support Of media-fonts/font-*-misc only font-misc-misc and font-schumacher-misc have nls support. Adding IUSE=nls to the others just causes warnings. Closes: https://bugs.gentoo.org/499800 --- eclass/xorg-2.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass index f321d69bcbe4..08051fe1fa7d 100644 --- a/eclass/xorg-2.eclass +++ b/eclass/xorg-2.eclass @@ -156,7 +156,7 @@ if [[ ${FONT} == yes ]]; then # Set up configure options, wrapped so ebuilds can override if need be [[ -z ${FONT_OPTIONS} ]] && FONT_OPTIONS="--with-fontdir=\"${EPREFIX}/usr/share/fonts/${FONT_DIR}\"" - [[ ${PN##*-} = misc || ${PN##*-} = 75dpi || ${PN##*-} = 100dpi || ${PN##*-} = cyrillic ]] && IUSE+=" nls" + [[ ${PN} = font-misc-misc || ${PN} = font-schumacher-misc || ${PN##*-} = 75dpi || ${PN##*-} = 100dpi || ${PN##*-} = cyrillic ]] && IUSE+=" nls" fi # If we're a driver package, then enable DRIVER case -- 2.26.2