Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/skkfep/, app-i18n/skkfep/files/
Date: Sun, 25 Jun 2017 05:22:23
Message-Id: 1498368080.ff743353f7345c2cd3b53713bea29b804e805891.hattya@gentoo
1 commit: ff743353f7345c2cd3b53713bea29b804e805891
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 25 05:21:20 2017 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 25 05:21:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff743353
7
8 app-i18n/skkfep: add support for annotation
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 app-i18n/skkfep/files/skkfep-annotation.patch | 29 +++++++++++++++++++++++++++
13 app-i18n/skkfep/skkfep-0.87-r1.ebuild | 1 +
14 2 files changed, 30 insertions(+)
15
16 diff --git a/app-i18n/skkfep/files/skkfep-annotation.patch b/app-i18n/skkfep/files/skkfep-annotation.patch
17 new file mode 100644
18 index 00000000000..8145c2b069e
19 --- /dev/null
20 +++ b/app-i18n/skkfep/files/skkfep-annotation.patch
21 @@ -0,0 +1,29 @@
22 +--- a/kkconv.c
23 ++++ b/kkconv.c
24 +@@ -645,6 +645,7 @@
25 + char c;
26 + {
27 + int l;
28 ++ char *p;
29 + DicList dlist;
30 +
31 + kanjiSelectionEffect(0);
32 +@@ -653,7 +654,17 @@
33 + if (OkuriInput)
34 + l += strlen(OkuriBuf);
35 + csrLeft(l);
36 +- writeShells(CurrentCand->candword);
37 ++ p= strrchr(CurrentCand->candword,';');
38 ++ if (p != NULL) {
39 ++ erase(l);
40 ++ csrLeft(l);
41 ++ l -= strlen(p);
42 ++ *p = '\0';
43 ++ writeShells(CurrentCand->candword);
44 ++ *p = ';';
45 ++ } else {
46 ++ writeShells(CurrentCand->candword);
47 ++ }
48 + if (OkuriInput) {
49 + writeShells(OkuriBuf);
50 + }
51
52 diff --git a/app-i18n/skkfep/skkfep-0.87-r1.ebuild b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
53 index a3e53f72d61..a74c53e6af3 100644
54 --- a/app-i18n/skkfep/skkfep-0.87-r1.ebuild
55 +++ b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
56 @@ -23,6 +23,7 @@ RDEPEND="sys-libs/ncurses:=
57 PATCHES=(
58 "${FILESDIR}"/${PN}-gentoo.patch
59 "${FILESDIR}"/${PN}-system-dic.patch
60 + "${FILESDIR}"/${PN}-annotation.patch
61 )
62 DOCS=( README HISTORY TODO )