commit:     983b6aa3d9ea6b265442cd149801a4f8959b4cc7
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 17 16:20:49 2019 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 17:13:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=983b6aa3

font.eclass: Don't set IUSE=X for media-fonts/encodings

Closes: https://bugs.gentoo.org/665008
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 eclass/font.eclass | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/eclass/font.eclass b/eclass/font.eclass
index 58ec9e3ea31..6c4450b943b 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -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:

Reply via email to