/[gentoo-x86]/eclass/font-ebdftopcf.eclass
Gentoo

Diff of /eclass/font-ebdftopcf.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 2006 Gentoo Foundation 1# Copyright 2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.4 2006/04/02 00:24:51 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.5 2007/09/16 02:56:19 dirtyepic Exp $
4 4
5# Author: Robin H. Johnson <robbat2@gentoo.org> 5# Author: Robin H. Johnson <robbat2@gentoo.org>
6 6
7# font-ebdftopcf.eclass 7# font-ebdftopcf.eclass
8# Eclass to make PCF font generator from BDF uniform and optimal 8# Eclass to make PCF font generator from BDF uniform and optimal
9# The manpage for this eclass is in media-gfx/ebdftopcf. 9# The manpage for this eclass is in media-gfx/ebdftopcf.
10 10
11# inherit this eclass after font.eclass
12
13# if USE="-X", this eclass is basically a no-op, since bdftopcf requires Xorg.
14IUSE="X"
15
11# Variable declarations 16# Variable declarations
12DEPEND="media-gfx/ebdftopcf" 17DEPEND="X? ( media-gfx/ebdftopcf )"
13RDEPEND="" 18RDEPEND=""
19
20use X && FONT_SUFFIX="pcf.gz"
21use X || FONT_SUFFIX="bdf"
14 22
15# 23#
16# Public functions 24# Public functions
17# 25#
18ebdftopcf() { 26ebdftopcf() {
27 35
28# 36#
29# Public inheritable functions 37# Public inheritable functions
30# 38#
31font-ebdftopcf_src_compile() { 39font-ebdftopcf_src_compile() {
40 if use X; then
32 [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')" 41 [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')"
33 ebdftopcf ${BDFFILES} 42 ebdftopcf ${BDFFILES}
43 fi
34} 44}
35 45
36EXPORT_FUNCTIONS src_compile 46EXPORT_FUNCTIONS src_compile

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20