summaryrefslogtreecommitdiff
blob: 3cdebca6cfd845dc9c90df4584f37805b5efa141 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/console-tools/console-tools-0.2.3-r4.ebuild,v 1.8 2002/08/14 03:34:43 murphy Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Console and font utilities"
SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/keyboards/${P}.tar.gz"
HOMEPAGE="http://altern.org/ydirson/en/lct/"
KEYWORDS="x86 ppc sparc sparc64"
SLOT="0"
LICENSE="GPL-2"

DEPEND="virtual/glibc
        sys-devel/autoconf sys-devel/automake sys-devel/libtool
        nls? ( sys-devel/gettext )"
RDEPEND="virtual/glibc"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p1 < ${FILESDIR}/${P}.patch || die
	patch -p0 < ${FILESDIR}/${P}-po-Makefile.in.in-gentoo.diff || die
	aclocal || die
	libtoolize --force -c || die
	autoheader || die
	automake -c || die
	autoconf || die
}

src_compile() {

	local myconf=""
	if [ "$DEBUG" ]
	then
		myconf="--enable-debugging"
	fi
	if [ -z "`use nls`" ]
	then
		myconf="${myconf} --disable-nls"
	fi

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--host=${CHOST} \
		${myconf} || die
	make $MAKEOPTS all || die
}

src_install() {

	# DESTDIR does not work correct
	make DESTDIR=${D} install || die

	if [ -z "`use bootcd`" ]
	then
		dodoc BUGS COPYING* CREDITS ChangeLog NEWS README RELEASE TODO
		docinto txt
		dodoc doc/*.txt doc/README.*
		docinto sgml
		dodoc doc/*.sgml
		docinto txt/contrib
		dodoc doc/contrib/*
		docinto txt/dvorak
		dodoc doc/dvorak/*
		docinto txt/file-formats
		dodoc doc/file-formats/*
		doman doc/man/*.[1-8]
	else
		rm -rf ${D}/usr/share ${D}/usr/include ${D}/usr/lib/lib*.{a,la}
	fi
}