summaryrefslogtreecommitdiff
blob: 440dc3f7dd37879c6556a8f1e9e1d7d704d9c966 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/kcc/kcc-1.0.ebuild,v 1.6 2004/01/07 09:46:07 usata Exp $

inherit gcc

IUSE=""

KEYWORDS="x86"
S="${WORKDIR}/${PN}"
DESCRIPTION="A Kanji code converter"
SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz"
HOMEPAGE="" 	#There doesn't seem to be a home page for this package!
LICENSE="GPL-2"

DEPEND="virtual/glibc"

SLOT="0"

src_unpack() {

	# unpack the archive
	unpack ${A}

	cd ${S}
	if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "3" ]
	then
		epatch ${FILESDIR}/${PN}-gcc3-gentoo.diff
	fi
}

src_compile() {

	emake || die
}

src_install () {

	dobin kcc || die

	dodoc README
	insinto /usr/share/man/ja/man1
	newins kcc.jman kcc.1 || die
}