xorg-2.eclass: Limit adding IUSE=nls to packages without support
authorMatt Turner <mattst88@gentoo.org>
Sat, 26 May 2018 20:25:07 +0000 (13:25 -0700)
committerMatt Turner <mattst88@gentoo.org>
Sat, 26 May 2018 20:29:46 +0000 (13:29 -0700)
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

index f321d69bcbe4edb90f24f570e573f1eb14e3a5e7..08051fe1fa7d405fe61031dd8be171b61d8773cf 100644 (file)
@@ -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