font.eclass: Don't set IUSE=X for media-fonts/encodings
authorMatt Turner <mattst88@gentoo.org>
Mon, 17 Jun 2019 16:20:49 +0000 (12:20 -0400)
committerMatt Turner <mattst88@gentoo.org>
Mon, 17 Jun 2019 17:13:45 +0000 (13:13 -0400)
Closes: https://bugs.gentoo.org/665008
Signed-off-by: Matt Turner <mattst88@gentoo.org>
eclass/font.eclass

index 58ec9e3ea31278c3b77e12f8de864167d33d5c9b..6c4450b943bbe085f244c90453f50dad4bb3cb5a 100644 (file)
@@ -52,13 +52,14 @@ FONT_CONF=( "" )
 # COPYRIGHT README{,.txt} NEWS AUTHORS BUGS ChangeLog FONTLOG.txt
 DOCS=${DOCS:-}
 
-IUSE="X"
-
-DEPEND="X? (
-               || ( >=x11-apps/mkfontscale-1.2.0 x11-apps/mkfontdir )
-               media-fonts/encodings
+if [[ ${CATEGORY}/${PN} != media-fonts/encodings ]]; then
+       IUSE="X"
+       DEPEND="X? (
+                       || ( >=x11-apps/mkfontscale-1.2.0 x11-apps/mkfontdir )
+                       media-fonts/encodings
        )"
-RDEPEND=""
+       RDEPEND=""
+fi
 
 # @FUNCTION: font_xfont_config
 # @DESCRIPTION: