blob: 18ff705befac7da838b8142a7116b885c15b361f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/dejavu/dejavu-2.33.ebuild,v 1.10 2012/04/26 19:28:04 aballier Exp $
EAPI="4"
inherit font versionator
DESCRIPTION="DejaVu fonts, bitstream vera with ISO-8859-2 characters"
HOMEPAGE="http://dejavu.sourceforge.net/"
LICENSE="BitstreamVera"
# If you want to test snapshot from dejavu.sf.net/snapshots/
# just rename ebuild to dejavu-2.22.20071220.2156.ebuild
MY_PV=$(get_version_component_range 1-2)
snapv=$(get_version_component_range 3-4)
snapv=${snapv/./-}
MY_BP=${PN}-fonts-ttf-${MY_PV}
MY_SP=${PN}-fonts-${MY_PV}
if [ -z ${snapv} ]
then
SRC_URI="!fontforge? ( mirror://sourceforge/${PN}/${MY_BP}.tar.bz2 )
fontforge? ( mirror://sourceforge/${PN}/${MY_SP}.tar.bz2 )"
else
MY_BP=${MY_BP}-${snapv}
MY_SP=${MY_SP}-${snapv}
SRC_URI="!fontforge? ( http://dejavu.sourceforge.net/snapshots/${MY_BP}.tar.bz2 )
fontforge? ( http://dejavu.sourceforge.net/snapshots/${MY_SP}.tar.bz2 )"
fi
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris"
IUSE="fontforge"
DEPEND="fontforge? ( x11-apps/mkfontscale
>=media-gfx/fontforge-20080429
x11-apps/mkfontdir
dev-perl/Font-TTF
app-i18n/unicode-data
>media-libs/fontconfig-2.6.0 )"
RDEPEND=""
if use fontforge
then
S=${WORKDIR}/${MY_SP}
FONT_S=${S}/build
else
S=${WORKDIR}/${MY_BP}
FONT_S=${S}/ttf
fi
FONT_CONF=(
"${S}"/fontconfig/20-unhint-small-dejavu-sans-mono.conf
"${S}"/fontconfig/20-unhint-small-dejavu-sans.conf
"${S}"/fontconfig/20-unhint-small-dejavu-serif.conf
"${S}"/fontconfig/57-dejavu-sans-mono.conf
"${S}"/fontconfig/57-dejavu-sans.conf
"${S}"/fontconfig/57-dejavu-serif.conf )
FONT_SUFFIX="ttf"
DOCS="AUTHORS NEWS README status.txt langcover.txt unicover.txt"
src_compile() {
if use fontforge
then
emake -j1 \
BLOCKS=/usr/share/unicode-data/Blocks.txt \
UNICODEDATA=/usr/share/unicode-data/UnicodeData.txt \
FC-LANG=/usr/share/fc-lang \
full sans \
|| die "emake failed"
fi
}
src_install() {
font_src_install
if use fontforge
then
dodoc build/*.txt
fi
}
|