diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2007-09-16 02:56:19 +0000 |
---|---|---|
committer | Ryan Hill <dirtyepic@gentoo.org> | 2007-09-16 02:56:19 +0000 |
commit | 2ae173e3860751d194e589b7007a0e8b4f012734 (patch) | |
tree | d00c3898b18a78802b9bb4f5763b7f0a2e4265b2 /eclass | |
parent | Initial commit. (diff) | |
download | gentoo-2-2ae173e3860751d194e589b7007a0e8b4f012734.tar.gz gentoo-2-2ae173e3860751d194e589b7007a0e8b4f012734.tar.bz2 gentoo-2-2ae173e3860751d194e589b7007a0e8b4f012734.zip |
Only pull in and run bdftopcf if USE=X. Automatically set FONT_SUFFIX accordingly.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/font-ebdftopcf.eclass | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/eclass/font-ebdftopcf.eclass b/eclass/font-ebdftopcf.eclass index 8da5273790c3..3ef73bb04f5c 100644 --- a/eclass/font-ebdftopcf.eclass +++ b/eclass/font-ebdftopcf.eclass @@ -1,6 +1,6 @@ # Copyright 2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.4 2006/04/02 00:24:51 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.5 2007/09/16 02:56:19 dirtyepic Exp $ # Author: Robin H. Johnson <robbat2@gentoo.org> @@ -8,10 +8,18 @@ # Eclass to make PCF font generator from BDF uniform and optimal # The manpage for this eclass is in media-gfx/ebdftopcf. +# inherit this eclass after font.eclass + +# if USE="-X", this eclass is basically a no-op, since bdftopcf requires Xorg. +IUSE="X" + # Variable declarations -DEPEND="media-gfx/ebdftopcf" +DEPEND="X? ( media-gfx/ebdftopcf )" RDEPEND="" +use X && FONT_SUFFIX="pcf.gz" +use X || FONT_SUFFIX="bdf" + # # Public functions # @@ -29,8 +37,10 @@ ebdftopcf() { # Public inheritable functions # font-ebdftopcf_src_compile() { - [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')" - ebdftopcf ${BDFFILES} + if use X; then + [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')" + ebdftopcf ${BDFFILES} + fi } EXPORT_FUNCTIONS src_compile |