blob: 102b70363587102a344bb5752ada036443c82333 (
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-2002 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.2 2002/11/19 09:14:37 nakano 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=">=sys-apps/sharutils-4.2.1-r5"
KEYWORDS="x86 ~ppc ~sparc ~sparc64 ~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
)
}
|