summaryrefslogtreecommitdiff
blob: 661bf55c3f957e0ecee140752ae8670d81176240 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/unicon/unicon-3.0.4-r1.ebuild,v 1.1 2005/04/23 12:07:29 usata Exp $

inherit eutils

# TODO: Figure out how to build the kernel-modules.

VD_P="${P}-20010924"
VD_PATCH="vd_unicon-userland-20031122vd.patch"

DESCRIPTION="CJK (Chinese/Japanese/Korean) console input, display system and input modules."
HOMEPAGE="http://www.gnu.org/directory/UNICON.html
	http://vdr.jp/d/unicon.html"
SRC_URI="http://vdlinux.sourceforge.jp/dists/${VD_P}.tar.gz
	http://vdlinux.sourceforge.jp/dists/${VD_PATCH}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="virtual/linux-sources
	dev-libs/newt
	dev-libs/pth
	virtual/x11"

src_unpack() {
	unpack ${VD_P}.tar.gz
	cd ${S}
	epatch ${DISTDIR}/${VD_PATCH}
	epatch ${FILESDIR}/${P}-gcc34.patch
}

src_compile() {
	econf || die "econf failed"
	emake -j1 || die "make failed"
	emake data || die "make data failed"
}

src_install() {
	make prefix=${D}/usr install || die "make install failed"
	make prefix=${D}/usr data-install || die "make data-install failed"

	dosed /usr/lib/unicon/load-unimap.sh

	newconfd ${FILESDIR}/unicon.confd unicon
	newinitd ${FILESDIR}/unicon.initd unicon
}

pkg_postinst() {
	ewarn
	ewarn "You need to patch your kernel in order to use this software."
	ewarn "The latest unicon patch can be found at"
	ewarn "	${HOMEPAGE}"
	ewarn "Please make sure you remove consolefont from boot runlevel"
	ewarn "and add unicon after editting /etc/conf.d/unicon, and the reboot."
	ewarn
	ewarn "# rc-update del consolefont boot"
	ewarn "# rc-update add unicon boot"
	ewarn
}