summaryrefslogtreecommitdiff
blob: d3ce4f068b9389709569e311f8a103686b54b7cc (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3-r1.ebuild,v 1.4 2007/06/12 18:24:22 flameeyes Exp $

inherit font

MY_PV="0.2"

DESCRIPTION="A GPL-2 Helvetica/Times/Courier replacement TrueType font set, courtesy of Red Hat"
SRC_URI="https://www.redhat.com/f/fonts/${P}.tar.gz"
HOMEPAGE="http://www.redhat.com/promo/fonts/"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
SLOT="0"
LICENSE="GPL-2-with-exceptions"
IUSE="X"

FONT_PN="${PN/-ttf/}"
FONT_S="${WORKDIR}/${FONT_PN}-${MY_PV}"
S="${FONT_S}"

FONT_SUFFIX="ttf"
DOCS="License.txt"

src_install() {
	font_src_install

	# from http://uwstopia.nl/blog/2007/05/free-your-fonts
	insinto /etc/fonts/conf.avail
	newins ${FILESDIR}/${PN}-fontconfig.txt 60-liberation.conf \
		|| die "newins failed"
}

pkg_postinst() {
	einfo
	einfo "To substitute Liberation fonts for Microsoft equivalents, use:"
	einfo "  cd /etc/fonts/conf.d/ && ln -sf ../conf.avail/60-liberation.conf ."
	einfo
}