1 |
commit: ac0ab8866ed670d2f08b97997880b29583736464 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 11:40:39 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 11:40:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0ab886 |
7 |
|
8 |
app-dicts/gwaei: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742056 |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
app-dicts/gwaei/gwaei-3.6.2.ebuild | 49 +++++++++++++++++--------------------- |
15 |
1 file changed, 22 insertions(+), 27 deletions(-) |
16 |
|
17 |
diff --git a/app-dicts/gwaei/gwaei-3.6.2.ebuild b/app-dicts/gwaei/gwaei-3.6.2.ebuild |
18 |
index 760d43ab9b6..045d9d6ad1f 100644 |
19 |
--- a/app-dicts/gwaei/gwaei-3.6.2.ebuild |
20 |
+++ b/app-dicts/gwaei/gwaei-3.6.2.ebuild |
21 |
@@ -1,9 +1,9 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI="4" |
27 |
+EAPI=7 |
28 |
|
29 |
-inherit gnome2-utils eutils |
30 |
+inherit gnome2-utils |
31 |
|
32 |
DESCRIPTION="Japanese-English Dictionary for GNOME" |
33 |
HOMEPAGE="http://gwaei.sourceforge.net/" |
34 |
@@ -12,10 +12,11 @@ SRC_URI="mirror://sourceforge/gwaei/${P}.tar.xz" |
35 |
LICENSE="GPL-3" |
36 |
SLOT="0" |
37 |
KEYWORDS="~amd64 ~x86" |
38 |
-IUSE="gtk hunspell nls test mecab" |
39 |
+IUSE="gtk hunspell nls mecab test" |
40 |
RESTRICT="!test? ( test )" |
41 |
|
42 |
-RDEPEND=">=net-misc/curl-7.20.0 |
43 |
+RDEPEND=" |
44 |
+ >=net-misc/curl-7.20.0 |
45 |
>=dev-libs/glib-2.31 |
46 |
gtk? ( |
47 |
x11-libs/gtk+:3 |
48 |
@@ -25,50 +26,44 @@ RDEPEND=">=net-misc/curl-7.20.0 |
49 |
nls? ( virtual/libintl ) |
50 |
mecab? ( app-text/mecab )" |
51 |
DEPEND="${RDEPEND} |
52 |
- test? ( |
53 |
- app-text/docbook-xml-dtd:4.1.2 |
54 |
- app-text/scrollkeeper-dtd |
55 |
- ) |
56 |
gtk? ( |
57 |
x11-themes/gnome-icon-theme-symbolic |
58 |
>=app-text/gnome-doc-utils-0.14.0 |
59 |
- ) |
60 |
- nls? ( >=sys-devel/gettext-0.17 ) |
61 |
+ )" |
62 |
+BDEPEND=" |
63 |
app-text/rarian |
64 |
dev-util/intltool |
65 |
- virtual/pkgconfig" |
66 |
+ virtual/pkgconfig |
67 |
+ nls? ( >=sys-devel/gettext-0.17 ) |
68 |
+ test? ( |
69 |
+ app-text/docbook-xml-dtd:4.1.2 |
70 |
+ app-text/scrollkeeper-dtd |
71 |
+ )" |
72 |
|
73 |
src_configure() { |
74 |
econf \ |
75 |
+ --disable-static \ |
76 |
$(use_with gtk gnome) \ |
77 |
$(use_enable nls) \ |
78 |
$(use_with hunspell) \ |
79 |
- $(use_with mecab) \ |
80 |
- --disable-static \ |
81 |
- --docdir=/usr/share/doc/${PF} |
82 |
+ $(use_with mecab) |
83 |
} |
84 |
|
85 |
src_install() { |
86 |
- emake DESTDIR="${D}" install |
87 |
- find "${D}" -name '*.la' -delete |
88 |
+ default |
89 |
|
90 |
- dodoc AUTHORS README |
91 |
+ # no static archives |
92 |
+ find "${ED}" -name '*.la' -delete || die |
93 |
} |
94 |
|
95 |
pkg_preinst() { |
96 |
- if use gtk ; then |
97 |
- gnome2_schemas_savelist |
98 |
- fi |
99 |
+ use gtk && gnome2_schemas_savelist |
100 |
} |
101 |
|
102 |
pkg_postinst() { |
103 |
- if use gtk ; then |
104 |
- gnome2_schemas_update |
105 |
- fi |
106 |
+ use gtk && gnome2_schemas_update |
107 |
} |
108 |
|
109 |
pkg_postrm() { |
110 |
- if use gtk ; then |
111 |
- gnome2_schemas_update |
112 |
- fi |
113 |
+ use gtk && gnome2_schemas_update |
114 |
} |