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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +3 -3 lines
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-r1.ebuild,v 1.1 2014/08/28 08:15:40 naota 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 linguas_ja? ( http://dev.gentoo.org/~naota/files/nkf.1j )
13 python? ( http://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )"
14
15 LICENSE="ZLIB"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-macos"
18 IUSE="perl python linguas_ja"
19
20 src_prepare() {
21 sed -i \
22 -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
23 -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
24 Makefile || die
25
26 if use linguas_ja; then
27 cp "${DISTDIR}"/nkf.1j "${S}" || die
28 fi
29
30 if use python; then
31 mv "${WORKDIR}/NKF.python" "${S}" || die
32 epatch "${FILESDIR}"/${P}-strip.patch
33 fi
34 }
35
36 src_compile() {
37 emake CC="$(tc-getCC)" nkf || die
38 if use perl; then
39 cd "${S}/NKF.mod"
40 perl-module_src_compile
41 fi
42 if use python; then
43 cd "${S}/NKF.python"
44 distutils-r1_src_compile
45 fi
46 }
47
48 src_test() {
49 emake test || die
50 if use perl; then
51 cd "${S}/NKF.mod"
52 perl-module_src_test
53 fi
54 }
55
56 src_install() {
57 dobin nkf || die
58 doman nkf.1
59
60 if use linguas_ja; then
61 ./nkf -e nkf.1j > nkf.1
62 doman -i18n=ja nkf.1
63 fi
64 dodoc nkf.doc
65
66 if use perl; then
67 cd "${S}/NKF.mod"
68 perl-module_src_install
69 fi
70 if use python; then
71 cd "${S}/NKF.python"
72 distutils-r1_src_install
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20