blob: a87ac72979dbd2c15de55218d69dcef5271fb5ae (
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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/freefonts/freefonts-0.10-r2.ebuild,v 1.6 2004/02/04 00:19:33 augustus Exp $
S=${WORKDIR}/freefont
DESCRIPTION="A Collection of Free True Type Fonts"
SRC_URI="ftp://ftp.gimp.org/pub/gimp/fonts/${P}.tar.gz"
HOMEPAGE="http://www.gimp.org"
KEYWORDS="x86 sparc ~ppc ~amd64"
SLOT="0"
LICENSE="freedist"
IUSE="X"
src_install () {
insinto /usr/share/fonts/freefont
doins *.pfb
if [ -n "`use X`" ] ;
then
mkfontscale
mkfontdir
doins fonts.*
fi
dodoc README *.license
}
pkg_postinst() {
if [ "${ROOT}" = "/" ] && [ -x /usr/bin/fc-cache ]
then
echo
einfo "Creating font cache..."
HOME="/root" /usr/bin/fc-cache -f
fi
einfo "The freefonts dir has been moved from /usr/X11R6/lib/X11/fonts/freefont to /usr/share/fonts/freefont ."
einfo "Setting new fontpaths for X might be necessary in some cases."
}
|