summaryrefslogtreecommitdiff
blob: d9ad2b7d35baf64be66d8f57525eb9bc9d606eea (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/droid/droid-112_p1-r1.ebuild,v 1.2 2010/01/07 20:12:38 spatz Exp $

EAPI="2"

inherit font

MY_PN="${PN/d/D}"

# $PV is a build number, use fontforge to find it out. 112 was taken from:
# http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD
DESCRIPTION="Font family from Google's Android project"
HOMEPAGE="http://code.google.com/android/RELEASENOTES.html"
SRC_URI="mirror://gentoo/${P}.tar.gz
	mirror://gentoo/${MY_PN}SansMonoSlashed-${PV}.ttf.bz2
	mirror://gentoo/${MY_PN}SansMonoDotted-${PV}.ttf.bz2"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""

S=${WORKDIR}/${PN}
FONT_S=${WORKDIR}/${PN}
FONT_SUFFIX="ttf"

RDEPEND=""
DEPEND=""

src_unpack() {
	unpack ${A}

	mv "${WORKDIR}/${MY_PN}SansMonoSlashed-${PV}.ttf" \
		"${S}/${MY_PN}SansMonoSlashed.ttf"
	mv "${WORKDIR}/${MY_PN}SansMonoDotted-${PV}.ttf" \
		"${S}/${MY_PN}SansMonoDotted.ttf"
}