summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2012-05-23 01:27:59 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2012-05-23 01:27:59 +0000
commitc52abba0b39b681dded084dc7d09ac696856ed0e (patch)
treec357abcf765599d0b96fee787428378b04091949 /japanese
parentSwitch to FETCH_DEPENDS to fix fetch during build (diff)
fixed some path issues
Submitted by: Zhihao Yuan <lichray@gmail.com>
Notes
Notes: svn path=/head/; revision=297235
Diffstat (limited to 'japanese')
-rw-r--r--japanese/fcitx-mozc/Makefile7
-rw-r--r--japanese/fcitx-mozc/pkg-message31
-rw-r--r--japanese/mozc-server/Makefile3
-rw-r--r--japanese/mozc-server/files/patch-unix_fcitx_mozc.conf4
4 files changed, 41 insertions, 4 deletions
diff --git a/japanese/fcitx-mozc/Makefile b/japanese/fcitx-mozc/Makefile
index fa15513bb52f..9c51c8402011 100644
--- a/japanese/fcitx-mozc/Makefile
+++ b/japanese/fcitx-mozc/Makefile
@@ -8,10 +8,15 @@
PKGNAMEPREFIX= ja-fcitx-
PKGNAMESUFFIX=
COMMENT= Mozc engine for Fcitx
-DATADIR= ${PREFIX}/share/fcitx-${PORTNAME}
+DATADIR= ${PREFIX}/share/fcitx/${PORTNAME}
MASTERDIR= ${.CURDIR}/../../japanese/mozc-server
+PKGMESSAGE= ${.CURDIR}/pkg-message
BUILD_MOZC_LIST= fcitx_mozc
+post-install:
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_CMD} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
+
.include "${MASTERDIR}/Makefile"
diff --git a/japanese/fcitx-mozc/pkg-message b/japanese/fcitx-mozc/pkg-message
new file mode 100644
index 000000000000..d34f647d6130
--- /dev/null
+++ b/japanese/fcitx-mozc/pkg-message
@@ -0,0 +1,31 @@
+fcitx-mozc installation finished. To use fcitx-mozc, please do the following:
+
+If you are using bash or zsh, please add following lines to your $HOME/.bashrc or
+$HOME/.zshrc:
+
+export GTK_IM_MODULE=xim
+export QT_IM_MODULE=xim
+export XMODIFIERS=@im=fcitx
+mozc_server_start
+fcitx
+
+If you are using tcsh, please add following lines to your $HOME/.cshrc:
+
+setenv GTK_IM_MODULE xim
+setenv QT_IM_MODULE xim
+setenv XMODIFIERS @im=fcitx
+mozc_server_start
+fcitx
+
+If you are using KDE4, you may create a shell script in $HOME/.kde4/env,
+and add following lines:
+
+#!/bin/sh
+export GTK_IM_MODULE=xim
+export QT_IM_MODULE=xim
+export XMODIFIERS=@im=fcitx
+mozc_server_start
+fcitx
+
+You can replace the `xim` above with `fcitx` if you built fcitx with
+the corresponding IM module.
diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile
index 34b540b9d9b3..e0a4ac59e917 100644
--- a/japanese/mozc-server/Makefile
+++ b/japanese/mozc-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mozc
PORTVERSION= 1.5.1053.102
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX?= ja-
@@ -64,6 +64,7 @@ LOCALBASE_REPLACE_FILES= \
unix/ibus/path_util.cc \
unix/scim/scim.gyp \
unix/scim/scim_mozc.cc \
+ unix/fcitx/mozc.conf \
base/util.cc \
base/process.cc \
gui/about_dialog/about_dialog.cc \
diff --git a/japanese/mozc-server/files/patch-unix_fcitx_mozc.conf b/japanese/mozc-server/files/patch-unix_fcitx_mozc.conf
index c06bb8b4f788..1cacbfdb30f9 100644
--- a/japanese/mozc-server/files/patch-unix_fcitx_mozc.conf
+++ b/japanese/mozc-server/files/patch-unix_fcitx_mozc.conf
@@ -1,10 +1,10 @@
--- unix/fcitx/mozc.conf.orig 1970-01-01 09:00:00.000000000 +0900
-+++ unix/fcitx/mozc.conf 2012-05-22 13:42:56.617829320 +0900
++++ unix/fcitx/mozc.conf 2012-05-23 10:13:55.687828576 +0900
@@ -0,0 +1,7 @@
+[InputMethod]
+UniqueName=mozc
+Name=Mozc
-+IconName=/usr/share/fcitx/mozc/icon/mozc.png
++IconName=@@LOCALBASE@@/share/fcitx/mozc/icon/mozc.png
+Priority=1
+LangCode=ja
+Parent=fcitx-mozc