summaryrefslogtreecommitdiff
blob: db84d09f92d17fd86f86d095cc813f89acf4305b (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/canna/canna-3.5_beta2-r2.ebuild,v 1.5 2003/08/05 15:39:29 vapier Exp $

inherit eutils

DESCRIPTION="A client-server based Kana-Kanji conversion system"
HOMEPAGE="http://www.nec.co.jp/canna/"
SRC_URI="ftp://ftp.tokyonet.ad.jp/pub/misc/Canna/Canna35/Canna35b2.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"

RDEPEND="virtual/glibc"

S="${WORKDIR}/Canna35b2"

src_unpack() {
	# unpack the archive
	unpack ${A}

	# patch Canna.conf to ensure that files are installed into image dir
	cd Canna35b2
	epatch ${FILESDIR}/${PF}/gentoo.diff
}

src_compile() {
	# create a Makefile from Canna.conf
	xmkmf         || die "xmkmf failed"
	make Makefile || die "Makefile creation failed"

	# build Canna - emake causes trouble on my system so playing safe
	make canna   || die "Canna build failed"
}

src_install() {
	# install libs, executables, dictionaries
	make DESTDIR=${D} install     || die "installation failed"

	# install man pages
	make DESTDIR=${D} install.man || die "installation of manpages failed"

	# install docs
	dodoc README WHATIS

	# install rc script and its config file
	exeinto /etc/init.d ; newexe ${FILESDIR}/${PF}/canna.initd canna
	insinto /etc/conf.d ; newins ${FILESDIR}/${PF}/canna.confd canna
}