summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-09-03 00:13:57 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-09-03 00:13:57 +0000
commite9119210d2543c5390fc56da43249990fb610ddf (patch)
treee12b1bd001066b6114cac3983c6bbee92dba22dc /japanese
parentAdditions to win32-codecs (diff)
Add im-ja, a Japanese input module for GTK2.
Notes
Notes: svn path=/head/; revision=88385
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/im-ja/Makefile48
-rw-r--r--japanese/im-ja/distinfo1
-rw-r--r--japanese/im-ja/files/patch-configure12
-rw-r--r--japanese/im-ja/files/patch-data%Makefile.in19
-rw-r--r--japanese/im-ja/files/patch-src%Makefile.in19
-rw-r--r--japanese/im-ja/files/patch-src%hiragana-convertable.h27
-rw-r--r--japanese/im-ja/files/patch-src%hiragana-convertable.txt27
-rw-r--r--japanese/im-ja/files/patch-src%wnnlib.c12
-rw-r--r--japanese/im-ja/pkg-descr11
-rw-r--r--japanese/im-ja/pkg-plist39
11 files changed, 216 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 79eda7c47a10..34e177837795 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -100,6 +100,7 @@
SUBDIR += hex
SUBDIR += hns
SUBDIR += ical
+ SUBDIR += im-ja
SUBDIR += ipadic
SUBDIR += ircII
SUBDIR += iv
diff --git a/japanese/im-ja/Makefile b/japanese/im-ja/Makefile
new file mode 100644
index 000000000000..c6448b29bf2e
--- /dev/null
+++ b/japanese/im-ja/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: im-ja
+# Date created: 2003/09/02
+# Whom: Jacques Vidrine <nectar@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= im-ja
+PORTVERSION= 0.7.2
+CATEGORIES= japanese x11-toolkits
+MASTER_SITES= http://im-ja.sourceforge.net/
+DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.([0-9])$/-\1/}
+
+MAINTAINER= nectar@FreeBSD.org
+COMMENT= A Japanese input module for GTK2
+
+.if !defined(WITHOUT_CANNA)
+LIB_DEPENDS+= RKC.1:${PORTSDIR}/japanese/Canna
+.endif
+.if !defined(WITHOUT_WNN)
+LIB_DEPENDS+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
+.endif
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_GNOME= gnomeprefix gnomehack gtk20 gconf
+GNU_CONFIGURE= yes
+
+.if defined(WITHOUT_CANNA)
+CONFIGURE_ARGS+= --disable-canna
+.endif
+.if defined(WITHOUT_WNN)
+CONFIGURE_ARGS+= --disable-wnn
+.endif
+LIBS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
+CONFIGURE_ENV= LIBS="${LIBS}" CPPFLAGS="${CPPFLAGS}"
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.([0-9])$//}
+
+MAN1= im-ja-conf.1
+
+post-install:
+ ${X11BASE}/bin/gtk-query-immodules-2.0 > \
+ ${X11BASE}/etc/gtk-2.0/gtk.immodules
+
+.include <bsd.port.mk>
diff --git a/japanese/im-ja/distinfo b/japanese/im-ja/distinfo
new file mode 100644
index 000000000000..e12864cef70b
--- /dev/null
+++ b/japanese/im-ja/distinfo
@@ -0,0 +1 @@
+MD5 (im-ja-0.7-2.tar.gz) = b443120d1b61dc43d7553a13470365ff
diff --git a/japanese/im-ja/files/patch-configure b/japanese/im-ja/files/patch-configure
new file mode 100644
index 000000000000..492eb99c36dd
--- /dev/null
+++ b/japanese/im-ja/files/patch-configure
@@ -0,0 +1,12 @@
+*** configure.orig Tue Sep 2 17:14:05 2003
+--- configure Tue Sep 2 17:14:21 2003
+***************
+*** 7666,7671 ****
+--- 7666,7672 ----
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++ $ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff --git a/japanese/im-ja/files/patch-data%Makefile.in b/japanese/im-ja/files/patch-data%Makefile.in
new file mode 100644
index 000000000000..fe2574314605
--- /dev/null
+++ b/japanese/im-ja/files/patch-data%Makefile.in
@@ -0,0 +1,19 @@
+*** data/Makefile.in.orig Tue Sep 2 16:42:24 2003
+--- data/Makefile.in Tue Sep 2 16:43:15 2003
+***************
+*** 117,123 ****
+ VERSION = @VERSION@
+ WNN_INCLUDES = @WNN_INCLUDES@
+
+! sysconfdir = /etc
+ schemasdir = $(sysconfdir)/gconf/schemas
+ schemas_in_files = im-ja.schemas.in
+ schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
+--- 117,123 ----
+ VERSION = @VERSION@
+ WNN_INCLUDES = @WNN_INCLUDES@
+
+! sysconfdir = @sysconfdir@
+ schemasdir = $(sysconfdir)/gconf/schemas
+ schemas_in_files = im-ja.schemas.in
+ schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
diff --git a/japanese/im-ja/files/patch-src%Makefile.in b/japanese/im-ja/files/patch-src%Makefile.in
new file mode 100644
index 000000000000..6d9e2639e003
--- /dev/null
+++ b/japanese/im-ja/files/patch-src%Makefile.in
@@ -0,0 +1,19 @@
+*** src/Makefile.in.orig Tue Sep 2 15:57:53 2003
+--- src/Makefile.in Tue Sep 2 15:58:09 2003
+***************
+*** 547,553 ****
+
+
+ gtk.immodules: Makefile.am $(module_LTLIBRARIES)
+! /usr/bin/gtk-query-immodules-2.0 im-ja.la > gtk.immodules
+
+ all-local: gtk.immodules
+
+--- 547,553 ----
+
+
+ gtk.immodules: Makefile.am $(module_LTLIBRARIES)
+! gtk-query-immodules-2.0 im-ja.la > gtk.immodules
+
+ all-local: gtk.immodules
+
diff --git a/japanese/im-ja/files/patch-src%hiragana-convertable.h b/japanese/im-ja/files/patch-src%hiragana-convertable.h
new file mode 100644
index 000000000000..8ccfd2351c7b
--- /dev/null
+++ b/japanese/im-ja/files/patch-src%hiragana-convertable.h
@@ -0,0 +1,27 @@
+*** src/hiragana-convtable.h.orig Tue Sep 2 18:31:37 2003
+--- src/hiragana-convtable.h Tue Sep 2 18:31:44 2003
+***************
+*** 197,207 ****
+ { "\x62\x65", "\xE3\x81\xB9" },
+ { "\x62\x6F", "\xE3\x81\xBC" },
+
+! { "\x76\x61", "\xE3\x81\x86\xE3\x82\x9B\xE3\x81\x81" },
+! { "\x76\x69", "\xE3\x81\x86\xE3\x82\x9B\xE3\x81\x83" },
+! { "\x76\x75", "\xE3\x81\x86\xE3\x82\x9B" },
+! { "\x76\x65", "\xE3\x81\x86\xE3\x82\x9B\xE3\x81\x87" },
+! { "\x76\x6F", "\xE3\x81\x86\xE3\x82\x9B\xE3\x81\x89" },
+
+ { "\x70\x61", "\xE3\x81\xB1" },
+ { "\x70\x69", "\xE3\x81\xB4" },
+--- 197,207 ----
+ { "\x62\x65", "\xE3\x81\xB9" },
+ { "\x62\x6F", "\xE3\x81\xBC" },
+
+! { "\x76\x61", "\xE3\x83\xB4\xE3\x81\x81" },
+! { "\x76\x69", "\xE3\x83\xB4\xE3\x81\x83" },
+! { "\x76\x75", "\xE3\x83\xB4" },
+! { "\x76\x65", "\xE3\x83\xB4\xE3\x81\x87" },
+! { "\x76\x6F", "\xE3\x83\xB4\xE3\x81\x89" },
+
+ { "\x70\x61", "\xE3\x81\xB1" },
+ { "\x70\x69", "\xE3\x81\xB4" },
diff --git a/japanese/im-ja/files/patch-src%hiragana-convertable.txt b/japanese/im-ja/files/patch-src%hiragana-convertable.txt
new file mode 100644
index 000000000000..61cf056a34ba
--- /dev/null
+++ b/japanese/im-ja/files/patch-src%hiragana-convertable.txt
@@ -0,0 +1,27 @@
+*** src/hiragana-convtable.txt.orig Tue Sep 2 18:27:38 2003
+--- src/hiragana-convtable.txt Tue Sep 2 18:27:45 2003
+***************
+*** 195,205 ****
+ be べ
+ bo ぼ
+
+! va う゛ぁ
+! vi う゛ぃ
+! vu う゛
+! ve う゛ぇ
+! vo う゛ぉ
+
+ pa ぱ
+ pi ぴ
+--- 195,205 ----
+ be べ
+ bo ぼ
+
+! va ヴぁ
+! vi ヴぃ
+! vu ヴ
+! ve ヴぇ
+! vo ヴぉ
+
+ pa ぱ
+ pi ぴ
diff --git a/japanese/im-ja/files/patch-src%wnnlib.c b/japanese/im-ja/files/patch-src%wnnlib.c
new file mode 100644
index 000000000000..16f02f6a6099
--- /dev/null
+++ b/japanese/im-ja/files/patch-src%wnnlib.c
@@ -0,0 +1,12 @@
+*** src/wnnlib.c.orig Tue Sep 2 15:42:48 2003
+--- src/wnnlib.c Tue Sep 2 15:42:58 2003
+***************
+*** 585,590 ****
+--- 585,591 ----
+ #include <string.h>
+ #include <stdlib.h>
+ #include <pwd.h>
++ #include <unistd.h>
+
+ #ifndef ENVDIR
+ #define ENVDIR "/usr/share/wnn"
diff --git a/japanese/im-ja/pkg-descr b/japanese/im-ja/pkg-descr
new file mode 100644
index 000000000000..555020eae030
--- /dev/null
+++ b/japanese/im-ja/pkg-descr
@@ -0,0 +1,11 @@
+im-ja is a Japanese input module for GTK2.
+
+Currently supported input modes are: hiragana, katakana, half-width
+katakana, zenkaku, Canna, FreeWnn, and Kanji character recognition
+(based on Kanjipad).
+
+Conversion hotkeys, status window, preedit text colors, etc. can be
+customized through a GUI. An optional applet is also included for the
+gnome-panel which can be used to display and change the input method.
+
+WWW: http://im-ja.sourceforge.net/
diff --git a/japanese/im-ja/pkg-plist b/japanese/im-ja/pkg-plist
new file mode 100644
index 000000000000..8fea17def3d6
--- /dev/null
+++ b/japanese/im-ja/pkg-plist
@@ -0,0 +1,39 @@
+bin/im-ja-conf
+lib/gnome-panel/im-ja-applet
+lib/gtk-2.0/2.2.0/immodules/im-ja.so
+lib/im-ja/kpengine
+@dirrm lib/im-ja
+libdata/bonobo/servers/GNOME_ImJaApplet.server
+etc/gconf/schemas/im-ja.schemas
+share/gnome/control-center-2.0/capplets/im-ja.desktop
+share/gnome/gnome-2.0/ui/GNOME_ImJaApplet.xml
+share/gnome/im-ja/01.unistrok
+share/gnome/im-ja/02.unistrok
+share/gnome/im-ja/03.unistrok
+share/gnome/im-ja/04.unistrok
+share/gnome/im-ja/05.unistrok
+share/gnome/im-ja/06.unistrok
+share/gnome/im-ja/07.unistrok
+share/gnome/im-ja/08.unistrok
+share/gnome/im-ja/09.unistrok
+share/gnome/im-ja/10.unistrok
+share/gnome/im-ja/11.unistrok
+share/gnome/im-ja/12.unistrok
+share/gnome/im-ja/13.unistrok
+share/gnome/im-ja/14.unistrok
+share/gnome/im-ja/15.unistrok
+share/gnome/im-ja/16.unistrok
+share/gnome/im-ja/17.unistrok
+share/gnome/im-ja/18.unistrok
+share/gnome/im-ja/19.unistrok
+share/gnome/im-ja/20.unistrok
+share/gnome/im-ja/21.unistrok
+share/gnome/im-ja/22.unistrok
+share/gnome/im-ja/23.unistrok
+share/gnome/im-ja/im-ja-conf.glade
+@dirrm share/gnome/im-ja
+share/gnome/pixmaps/im-ja-about.jpg
+share/gnome/pixmaps/im-ja-capplet.png
+share/locale/ja/LC_MESSAGES/im-ja.mo
+@exec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
+@unexec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules