font-ebdftopcf.eclass: Move global-scope use calls to phase, #566540
authorMichał Górny <mgorny@gentoo.org>
Thu, 5 May 2016 17:20:49 +0000 (19:20 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 5 May 2016 17:35:29 +0000 (19:35 +0200)
eclass/font-ebdftopcf.eclass

index 864cfdfc010bdaf45f159d43ed5f994e195ece33..334da01c70fa1e35a7d4c26f6ad21c2d28c43ffa 100644 (file)
@@ -17,9 +17,6 @@ IUSE="X"
 DEPEND="X? ( media-gfx/ebdftopcf )"
 RDEPEND=""
 
-use X && FONT_SUFFIX="pcf.gz"
-use X || FONT_SUFFIX="bdf"
-
 #
 # Public functions
 #
@@ -37,6 +34,9 @@ ebdftopcf() {
 # Public inheritable functions
 #
 font-ebdftopcf_src_compile() {
+       use X && FONT_SUFFIX="pcf.gz"
+       use X || FONT_SUFFIX="bdf"
+
        if use X; then
                [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')"
                ebdftopcf ${BDFFILES}