-diff --git a/freewnn-utils.c b/freewnn-utils.c
-index 3cf63b3..0e871d6 100644
--- a/freewnn-utils.c
+++ b/freewnn-utils.c
@@ -18,6 +18,9 @@
#include "freewnn-utils.h"
#include "kata2hkata.h"
-diff --git a/im-freewnn.c b/im-freewnn.c
-index b56d63c..833582e 100644
--- a/im-freewnn.c
+++ b/im-freewnn.c
@@ -26,6 +26,7 @@
#include <string.h>
#include "keytable.h"
+@@ -33,6 +34,7 @@
+ #include <gdk/gdkkeysyms.h>
+
+ #include "im-freewnn-intl.h"
++#include "freewnn-utils-ui.h"
+ #include "convtable.h"
+ #include "im-freewnn.h"
+
--- /dev/null
+--- a/im-freewnn.c
++++ b/im-freewnn.c
+@@ -236,7 +236,7 @@
+ return;
+ }
+
+- jl_set_env_wnnrc(wenv, "/etc/FreeWnn/ja/wnnenvrc", printConfirm, printError);
++ jl_set_env_wnnrc(wenv, "@GENTOO_PORTAGE_EPREFIX@/usr/lib/wnn/ja_JP/wnnenvrc", printConfirm, printError);
+
+ cf->modewin = freewnn_modewin_new(cf->wnnbuf, &cf->functable);
+ cf->candwin = candwin_new();
+++ /dev/null
---- im-freewnn.c 2004-08-05 09:47:08.000000000 +0900
-+++ im-freewnn.c-wnnrc 2004-08-05 21:55:50.540038392 +0900
-@@ -53,7 +53,7 @@
- { 0, NULL },
- };
-
--static const gchar* ideos = " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\〜‖|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+−±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇∧∨¬⇒⇔∀∃∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬ʼn♯♭♪†‡¶◯ゎゐゑヮヰヱヴヵヶΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂";
-+static const gchar* ideos = " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\??|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+?±×÷=≠<>≦≧∞∴♂♀°′″℃¥$??%#&*@§☆★○●◎◇∧∨?⇒⇔∀∃∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬ʼn♯♭♪†‡¶◯ゎゐゑヮヰヱヴヵヶΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂";
-
- #ifdef BUFSIZ
- #undef BUFSIZ
-@@ -236,7 +236,7 @@
- return;
- }
-
-- jl_set_env_wnnrc(wenv, "/etc/FreeWnn/ja/wnnenvrc", printConfirm, printError);
-+ jl_set_env_wnnrc(wenv, "/usr/lib/wnn/ja_JP/wnnenvrc", printConfirm, printError);
-
- cf->modewin = freewnn_modewin_new(cf->wnnbuf, &cf->functable);
- cf->candwin = candwin_new();
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-inherit autotools eutils gnome2-utils multilib
+inherit autotools eutils gnome2-utils multilib prefix
DESCRIPTION="Japanese FreeWnn input method module for GTK+2"
HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
}
src_prepare() {
- epatch "${FILESDIR}/${PN}-wnnrc-gentoo.diff"
+ epatch "${FILESDIR}"/${PN}-wnnenvrc.patch
# bug #298744
epatch "${FILESDIR}/${P}-as-needed.patch"
- epatch "${FILESDIR}/${P}-implicit-declaration.patch"
+ epatch "${FILESDIR}"/${PN}-headers.patch
+ eprefixify ${PN}.c
- mv configure.in configure.ac || die
+ mv configure.{in,ac} || die
eautoreconf
}