summaryrefslogtreecommitdiff
path: root/recipes/uim
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/uim')
-rw-r--r--recipes/uim/files/uim-module-manager.patch11
-rw-r--r--recipes/uim/uim-native/uim-module-manager.patch0
-rw-r--r--recipes/uim/uim-native_1.3.1.bb8
-rw-r--r--recipes/uim/uim.inc19
-rw-r--r--recipes/uim/uim/uim-module-manager.patch11
-rw-r--r--recipes/uim/uim_1.3.1.bb145
6 files changed, 194 insertions, 0 deletions
diff --git a/recipes/uim/files/uim-module-manager.patch b/recipes/uim/files/uim-module-manager.patch
new file mode 100644
index 0000000000..8569bf39ef
--- /dev/null
+++ b/recipes/uim/files/uim-module-manager.patch
@@ -0,0 +1,11 @@
+--- uim-1.1.0/scm/Makefile.am~ 2006-06-09 10:46:12.000000000 +0900
++++ uim-1.1.0/scm/Makefile.am 2006-06-19 23:00:15.620000000 +0900
+@@ -58,7 +58,7 @@
+ module_names += "scim"
+ endif
+
+-UIM_MODULE_MANAGER = $(top_builddir)/uim/uim-module-manager
++UIM_MODULE_MANAGER = uim-module-manager
+ UIM_MODULE_MANAGER_ENV = \
+ LIBUIM_SCM_FILES=$(abs_srcdir) \
+ LIBUIM_PLUGIN_LIB_DIR=$(abs_top_builddir)/uim/.libs
diff --git a/recipes/uim/uim-native/uim-module-manager.patch b/recipes/uim/uim-native/uim-module-manager.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/recipes/uim/uim-native/uim-module-manager.patch
diff --git a/recipes/uim/uim-native_1.3.1.bb b/recipes/uim/uim-native_1.3.1.bb
new file mode 100644
index 0000000000..f23f6bd945
--- /dev/null
+++ b/recipes/uim/uim-native_1.3.1.bb
@@ -0,0 +1,8 @@
+require uim.inc
+DEPENDS = "gtk+ anthy intltool-native"
+inherit native autotools pkgconfig
+PR = "r2"
+
+S = "${WORKDIR}/uim-${PV}"
+
+EXTRA_OECONF += "--disable-xim"
diff --git a/recipes/uim/uim.inc b/recipes/uim/uim.inc
new file mode 100644
index 0000000000..b78d4019ac
--- /dev/null
+++ b/recipes/uim/uim.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "A multilingual user input method library"
+HOMEPAGE = "http://uim.freedesktop.org/"
+LICENSE = "GPL"
+SECTION = "inputmethods"
+
+EXTRA_OECONF += "--disable-applet \
+ --disable-emacs \
+# --without-qt \
+ --without-scim \
+ --without-m17nlib \
+ --without-prime \
+ --without-canna \
+ --without-mana \
+ --without-eb"
+
+SRC_URI = "http://uim.freedesktop.org/releases/uim/stable/uim-${PV}.tar.bz2"
+
+FILES_${PN}-dbg += "${libdir}/*/*/*/.debug ${libdir}/*/*/.debug"
+FILES_${PN}-dev += "${libdir}/uim/plugin/*.la"
diff --git a/recipes/uim/uim/uim-module-manager.patch b/recipes/uim/uim/uim-module-manager.patch
new file mode 100644
index 0000000000..8569bf39ef
--- /dev/null
+++ b/recipes/uim/uim/uim-module-manager.patch
@@ -0,0 +1,11 @@
+--- uim-1.1.0/scm/Makefile.am~ 2006-06-09 10:46:12.000000000 +0900
++++ uim-1.1.0/scm/Makefile.am 2006-06-19 23:00:15.620000000 +0900
+@@ -58,7 +58,7 @@
+ module_names += "scim"
+ endif
+
+-UIM_MODULE_MANAGER = $(top_builddir)/uim/uim-module-manager
++UIM_MODULE_MANAGER = uim-module-manager
+ UIM_MODULE_MANAGER_ENV = \
+ LIBUIM_SCM_FILES=$(abs_srcdir) \
+ LIBUIM_PLUGIN_LIB_DIR=$(abs_top_builddir)/uim/.libs
diff --git a/recipes/uim/uim_1.3.1.bb b/recipes/uim/uim_1.3.1.bb
new file mode 100644
index 0000000000..fce91c30e3
--- /dev/null
+++ b/recipes/uim/uim_1.3.1.bb
@@ -0,0 +1,145 @@
+require uim.inc
+DEPENDS = "gtk+ uim-native anthy fontconfig libxft xt glib-2.0 ncurses"
+SECTION_uim-gtk2.0 = "x11/inputmethods"
+PR = "r2"
+
+SRC_URI += "file://uim-module-manager.patch;patch=1"
+
+inherit autotools pkgconfig
+
+PACKAGES += "uim-xim uim-utils uim-skk uim-gtk2.0 uim-fep uim-common uim-anthy libuim0 libuim-dev"
+
+LEAD_SONAME = "libuim.so.1"
+RDEPENDS_uim = "libuim0"
+RDEPENDS_uim-anthy = "virtual/japanese-font"
+
+DESCRIPTION_libuim0 = "Simple and flexible input method collection and library"
+SECTION_libuim0 = "libs/inputmethods"
+FILES_libuim0 = "${libdir}/uim/plugin/libuim-custom-enabler.* \
+ ${libdir}/libuim-custom.so.* \
+ ${datadir}/locale/ja/LC_MESSAGES/uim.mo \
+ ${datadir}/locale/fr/LC_MESSAGES/uim.mo \
+ ${datadir}/locale/ko/LC_MESSAGES/uim.mo \
+ ${libdir}/libuim.so.*"
+
+DESCRIPTION_libuim-dev = "Development files for uim"
+SECTION_libuim-dev = "devel/libs"
+FILES_libuim-dev = "${libdir}/libuim*.a \
+ ${libdir}/libuim*.la \
+ ${libdir}/libuim*.so \
+ ${includedir}/uim \
+ ${libdir}/pkgconfig/uim.pc"
+
+DESCRIPTION_uim-anthy = "Anthy plugin for uim"
+FILES_uim-anthy = "${libdir}/uim/plugin/libuim-anthy.* \
+ ${datadir}/uim/anthy*.scm"
+
+pkg_postinst_uim-anthy() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --register anthy --path /etc/uim
+fi
+}
+
+pkg_postrm_uim-anthy() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --path /etc/uim --unregister anthy
+fi
+}
+
+pkg_prerm_uim-anthy() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --register anthy --path /etc/uim
+fi
+}
+
+DESCRIPTION_uim-fep = "uim Front End Processor"
+FILES_uim-fep = "${bindir}/uim-fep*"
+
+DESCRIPTION_uim-gtk2.0 = "GTK+2.x immodule for uim"
+FILES_uim-gtk2.0 = "${libdir}/gtk-2.0 \
+ ${bindir}/uim-toolbar-gtk* \
+ ${bindir}/uim-*-gtk \
+ ${bindir}/uim-input-pad-ja \
+ ${datadir}/uim/helperdata/uim-dict-ui.xml"
+
+pkg_postinst_uim-gtk2.0() {
+#! /bin/sh
+set -e
+gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+}
+
+#pkg_postrm_uim-gtk2.0() {
+##! /bin/sh
+#set -e
+#/usr/sbin/update-gtk-immodules
+#}
+
+DESCRIPTION_uim-skk = "SKK plugin for uim"
+FILES_uim-skk = "${libdir}/uim/plugin/libuim-skk.* \
+ ${datadir}/uim/skk*.scm"
+
+pkg_postinst_uim-skk() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --register skk --path /etc/uim
+fi
+}
+
+pkg_postrm_uim-skk() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --path /etc/uim --unregister skk
+fi
+}
+
+DESCRIPTION_uim-utils = "Utilities for uim"
+FILES_uim-utils = "${bindir}/uim-sh \
+ ${bindir}/uim-module-manager \
+ ${libexecdir}/uim-helper-server"
+
+DESCRIPTION_uim-xim = "A bridge between uim and XIM"
+FILES_uim-xim = "${bindir}/uim-xim \
+ ${libexecdir}/uim-candwin-gtk \
+ ${datadir}/man/man1/uim-xim.1 \
+ ${sysconfdir}/X11/xinit/xinput.d/uim*"
+
+# to .xinitrc, or .xsession
+#pkg_postinst_uim-xim() {
+#GTK_IM_MODULE=uim ; export GTK_IM_MODULE
+#QT_IM_MODULE=uim ; export QT_IM_MODULE
+#uim-xim &
+#XMODIFIERS=@im=uim ; export XMODIFIERS
+#}
+
+DESCRIPTION_uim-common = "Common files for uim"
+FILES_uim-common = "${datadir}/uim/pixmaps/*.png \
+ ${datadir}/uim"
+pkg_postinst_uim-common() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --path /etc/uim --register \
+ tutcode tcode hangul viqr ipa-x-sampa latin byeoru
+fi
+}
+
+pkg_prerm_uim-common() {
+#! /bin/sh
+set -e
+if [ -f /usr/bin/uim-module-manager ]; then
+ /usr/bin/uim-module-manager --path /etc/uim --register \
+ tutcode tcode hangul viqr ipa-x-sampa latin byeoru
+fi
+}
+
+do_stage() {
+ autotools_stage_all
+}