1 |
dirtyepic 07/09/16 02:56:20 |
2 |
|
3 |
Modified: font-ebdftopcf.eclass |
4 |
Log: |
5 |
Only pull in and run bdftopcf if USE=X. Automatically set FONT_SUFFIX accordingly. |
6 |
|
7 |
Revision Changes Path |
8 |
1.5 eclass/font-ebdftopcf.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font-ebdftopcf.eclass?rev=1.5&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font-ebdftopcf.eclass?rev=1.5&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font-ebdftopcf.eclass?r1=1.4&r2=1.5 |
13 |
|
14 |
Index: font-ebdftopcf.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v |
17 |
retrieving revision 1.4 |
18 |
retrieving revision 1.5 |
19 |
diff -u -r1.4 -r1.5 |
20 |
--- font-ebdftopcf.eclass 2 Apr 2006 00:24:51 -0000 1.4 |
21 |
+++ font-ebdftopcf.eclass 16 Sep 2007 02:56:19 -0000 1.5 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 2006 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.4 2006/04/02 00:24:51 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.5 2007/09/16 02:56:19 dirtyepic Exp $ |
27 |
|
28 |
# Author: Robin H. Johnson <robbat2@g.o> |
29 |
|
30 |
@@ -8,10 +8,18 @@ |
31 |
# Eclass to make PCF font generator from BDF uniform and optimal |
32 |
# The manpage for this eclass is in media-gfx/ebdftopcf. |
33 |
|
34 |
+# inherit this eclass after font.eclass |
35 |
+ |
36 |
+# if USE="-X", this eclass is basically a no-op, since bdftopcf requires Xorg. |
37 |
+IUSE="X" |
38 |
+ |
39 |
# Variable declarations |
40 |
-DEPEND="media-gfx/ebdftopcf" |
41 |
+DEPEND="X? ( media-gfx/ebdftopcf )" |
42 |
RDEPEND="" |
43 |
|
44 |
+use X && FONT_SUFFIX="pcf.gz" |
45 |
+use X || FONT_SUFFIX="bdf" |
46 |
+ |
47 |
# |
48 |
# Public functions |
49 |
# |
50 |
@@ -29,8 +37,10 @@ |
51 |
# Public inheritable functions |
52 |
# |
53 |
font-ebdftopcf_src_compile() { |
54 |
- [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')" |
55 |
- ebdftopcf ${BDFFILES} |
56 |
+ if use X; then |
57 |
+ [ -z "${BDFFILES}" ] && BDFFILES="$(find . -name '*.bdf')" |
58 |
+ ebdftopcf ${BDFFILES} |
59 |
+ fi |
60 |
} |
61 |
|
62 |
EXPORT_FUNCTIONS src_compile |
63 |
|
64 |
|
65 |
|
66 |
-- |
67 |
gentoo-commits@g.o mailing list |