26 lines
471 B
Bash
26 lines
471 B
Bash
# @ECLASS: font-custom.eclass
|
|
|
|
inherit font
|
|
|
|
IUSE=""
|
|
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
|
|
RESTRICT="mirror strip binchecks"
|
|
SLOT="0"
|
|
|
|
# Google provides TrueType fonts only.
|
|
FONT_SUFFIX="ttf"
|
|
|
|
# Working directory containing the fonts.
|
|
S="${WORKDIR}/${PN}"
|
|
FONT_S="${S}"
|
|
|
|
# No unpacking needed.
|
|
font-custom_src_unpack() {
|
|
mkdir -p "${FONT_S}"
|
|
for file in ${A}; do
|
|
cp "${DISTDIR}/$file" "${FONT_S}/$file"
|
|
done
|
|
}
|
|
|
|
EXPORT_FUNCTIONS src_unpack
|