summaryrefslogtreecommitdiff
blob: e5346b1bfcf54f12c63e9595fd370642abe90670 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/unifont/unifont-1.0.ebuild,v 1.1 2003/10/02 22:07:38 usata Exp $

IUSE="X"

DESCRIPTION="X11 dual-width GNU unicode font"
HOMEPAGE="http://czyborra.com/"
SRC_URI="http://ftp.debian.org/debian/pool/main/u/unifont/${P/-/_}.orig.tar.gz
	http://ftp.debian.org/debian/pool/main/u/unifont/${P/-/_}-1.diff.gz"

LICENSE="freedist"
SLOT="0"
KEYWORDS="~x86"

DEPEND="dev-lang/perl
	virtual/x11
	X? ( media-fonts/chkfontpath )"
RDEPEND="X? ( media-fonts/chkfontpath )"

FONTPATH="/usr/share/fonts/unifont"
S=${WORKDIR}/${PN}-dvdeug-${PV}

src_unpack() {

	unpack ${A}

	cd ${S}
	epatch ${WORKDIR}/${P/-/_}-1.diff
}

src_compile() {

	make || die
}

src_install() {

	insinto ${FONTPATH}

	doins unifont.pcf.gz
	use X && mkfontdir ${D}${FONTPATH}
}

pkg_postinst() {

	use X && chkfontpath -qa ${FONTPATH} >/dev/null 2>&1
}

pkg_postrm() {

	use X && chkfontpath -qr ${FONTPATH} >/dev/null 2>&1
}