/[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.1 Revision 1.2
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.1 2006/01/12 01:52:17 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.2 2006/01/12 03:44:33 robbat2 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 10
10# Variable declarations 11# Variable declarations
11DEPEND="media-gfx/ebdftopcf" 12DEPEND="media-gfx/ebdftopcf"
12RDEPEND="" 13RDEPEND=""
13 14
15# Public functions 16# Public functions
16# 17#
17ebdftopcf() { 18ebdftopcf() {
18 local bdffiles 19 local bdffiles
19 bdffiles="$@" 20 bdffiles="$@"
20 [ -z "$bdffiles" ] && bdffiles="${BDFFILES}"
21 [ -z "$bdffiles" ] && die "No BDF files specified." 21 [ -z "$bdffiles" ] && die "No BDF files specified."
22 emake -f /usr/share/ebdftopcf/Makefile.ebdftopcf \ 22 emake -f /usr/share/ebdftopcf/Makefile.ebdftopcf \
23 BDFFILES="${bdffiles}" \ 23 BDFFILES="${bdffiles}" \
24 BDFTOPCF_PARAMS="${BDFTOPCF_PARAMS}" \ 24 BDFTOPCF_PARAMS="${BDFTOPCF_PARAMS}" \
25 || die "Failed to build PCF files" 25 || die "Failed to build PCF files"
26} 26}
27
28#
29# Public inheritable functions
30#
31font-ebdftopcf_src_compile() {
32 [ -z "${BDFFILES}" ] && BDFFILES="$(find -name '*.bdf')"
33 ebdftopcf ${BDFFILES}
34}
35
36EXPORT_FUNCTIONS src_compile

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20