From: Matt Turner Date: Sat, 26 May 2018 20:25:07 +0000 (-0700) Subject: xorg-2.eclass: Limit adding IUSE=nls to packages without support X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a5dc6c8c29e7de309f921841e8eb4d2741c80563;p=gentoo.git 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 --- 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