| 1 |
robbat2 |
1.1 |
# Copyright 2006 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
swegener |
1.3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/font-ebdftopcf.eclass,v 1.2 2006/01/12 03:44:33 robbat2 Exp $ |
| 4 |
robbat2 |
1.1 |
|
| 5 |
|
|
# Author: Robin H. Johnson <robbat2@gentoo.org> |
| 6 |
|
|
|
| 7 |
swegener |
1.3 |
# font-ebdftopcf.eclass |
| 8 |
robbat2 |
1.1 |
# Eclass to make PCF font generator from BDF uniform and optimal |
| 9 |
robbat2 |
1.2 |
# The manpage for this eclass is in media-gfx/ebdftopcf. |
| 10 |
robbat2 |
1.1 |
|
| 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 |
robbat2 |
1.2 |
|
| 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 |