summaryrefslogtreecommitdiff
blob: 06f28642aab04983a8a0bdd9163e3edef4142052 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/artwiz-fonts/artwiz-fonts-2.4-r3.ebuild,v 1.13 2007/06/13 16:32:55 armin76 Exp $

inherit font font-ebdftopcf

MY_PN="xfonts-artwiz"
S="${WORKDIR}/${MY_PN}-2.3"
DESCRIPTION="Artwiz Fonts"
SRC_URI="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/${MY_PN}_${PV}.tar.gz"
HOMEPAGE="http://fluxbox.sourceforge.net/docs/artwiz-fonts.php"

SLOT=0
LICENSE="ZBL"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""

FONT_PN="artwiz"
FONTDIR="/usr/share/fonts/${FONT_PN}"
FONT_S="${S}/upstream"
FONT_SUFFIX="pcf.gz"

src_unpack() {
	unpack ${A}
	# we don't want this
	# clean it out here so we don't build it to a pcf
	rm -f ${FONT_S}/cursor.{pcf.gz,pcf,bdf}
}

src_compile() {
	cd ${FONT_S}
	font-ebdftopcf_src_compile
}

src_install() {
	font_src_install
	doins ${S}/debian/fonts.alias

	if [ -f ${ROOT}/etc/X11/fs/config -a -z "$(grep artwiz /etc/X11/fs/config)" ]
	then
		sed 's#^catalog.*$#&\n\t/usr/share/fonts/artwiz:unscaled,#g' \
			/etc/X11/fs/config > ${T}/config
		insinto /etc/X11/fs
		doins ${T}/config
	fi
}