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

Contents of /app-i18n/nkf/nkf-2.0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Thu Aug 7 18:25:08 2014 UTC (5 years, 11 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Stable for all wrt bug #518292

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 ulm 1.10 # Copyright 1999-2012 Gentoo Foundation
2 matsuu 1.1 # Distributed under the terms of the GNU General Public License v2
3 zlogene 1.11 # $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-2.0.7.ebuild,v 1.10 2012/12/07 19:18:19 ulm Exp $
4 arfrever 1.9
5     EAPI="3"
6 matsuu 1.1
7     inherit toolchain-funcs eutils perl-app distutils
8    
9     MY_P="nkf${PV//./}"
10     DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
11     HOMEPAGE="http://sourceforge.jp/projects/nkf/"
12     SRC_URI="mirror://sourceforge.jp/nkf/20770/${MY_P}.tar.gz
13     python? ( http://city.plala.jp/download/nkf/NKF_python.tgz )"
14    
15 ulm 1.10 LICENSE="ZLIB"
16 matsuu 1.1 SLOT="0"
17 vapier 1.8 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sh sparc x86"
18 matsuu 1.1 IUSE="perl python linguas_ja"
19    
20     S="${WORKDIR}/${MY_P}"
21    
22 arfrever 1.9 src_prepare() {
23 matsuu 1.1 sed -i -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' Makefile || die
24    
25     if use python; then
26     unpack NKF_python.tgz
27     fi
28     }
29    
30     src_compile() {
31     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" nkf || die
32     if use perl; then
33     cd "${S}/NKF.mod"
34     perl-module_src_compile
35     perl-module_src_test
36     fi
37     if use python; then
38     cd "${S}/NKF.python"
39     distutils_src_compile
40     fi
41     }
42    
43     src_install() {
44     dobin nkf || die
45     doman nkf.1
46     if use linguas_ja; then
47     ./nkf -e nkf.1j > nkf.1
48     doman -i18n=ja nkf.1
49     fi
50     dodoc INSTALL* nkf.doc
51     if use perl; then
52     cd "${S}/NKF.mod"
53     perl-module_src_install
54     fi
55     if use python; then
56     cd "${S}/NKF.python"
57     distutils_src_install
58     fi
59     }
60 arfrever 1.9
61     pkg_postinst() {
62     use python && distutils_pkg_postinst
63     }
64    
65     pkg_postrm() {
66     use python && distutils_pkg_postrm
67     }

  ViewVC Help
Powered by ViewVC 1.1.20