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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Aug 7 18:25:08 2014 UTC (5 years, 6 months ago) by zlogene
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for all wrt bug #518292

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

1 # Copyright 1999-2014 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.1.3.ebuild,v 1.3 2014/08/07 10:05:36 jer Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python{2_6,2_7} )
7 inherit eutils distutils-r1 perl-module toolchain-funcs
8
9 DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
10 HOMEPAGE="http://sourceforge.jp/projects/nkf/"
11 SRC_URI="mirror://sourceforge.jp/nkf/59912/${P}.tar.gz
12 python? ( http://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )"
13
14 LICENSE="ZLIB"
15 SLOT="0"
16 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-macos"
17 IUSE="perl python linguas_ja"
18
19 src_prepare() {
20 sed -i \
21 -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
22 -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
23 Makefile || die
24
25 mv "${WORKDIR}/NKF.python" "${S}" || die
26 epatch "${FILESDIR}"/${P}-strip.patch
27 }
28
29 src_compile() {
30 emake CC="$(tc-getCC)" nkf || die
31 if use perl; then
32 cd "${S}/NKF.mod"
33 perl-module_src_compile
34 fi
35 if use python; then
36 cd "${S}/NKF.python"
37 distutils-r1_src_compile
38 fi
39 }
40
41 src_test() {
42 emake test || die
43 if use perl; then
44 cd "${S}/NKF.mod"
45 perl-module_src_test
46 fi
47 }
48
49 src_install() {
50 dobin nkf || die
51 doman nkf.1
52
53 if use linguas_ja; then
54 ./nkf -e nkf.1j > nkf.1
55 doman -i18n=ja nkf.1
56 fi
57 dodoc nkf.doc
58
59 if use perl; then
60 cd "${S}/NKF.mod"
61 perl-module_src_install
62 fi
63 if use python; then
64 cd "${S}/NKF.python"
65 distutils-r1_src_install
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20