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