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

Contents of /eclass/font-ebdftopcf.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 12 03:44:33 2006 UTC (8 years, 6 months ago) by robbat2
Branch: MAIN
Changes since 1.1: +12 -2 lines
Minor cleanup for ebdftopcf and a default src_compile for simple ebuilds to use with font.eclass. See the example from the eclass manpage with the package.

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

  ViewVC Help
Powered by ViewVC 1.1.20