/[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.6 - (show annotations) (download)
Wed Apr 8 07:30:30 2015 UTC (4 years, 10 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Error occurred while calculating annotation data.
Remove old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 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.5 2014/08/09 08:30:22 jer Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_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 if use python; then
26 mv "${WORKDIR}/NKF.python" "${S}" || die
27 epatch "${FILESDIR}"/${P}-strip.patch
28 fi
29 }
30
31 src_compile() {
32 emake CC="$(tc-getCC)" nkf || die
33 if use perl; then
34 cd "${S}/NKF.mod"
35 perl-module_src_compile
36 fi
37 if use python; then
38 cd "${S}/NKF.python"
39 distutils-r1_src_compile
40 fi
41 }
42
43 src_test() {
44 emake test || die
45 if use perl; then
46 cd "${S}/NKF.mod"
47 perl-module_src_test
48 fi
49 }
50
51 src_install() {
52 dobin nkf || die
53 doman nkf.1
54
55 if use linguas_ja; then
56 ./nkf -e nkf.1j > nkf.1
57 doman -i18n=ja nkf.1
58 fi
59 dodoc nkf.doc
60
61 if use perl; then
62 cd "${S}/NKF.mod"
63 perl-module_src_install
64 fi
65 if use python; then
66 cd "${S}/NKF.python"
67 distutils-r1_src_install
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20