1 |
commit: 0a34c1def507077e7e937442941ee2e06b14626f |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 31 12:18:52 2018 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 12:18:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a34c1de |
7 |
|
8 |
app-i18n/nkf: update to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
app-i18n/nkf/nkf-2.1.3-r1.ebuild | 60 +++++++++++++++++++++++----------------- |
13 |
1 file changed, 34 insertions(+), 26 deletions(-) |
14 |
|
15 |
diff --git a/app-i18n/nkf/nkf-2.1.3-r1.ebuild b/app-i18n/nkf/nkf-2.1.3-r1.ebuild |
16 |
index 240a559e772..23f6161b389 100644 |
17 |
--- a/app-i18n/nkf/nkf-2.1.3-r1.ebuild |
18 |
+++ b/app-i18n/nkf/nkf-2.1.3-r1.ebuild |
19 |
@@ -1,14 +1,15 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI="5" |
25 |
+EAPI="6" |
26 |
PYTHON_COMPAT=( python2_7 ) |
27 |
-inherit eutils distutils-r1 perl-module toolchain-funcs |
28 |
+ |
29 |
+inherit distutils-r1 perl-module toolchain-funcs |
30 |
|
31 |
DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support" |
32 |
HOMEPAGE="http://sourceforge.jp/projects/nkf/" |
33 |
-SRC_URI="mirror://sourceforge.jp/nkf/59912/${P}.tar.gz |
34 |
- l10n_ja? ( https://dev.gentoo.org/~naota/files/nkf.1j ) |
35 |
+SRC_URI="mirror://sourceforge.jp/${PN}/59912/${P}.tar.gz |
36 |
+ l10n_ja? ( https://dev.gentoo.org/~naota/files/${PN}.1j ) |
37 |
python? ( https://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )" |
38 |
|
39 |
LICENSE="ZLIB" |
40 |
@@ -18,56 +19,63 @@ IUSE="perl python l10n_ja" |
41 |
|
42 |
src_prepare() { |
43 |
sed -i \ |
44 |
- -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \ |
45 |
- -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \ |
46 |
- Makefile || die |
47 |
- |
48 |
+ -e "/^CFLAGS/{ s/-g -O2//; s/=/+=/; }" \ |
49 |
+ -e "/ -o ${PN}/s/\(-o \)/\$(LDFLAGS) \1/" \ |
50 |
+ Makefile |
51 |
if use l10n_ja; then |
52 |
- cp "${DISTDIR}"/nkf.1j "${S}" || die |
53 |
+ cp "${DISTDIR}"/${PN}.1j ${PN}.ja.1 || die |
54 |
fi |
55 |
- |
56 |
if use python; then |
57 |
- mv "${WORKDIR}/NKF.python" "${S}" || die |
58 |
- epatch "${FILESDIR}"/${P}-strip.patch |
59 |
+ mv "${WORKDIR}"/NKF.python . || die |
60 |
+ eapply "${FILESDIR}"/${P}-strip.patch |
61 |
fi |
62 |
+ |
63 |
+ default |
64 |
} |
65 |
|
66 |
src_compile() { |
67 |
- emake CC="$(tc-getCC)" nkf || die |
68 |
+ emake CC="$(tc-getCC)" |
69 |
if use perl; then |
70 |
- cd "${S}/NKF.mod" |
71 |
+ cd NKF.mod |
72 |
perl-module_src_compile |
73 |
+ cd - >/dev/null |
74 |
fi |
75 |
if use python; then |
76 |
- cd "${S}/NKF.python" |
77 |
+ cd NKF.python |
78 |
distutils-r1_src_compile |
79 |
+ cd - >/dev/null |
80 |
fi |
81 |
} |
82 |
|
83 |
src_test() { |
84 |
- emake test || die |
85 |
+ default |
86 |
if use perl; then |
87 |
- cd "${S}/NKF.mod" |
88 |
+ cd NKF.mod |
89 |
perl-module_src_test |
90 |
+ cd - >/dev/null |
91 |
fi |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
- dobin nkf || die |
96 |
- doman nkf.1 |
97 |
+ dobin ${PN} |
98 |
+ doman ${PN}.1 |
99 |
|
100 |
if use l10n_ja; then |
101 |
- ./nkf -e nkf.1j > nkf.1 |
102 |
- doman -i18n=ja nkf.1 |
103 |
+ doman ${PN}.ja.1 |
104 |
fi |
105 |
- dodoc nkf.doc |
106 |
+ dodoc ${PN}.doc |
107 |
|
108 |
if use perl; then |
109 |
- cd "${S}/NKF.mod" |
110 |
+ cd NKF.mod |
111 |
+ docinto perl |
112 |
perl-module_src_install |
113 |
+ cd - >/dev/null |
114 |
fi |
115 |
if use python; then |
116 |
- cd "${S}/NKF.python" |
117 |
- distutils-r1_src_install |
118 |
+ cd NKF.python |
119 |
+ docinto python |
120 |
+ DOCS= distutils-r1_src_install |
121 |
+ dodoc README |
122 |
+ cd - >/dev/null |
123 |
fi |
124 |
} |