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

Contents of /eclass/font-ebdftopcf.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Sep 30 11:12:03 2010 UTC (4 years ago) by grobian
Branch: MAIN
Changes since 1.5: +2 -2 lines
Fix for Prefix, bug #334057.  Since this is always on top of font.eclass, can rely on it's pkg_setup for EPREFIX

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

  ViewVC Help
Powered by ViewVC 1.1.20