summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2019-06-17 12:31:14 -0400
committerMatt Turner <mattst88@gentoo.org>2019-06-17 13:13:45 -0400
commitf63afe9ec4120f88614a9dff14168744ab88f6fa (patch)
tree56f3011b931fd037a3df4578e098b5bf4706ef09 /eclass/xorg-2.eclass
parentxorg-2.eclass: Drop x11-apps/mkfontdir (diff)
downloadgentoo-f63afe9ec4120f88614a9dff14168744ab88f6fa.tar.gz
gentoo-f63afe9ec4120f88614a9dff14168744ab88f6fa.tar.bz2
gentoo-f63afe9ec4120f88614a9dff14168744ab88f6fa.zip
xorg-2.eclass: Rewrite font code as a case statement
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass/xorg-2.eclass')
-rw-r--r--eclass/xorg-2.eclass17
1 files changed, 10 insertions, 7 deletions
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
index b5563616bbd5..95345042a998 100644
--- a/eclass/xorg-2.eclass
+++ b/eclass/xorg-2.eclass
@@ -28,13 +28,16 @@ fi
# If we're a font package, but not the font.alias one
FONT_ECLASS=""
-if [[ ${PN} == font* \
- && ${CATEGORY} = media-fonts \
- && ${PN} != font-alias \
- && ${PN} != font-util ]]; then
- # Activate font code in the rest of the eclass
- FONT="yes"
- FONT_ECLASS="font"
+if [[ ${CATEGORY} = media-fonts ]]; then
+ case ${PN} in
+ font-alias|font-util)
+ ;;
+ font*)
+ # Activate font code in the rest of the eclass
+ FONT="yes"
+ FONT_ECLASS="font"
+ ;;
+ esac
fi
# @ECLASS-VARIABLE: XORG_MULTILIB