mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
added support for ibus-1.4.0
Requested by: Buganini
This commit is contained in:
parent
c2e6cf2d7c
commit
b706405e3a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288657
3 changed files with 15 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PKGNAMEPREFIX= ja-ibus-
|
||||
PKGNAMESUFFIX=
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
COMMENT= Mozc engine for IBus
|
||||
DATADIR= ${PREFIX}/share/ibus-${PORTNAME}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= mozc
|
||||
PORTVERSION= 1.3.931.102
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||
PKGNAMEPREFIX?= ja-
|
||||
|
@ -132,6 +132,8 @@ do-install-mozc_tool:
|
|||
# ibus_mozc
|
||||
.if ${BUILD_MOZC_LIST:Mibus_mozc} == "ibus_mozc"
|
||||
LIB_DEPENDS+= ibus.2:${PORTSDIR}/textproc/ibus
|
||||
# after ibus updated to 1.4.0, use below instead.
|
||||
#LIB_DEPENDS+= ibus-1.0.400:${PORTSDIR}/textproc/ibus
|
||||
RUN_DEPENDS+= mozc_server:${PORTSDIR}/japanese/mozc-server \
|
||||
mozc_tool:${PORTSDIR}/japanese/mozc-tool \
|
||||
mozc_server_start:${PORTSDIR}/japanese/mozc-additions \
|
||||
|
|
11
japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc
Normal file
11
japanese/mozc-server/files/patch-unix_ibus_mozc_engine.cc
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- unix/ibus/mozc_engine.cc.orig 2011-12-24 13:17:12.915092360 +0900
|
||||
+++ unix/ibus/mozc_engine.cc 2012-01-07 13:40:28.811283808 +0900
|
||||
@@ -1187,7 +1187,7 @@
|
||||
|
||||
string selection_text;
|
||||
const uint32 selection_start = min(cursor_pos, anchor_pos);
|
||||
- const uint32 selection_length = abs(cursor_pos - anchor_pos);
|
||||
+ const uint32 selection_length = ::abs(cursor_pos - anchor_pos);
|
||||
Util::SubString(surrounding_text,
|
||||
selection_start,
|
||||
selection_length,
|
Loading…
Add table
Reference in a new issue