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

Diff of /app-i18n/nkf/nkf-2.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.1.1.1
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/Attic/nkf-2.0.4.ebuild,v 1.1 2004/01/04 16:56:11 nakano Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/Attic/nkf-2.0.4.ebuild,v 1.1.1.1 2005/11/30 09:40:03 chriswhite Exp $
4 4
5use perl && inherit perl-module 5inherit toolchain-funcs perl-module
6 6
7MY_P="${PN}${PV//./}" 7MY_P="${PN}${PV//./}"
8DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support" 8DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
9HOMEPAGE="http://sourceforge.jp/projects/nkf/"
9SRC_URI="http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/${MY_P}.tar.gz" 10SRC_URI="http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/${MY_P}.tar.gz"
10HOMEPAGE="http://sourceforge.jp/projects/nkf/" 11
11DEPEND="virtual/glibc
12 $DEPEND"
13KEYWORDS="~x86 ~ppc ~sparc ~alpha"
14IUSE="perl cjk"
15LICENSE="as-is" 12LICENSE="as-is"
16SLOT="0" 13SLOT="0"
14KEYWORDS="x86 ppc sparc alpha amd64 ppc64 ia64"
15IUSE="perl cjk"
16
17DEPEND="virtual/libc"
18
17S=${WORKDIR}/${MY_P} 19S=${WORKDIR}/${MY_P}
18 20
19src_compile() { 21src_compile() {
20 emake CC=gcc CFLAGS="${CFLAGS}" nkf || die 22 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" nkf || die
21 if [ `use perl` ]; then 23 if use perl; then
22 cd ${S}/NKF.mod 24 cd ${S}/NKF.mod
23 perl-module_src_compile 25 perl-module_src_compile
24 perl-module_src_test 26 perl-module_src_test
25 fi 27 fi
26} 28}
27 29
28src_install () { 30src_install() {
29 into /usr 31 dobin nkf || die
30 dobin nkf
31 doman nkf.1 32 doman nkf.1
32 if [ `use cjk` ]; then 33 if use cjk; then
33 dodir /usr/share/man/ja/man1 34 dodir /usr/share/man/ja/man1
34 insinto /usr/share/man/ja/man1 35 insinto /usr/share/man/ja/man1
35 ./nkf -e nkf.1j > nkf.1 36 ./nkf -e nkf.1j > nkf.1
36 doins nkf.1 37 doins nkf.1
37 fi 38 fi
38 dodoc INSTALL* nkf.doc 39 dodoc INSTALL* nkf.doc
39 if [ `use perl` ]; then 40 if use perl; then
40 cd ${S}/NKF.mod 41 cd ${S}/NKF.mod
41 perl-module_src_install 42 perl-module_src_install
42 fi 43 fi
43} 44}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.1.1

  ViewVC Help
Powered by ViewVC 1.1.20