freebsd-ports/japanese/mozc-server/files/patch-handwriting_zinnia_handwriting.cc
Daichi GOTO 66dcdf29bf Updated mozc relative ports to 1.6.1187.102
- Google droped SCIM support from this version.
    japanese/scim-mozc will be removed in the future.
2012-09-07 03:28:18 +00:00

19 lines
787 B
C++

--- handwriting/zinnia_handwriting.cc.orig 2012-09-07 10:21:29.209021370 +0900
+++ handwriting/zinnia_handwriting.cc 2012-09-07 10:38:01.976021756 +0900
@@ -50,10 +50,16 @@
const char kModelFile[] = "handwriting-light-ja.model";
return Util::JoinPath(MacUtil::GetResourcesDirectory(), kModelFile);
#elif defined(USE_LIBZINNIA)
+#if defined(__FreeBSD__)
+ const char kModelFile[] =
+ "@@LOCALBASE@@/share/tegaki/models/zinnia/handwriting-ja.model";
+ return kModelFile;
+#else
// On Linux, use the model for tegaki-zinnia.
const char kModelFile[] =
"/usr/share/tegaki/models/zinnia/handwriting-ja.model";
return kModelFile;
+#endif
#else
const char kModelFile[] = "handwriting-ja.model";
return Util::JoinPath(Util::GetServerDirectory(), kModelFile);