summaryrefslogtreecommitdiff
blob: 8313b0f04b4f995282c088614aa8d9dd35dcbea7 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-1.92.ebuild,v 1.7 2003/11/14 23:11:54 seemant Exp $

use perl && inherit perl-module

IUSE="perl"
DESCRIPTION="Network Kanji code conversion Filter"
SRC_URI="ftp://ftp.ie.u-ryukyu.ac.jp/pub/software/kono/${PN}${PV/./}.shar"
HOMEPAGE="http://bw-www.ie.u-ryukyu.ac.jp/~kono/software.html"
DEPEND=">=app-arch/sharutils-4.2.1-r5"
KEYWORDS="x86 ppc sparc alpha"
LICENSE="public-domain"
SLOT="0"
S=${WORKDIR}/${P}

src_unpack() {
	mkdir -p ${S}
	cd ${S}
	mkdir NKF
	unshar -c ${DISTDIR}/${A}
	patch -s -p1 < ${FILESDIR}/${P}-msg00025.patch || die
}

src_compile() {
	make CC=gcc CFLAGS="${CFLAGS}" PERL=perl nkf test || die
	use perl && (
		cd ${S}/NKF
		perl-module_src_compile
		perl-module_src_test
	)
}

src_install() {
	exeinto /usr/bin
	doexe nkf
	doman nkf.1
	dodoc nkf.doc
	use perl && (
		cd ${S}/NKF
		perl-module_src_install
	)
}