xorg-2.eclass: Rewrite font code as a case statement
authorMatt Turner <mattst88@gentoo.org>
Mon, 17 Jun 2019 16:31:14 +0000 (12:31 -0400)
committerMatt Turner <mattst88@gentoo.org>
Mon, 17 Jun 2019 17:13:45 +0000 (13:13 -0400)
Signed-off-by: Matt Turner <mattst88@gentoo.org>
eclass/xorg-2.eclass

index b5563616bbd5c352e589d0fcd53394b4a1718ece..95345042a99877186a20e90b9a0d7d165c544da0 100644 (file)
@@ -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