/[gentoo-x86]/app-i18n/nkf/nkf-2.0.5-r1.ebuild
Gentoo

Contents of /app-i18n/nkf/nkf-2.0.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Sep 17 14:36:57 2007 UTC (12 years, 10 months ago) by hattya
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
cleaned out old ebuilds.
(Portage version: 2.1.3.9)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-2.0.5-r1.ebuild,v 1.10 2005/11/28 12:08:04 mcummings Exp $
4
5 inherit toolchain-funcs eutils perl-app distutils
6
7 MY_P="${PN}${PV//./}"
8 DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
9 HOMEPAGE="http://sourceforge.jp/projects/nkf/"
10 SRC_URI="http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/${MY_P}.tar.gz"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sh sparc x86"
15 IUSE="perl cjk python"
16
17 DEPEND="virtual/libc"
18
19 S=${WORKDIR}/${MY_P}
20
21 src_compile() {
22 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" nkf || die
23 if use perl; then
24 cd ${S}/NKF.mod
25 perl-module_src_compile
26 perl-module_src_test
27 fi
28 if use python; then
29 cd ${WORKDIR}
30 epatch ${FILESDIR}/nkf-python.patch
31 cd ${S}/NKF.python
32 distutils_src_compile
33 src_test
34 fi
35 }
36
37 src_install() {
38 dobin nkf || die
39 doman nkf.1
40 if use cjk; then
41 dodir /usr/share/man/ja/man1
42 insinto /usr/share/man/ja/man1
43 ./nkf -e nkf.1j > nkf.1
44 doins nkf.1
45 fi
46 dodoc INSTALL* nkf.doc
47 if use perl; then
48 cd ${S}/NKF.mod
49 perl-module_src_install
50 fi
51 if use python; then
52 cd ${S}/NKF.python
53 distutils_src_install
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20