From: | "Matsuu Takuto (matsuu)" <matsuu@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-i18n/nkf: ChangeLog nkf-2.1.0-r1.ebuild |
Date: | Mon, 30 May 2011 23:39:35 |
Message-Id: | 20110530233924.D017920054@flycatcher.gentoo.org |
1 | matsuu 11/05/30 23:39:24 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nkf-2.1.0-r1.ebuild |
5 | Log: |
6 | Fixed python handling, bug #311215. |
7 | |
8 | (Portage version: 2.1.9.49/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.48 app-i18n/nkf/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/nkf/ChangeLog?rev=1.48&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/nkf/ChangeLog?rev=1.48&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/nkf/ChangeLog?r1=1.47&r2=1.48 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/app-i18n/nkf/ChangeLog,v |
20 | retrieving revision 1.47 |
21 | retrieving revision 1.48 |
22 | diff -u -r1.47 -r1.48 |
23 | --- ChangeLog 23 Apr 2011 15:09:01 -0000 1.47 |
24 | +++ ChangeLog 30 May 2011 23:39:24 -0000 1.48 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for app-i18n/nkf |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/ChangeLog,v 1.47 2011/04/23 15:09:01 grobian Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/ChangeLog,v 1.48 2011/05/30 23:39:24 matsuu Exp $ |
30 | + |
31 | +*nkf-2.1.0-r1 (31 May 2011) |
32 | + |
33 | + 30 May 2011; MATSUU Takuto <matsuu@g.o> +nkf-2.1.0-r1.ebuild: |
34 | + Fixed python handling, bug #311215. |
35 | |
36 | 23 Apr 2011; Fabian Groffen <grobian@g.o> nkf-2.1.0.ebuild: |
37 | Marked ~x86-macos, bug #360273 |
38 | |
39 | |
40 | |
41 | 1.1 app-i18n/nkf/nkf-2.1.0-r1.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/nkf/nkf-2.1.0-r1.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/nkf/nkf-2.1.0-r1.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: nkf-2.1.0-r1.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2011 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-2.1.0-r1.ebuild,v 1.1 2011/05/30 23:39:24 matsuu Exp $ |
51 | |
52 | EAPI="3" |
53 | PYTHON_DEPEND="python? 2" |
54 | inherit eutils distutils perl-module toolchain-funcs |
55 | |
56 | DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support" |
57 | HOMEPAGE="http://sourceforge.jp/projects/nkf/" |
58 | SRC_URI="mirror://sourceforge.jp/nkf/44486/${P}.tar.gz |
59 | python? ( http://city.plala.jp/moin/NkfPython?action=AttachFile&do=get&target=NKF_python20090602.tgz -> NKF_python20090602.tgz )" |
60 | |
61 | LICENSE="as-is" |
62 | SLOT="0" |
63 | KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-macos" |
64 | IUSE="perl python linguas_ja" |
65 | |
66 | pkg_setup() { |
67 | python_set_active_version 2 |
68 | } |
69 | |
70 | src_prepare() { |
71 | sed -i \ |
72 | -e "/^CFLAGS/s:-O2:${CFLAGS}:" \ |
73 | -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \ |
74 | Makefile || die |
75 | |
76 | if use python; then |
77 | mv "${WORKDIR}/NKF.python" "${S}" || die |
78 | sed -i -e "s/-s/${CFLAGS}/" NKF.python/setup.py || die |
79 | fi |
80 | } |
81 | |
82 | src_compile() { |
83 | emake CC="$(tc-getCC)" nkf || die |
84 | if use perl; then |
85 | cd "${S}/NKF.mod" |
86 | perl-module_src_compile |
87 | fi |
88 | if use python; then |
89 | cd "${S}/NKF.python" |
90 | distutils_src_compile |
91 | fi |
92 | } |
93 | |
94 | src_test() { |
95 | emake test || die |
96 | if use perl; then |
97 | cd "${S}/NKF.mod" |
98 | perl-module_src_test |
99 | fi |
100 | } |
101 | |
102 | src_install() { |
103 | dobin nkf || die |
104 | doman nkf.1 |
105 | if use linguas_ja; then |
106 | ./nkf -e nkf.1j > nkf.1 |
107 | doman -i18n=ja nkf.1 |
108 | fi |
109 | dodoc nkf.doc |
110 | if use perl; then |
111 | cd "${S}/NKF.mod" |
112 | perl-module_src_install |
113 | fi |
114 | if use python; then |
115 | cd "${S}/NKF.python" |
116 | distutils_src_install |
117 | fi |
118 | } |