1 |
commit: 3be53a2c635236ba4a5901954b6e5f6be90f5e55 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 22 14:39:33 2021 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 22 14:39:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3be53a2c |
7 |
|
8 |
app-text/chasen: update to EAPI 8 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
12 |
|
13 |
app-text/chasen/chasen-2.4.4-r3.ebuild | 27 +++++++++++++-------------- |
14 |
1 file changed, 13 insertions(+), 14 deletions(-) |
15 |
|
16 |
diff --git a/app-text/chasen/chasen-2.4.4-r3.ebuild b/app-text/chasen/chasen-2.4.4-r3.ebuild |
17 |
index becbef0dcf99..2e8a2e5f4013 100644 |
18 |
--- a/app-text/chasen/chasen-2.4.4-r3.ebuild |
19 |
+++ b/app-text/chasen/chasen-2.4.4-r3.ebuild |
20 |
@@ -1,9 +1,9 @@ |
21 |
# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI="5" |
25 |
+EAPI="8" |
26 |
|
27 |
-inherit epatch perl-module |
28 |
+inherit perl-module |
29 |
|
30 |
DESCRIPTION="Japanese Morphological Analysis System, ChaSen" |
31 |
HOMEPAGE="https://chasen-legacy.osdn.jp/" |
32 |
@@ -14,26 +14,25 @@ SLOT="0" |
33 |
KEYWORDS="amd64 ppc ~ppc64 ~riscv x86 ~sparc-solaris" |
34 |
IUSE="perl static-libs" |
35 |
|
36 |
+RDEPEND="virtual/libiconv" |
37 |
DEPEND=">=dev-libs/darts-0.32" |
38 |
-RDEPEND="${DEPEND} |
39 |
- perl? ( !dev-perl/Text-ChaSen )" |
40 |
PDEPEND=">=app-dicts/ipadic-2.7.0" |
41 |
|
42 |
-src_prepare() { |
43 |
- epatch "${FILESDIR}"/${P}-cve-2011-4000.patch |
44 |
-} |
45 |
+PATCHES=( "${FILESDIR}"/${P}-cve-2011-4000.patch ) |
46 |
|
47 |
src_configure() { |
48 |
econf $(use_enable static-libs static) |
49 |
- if use perl ; then |
50 |
- cd "${S}"/perl |
51 |
+ |
52 |
+ if use perl; then |
53 |
+ cd "${S}"/perl || die |
54 |
perl-module_src_configure |
55 |
fi |
56 |
} |
57 |
|
58 |
src_compile() { |
59 |
default |
60 |
- if use perl ; then |
61 |
+ |
62 |
+ if use perl; then |
63 |
cd "${S}"/perl || die |
64 |
perl-module_src_compile |
65 |
fi |
66 |
@@ -41,7 +40,8 @@ src_compile() { |
67 |
|
68 |
src_test() { |
69 |
default |
70 |
- if use perl ; then |
71 |
+ |
72 |
+ if use perl; then |
73 |
cd "${S}"/perl || die |
74 |
perl-module_src_test |
75 |
fi |
76 |
@@ -49,12 +49,11 @@ src_test() { |
77 |
|
78 |
src_install() { |
79 |
default |
80 |
+ find "${ED}" -name '*.la' -delete || die |
81 |
|
82 |
- if use perl ; then |
83 |
+ if use perl; then |
84 |
cd "${S}"/perl || die |
85 |
perl-module_src_install |
86 |
newdoc README README.perl |
87 |
fi |
88 |
- |
89 |
- find "${ED}" -name '*.la' -delete || die |
90 |
} |