summaryrefslogtreecommitdiff
blob: b65f0f76f65065cdbd282148c81a1fedaf4c4cf4 (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
# Copyright 1999-2003 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.00-r2.ebuild,v 1.2 2003/07/12 16:16:15 aliz Exp $

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

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

src_compile() {
	make psf || die

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

src_install() {
	( cd vga && ../configure --prefix=${D}/usr )
	make -f vga/Makefile install || die

	# If user wants fonts for X11
	if [ -n "`use X`" ]; then
		( cd x11 && ../configure --prefix=${D}/usr )
		perl -pi -e 's/local/misc/;' x11/Makefile
		make -f x11/Makefile install || die
	fi

	dodoc README*
}

pkg_postinst() {
	mkfontdir ${ROOT}usr/X11R6/lib/X11/fonts/misc
}

pkg_postrm() {
	mkfontdir ${ROOT}usr/X11R6/lib/X11/fonts/misc
}