From: Michał Górny Date: Thu, 5 May 2016 17:20:49 +0000 (+0200) Subject: font-ebdftopcf.eclass: Move global-scope use calls to phase, #566540 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=52982a684030284102aaacee96029f4576dfb070;p=gentoo.git font-ebdftopcf.eclass: Move global-scope use calls to phase, #566540 --- diff --git a/eclass/font-ebdftopcf.eclass b/eclass/font-ebdftopcf.eclass index 864cfdfc010b..334da01c70fa 100644 --- a/eclass/font-ebdftopcf.eclass +++ b/eclass/font-ebdftopcf.eclass @@ -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}