summaryrefslogtreecommitdiff
blob: c0be1d2552a414dfb156b291248d461fb8aa49ca (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/terminus-font-4.03-r1.ebuild,v 1.2 2004/01/31 14:26:45 usata Exp $

DESCRIPTION="A clean fixed font for the console and X11"
HOMEPAGE="http://www.is-vn.bg/hamster/jimmy-en.html"
SRC_URI="http://www.is-vn.bg/hamster/${P}.tar.gz
	http://www.is-vn.bg/hamster/courier-like-a.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="X"

DEPEND="sys-apps/gawk
	dev-lang/perl
	X? ( virtual/x11 )"
RDEPEND="X? ( virtual/x11 )"

src_unpack() {
	unpack ${A}
	# upstream author's own patch for courier like a (to be included
	# by default in future releases of terminus-font)
	epatch courier-like-a.diff
}

src_compile() {
	./configure \
	    --prefix=${D}/usr \
	    --psfdir=${D}/usr/share/consolefonts \
	    --acmdir=${D}/usr/share/consoletrans \
	    --unidir=${D}/usr/share/consoletrans \
	    --x11dir=${D}/usr/share/fonts/terminus

	make psf txt || die

	# If user wants fonts for X11
	if [ -n "`use X`" ]; then
		make pcf || die
	fi
}

src_install() {
	make install-psf install-acm install-uni install-ref || die

	# If user wants fonts for X11
	if [ -n "`use X`" ]; then
		make install-pcf || die
		mkfontdir ${D}/usr/share/fonts/terminus
	fi

	dodoc README*
}