1 |
commit: 30cfa69ba63494feba9221f033696f59160e0d1a |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 30 12:31:19 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 30 12:31:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30cfa69b |
7 |
|
8 |
app-i18n/anthy: EAPI 6 bump. |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/621522 |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/4978 |
13 |
|
14 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
15 |
|
16 |
app-i18n/anthy/anthy-9100h-r2.ebuild | 68 ++++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 68 insertions(+) |
18 |
|
19 |
diff --git a/app-i18n/anthy/anthy-9100h-r2.ebuild b/app-i18n/anthy/anthy-9100h-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..6ad6fbaf144 |
22 |
--- /dev/null |
23 |
+++ b/app-i18n/anthy/anthy-9100h-r2.ebuild |
24 |
@@ -0,0 +1,68 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit elisp-common |
31 |
+ |
32 |
+DESCRIPTION="Anthy -- free and secure Japanese input system" |
33 |
+HOMEPAGE="http://anthy.sourceforge.jp/" |
34 |
+SRC_URI="mirror://sourceforge.jp/anthy/37536/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2 LGPL-2.1" |
37 |
+ |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
39 |
+SLOT="0" |
40 |
+IUSE="canna-2ch emacs static-libs" |
41 |
+ |
42 |
+DEPEND=" |
43 |
+ !app-i18n/anthy-ss |
44 |
+ canna-2ch? ( app-dicts/canna-2ch ) |
45 |
+ emacs? ( virtual/emacs )" |
46 |
+ |
47 |
+RDEPEND="${DEPEND}" |
48 |
+ |
49 |
+PATCHES=( "${FILESDIR}/${P}-anthy_context_t.patch" ) |
50 |
+ |
51 |
+DOCS=( AUTHORS DIARY NEWS README ChangeLog ) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ if use canna-2ch; then |
57 |
+ einfo "Adding nichan.ctd to anthy.dic." |
58 |
+ sed -i \ |
59 |
+ -e "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" \ |
60 |
+ mkworddic/dict.args.in || die |
61 |
+ fi |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local myconf |
66 |
+ |
67 |
+ use emacs || myconf="EMACS=no" |
68 |
+ |
69 |
+ econf \ |
70 |
+ $(use_enable static-libs static) \ |
71 |
+ ${myconf} |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ default |
76 |
+ |
77 |
+ if use emacs; then |
78 |
+ elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el || die |
79 |
+ fi |
80 |
+ |
81 |
+ rm -v doc/Makefile* || die |
82 |
+ docinto doc |
83 |
+ dodoc doc/* |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ use emacs && elisp-site-regen |
88 |
+} |
89 |
+ |
90 |
+pkg_postrm() { |
91 |
+ use emacs && elisp-site-regen |
92 |
+} |