anthy: port to anthy-unicode 1.0.0.20260213

Replace the long-dead anthy 9100h (last released 2009, fetched from an old
Ubuntu source tarball) with the maintained fork anthy-unicode, which is UTF-8
native and actively released on GitHub.

anthy-unicode renames its libraries (libanthy-unicode, libanthydic-unicode,
libanthyinput-unicode), pkg-config module file (anthy-unicode.pc), headers
(includedir/anthy-unicode-1.0/anthy), config file (anthy-unicode.conf) and
binaries (anthy-*-unicode). The recipe and packaging are updated accordingly:
libanthy-unicode0 for the runtime libraries and the standard PN-dev for the
development files.

The cross-compilation strategy is carried over from the old recipe: dictionary
generation runs helper programs (mkfiledic, mkworddic, mkdepgraph, calctrans,
proccorpus) that cannot execute when cross compiling. native-helpers.patch
promotes them to bin_PROGRAMS so anthy-unicode-native stages them into the
native sysroot; target-helpers.patch makes the target dictionary rules call
them from PATH instead of ./. not_build_elc.patch avoids byte-compiling the
Emacs lisp (no target Emacs under cross compilation). The patches are
regenerated against anthy-unicode's -unicode-suffixed libtool archives. The
legacy 2ch_t.patch is dropped; anthy-unicode has no mkanthydic/2ch.t.

uim is switched from the legacy EUC-JP anthy backend to the UTF-8
anthy-unicode backend it already supports: configure with --without-anthy
--with-anthy-utf8, DEPENDS on anthy-unicode, and the uim-anthy package is
renamed uim-anthy-utf8 (plugin libuim-anthy-utf8, anthy-utf8*.scm, module
registered as anthy-utf8) with RDEPENDS on libanthy-unicode0.

packagegroup-meta-oe: anthy -> anthy-unicode.

Verified by building anthy-unicode-native and anthy-unicode for
x86-64 (do_package_qa clean): the native helpers stage into the native
sysroot, the target build generates anthy.wdic/anthy.dep/anthy.dic via those
native helpers, and packaging splits into anthy-unicode, libanthy-unicode0 and
anthy-unicode-dev. uim variables verified by parse (it requires the x11
DISTRO_FEATURE, which the qemux86-64 yoe distro strips, so it is not buildable
in this configuration).

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj
2026-07-23 07:04:46 +00:00
parent 02a6510964
commit 86f430b5b6
10 changed files with 171 additions and 5223 deletions
@@ -705,7 +705,7 @@ RDEPENDS:packagegroup-meta-oe-shells = "\
RDEPENDS:packagegroup-meta-oe-support = "\ RDEPENDS:packagegroup-meta-oe-support = "\
ace-cloud-editor \ ace-cloud-editor \
anthy \ anthy-unicode \
asio \ asio \
atop \ atop \
augeas \ augeas \
@@ -0,0 +1,61 @@
Upstream-Status: Inappropriate [cross-compile specific]
Stage the native anthy-unicode helpers (mkfiledic, mkdepgraph, mkworddic,
calctrans, proccorpus) as bin_PROGRAMS so anthy-unicode-native installs them
into the native sysroot, where the target build's dictionary rules pick them
up from PATH (see target-helpers.patch).
Signed-off-by: Khem Raj <raj.khem@gmail.com>
diff --git a/calctrans/Makefile.am b/calctrans/Makefile.am
index a48867a..dc6af11 100644
--- a/calctrans/Makefile.am
+++ b/calctrans/Makefile.am
@@ -3,7 +3,7 @@ EXTRA_DIST =\
corpus.3.txt corpus.4.txt corpus.5.txt\
corpus_info weak_words
-noinst_PROGRAMS = calctrans proccorpus
+bin_PROGRAMS = calctrans proccorpus
INCLUDES = -I$(top_srcdir)/
calctrans_SOURCES = calctrans.c input_set.c input_set.h corpus.c
diff --git a/depgraph/Makefile.am b/depgraph/Makefile.am
index 468f90c..75b285c 100644
--- a/depgraph/Makefile.am
+++ b/depgraph/Makefile.am
@@ -9,7 +9,7 @@ CLEANFILES = anthy.dep
EXTRA_DIST = indepword.txt $(DEPWORDS)
# Generate the dictionary
-noinst_PROGRAMS = mkdepgraph
+bin_PROGRAMS = mkdepgraph
mkdepgraph_SOURCES = mkdepgraph.c
mkdepgraph_LDADD = ../src-main/libanthy-unicode.la ../src-worddic/libanthydic-unicode.la
diff --git a/mkanthydic/Makefile.am b/mkanthydic/Makefile.am
index dfabff6..1c665eb 100644
--- a/mkanthydic/Makefile.am
+++ b/mkanthydic/Makefile.am
@@ -3,7 +3,7 @@ noinst_SCRIPTS =
CLEANFILES = anthy.dic
INCLUDES = -I$(top_srcdir)/ -DSRCDIR=\"$(srcdir)\"
-noinst_PROGRAMS = mkfiledic
+bin_PROGRAMS = mkfiledic
mkfiledic_SOURCES = mkfiledic.c
mkfiledic_LDADD = ../src-diclib/libdiclib.la
diff --git a/mkworddic/Makefile.am b/mkworddic/Makefile.am
index d9b262e..b0a9e01 100644
--- a/mkworddic/Makefile.am
+++ b/mkworddic/Makefile.am
@@ -26,7 +26,7 @@ DIC_FILES = @top_srcdir@/alt-cannadic/gcanna.ctd \
@top_srcdir@/mkworddic/udict
# Generate the dictionary
-noinst_PROGRAMS = mkworddic
+bin_PROGRAMS = mkworddic
mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
mkworddic_LDADD = ../src-worddic/libanthydic-unicode.la
@@ -0,0 +1,23 @@
Upstream-Status: Inappropriate [cross-compile specific]
Do not byte-compile the Emacs lisp files at build time; there is no target
Emacs available under cross compilation. The .el sources are still shipped.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
diff --git a/src-util/Makefile.am b/src-util/Makefile.am
index c51c076..7ccad01 100644
--- a/src-util/Makefile.am
+++ b/src-util/Makefile.am
@@ -16,10 +16,7 @@ bin_PROGRAMS = \
anthy-agent-unicode \
anthy-morphological-analyzer-unicode \
$(NULL)
-ELCFILES = anthy-unicode.elc anthy-unicode-azik.elc anthy-unicode-conf.elc \
- anthy-unicode-dic.elc anthy-unicode-isearch.elc anthy-unicode-kyuri.elc \
- leim-list.elc \
- $(NULL)
+ELCFILES =
if ELISP
lisp_LISP = $(ELISP_FILES)
endif
@@ -1,9 +1,18 @@
Upstream-Status: Pending Upstream-Status: Inappropriate [cross-compile specific]
diff -Nurp anthy-9100h.org/calctrans/Makefile.am anthy-9100h/calctrans/Makefile.am For the target build, do not compile or run the dictionary-generation helpers
--- anthy-9100h.org/calctrans/Makefile.am 2007-10-27 23:02:59.000000000 +0900 (mkfiledic, mkdepgraph, mkworddic, calctrans, proccorpus) locally -- they are
+++ anthy-9100h/calctrans/Makefile.am 2014-11-11 17:14:42.152999991 +0900 built by anthy-unicode-native and installed into the native sysroot. Drop the
@@ -15,31 +15,31 @@ dict_source_files = anthy.cand_info anth "./" prefix from the dictionary rules so the helpers are taken from PATH, and
disable the local build of the helpers that also provide libraries.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
diff --git a/calctrans/Makefile.am b/calctrans/Makefile.am
index a48867a..b47b6af 100644
--- a/calctrans/Makefile.am
+++ b/calctrans/Makefile.am
@@ -15,31 +15,31 @@ dict_source_files = anthy.cand_info anthy.trans_info anthy.corpus_array anthy.co
update_params: update_params:
rm -f parsed_data2 rm -f parsed_data2
@@ -47,19 +56,20 @@ diff -Nurp anthy-9100h.org/calctrans/Makefile.am anthy-9100h/calctrans/Makefile.
noinst_DATA = $(dict_source_files) noinst_DATA = $(dict_source_files)
CLEANFILES = $(dict_source_files) parsed_data parsed_data2 anthy.feature_info CLEANFILES = $(dict_source_files) parsed_data parsed_data2 anthy.feature_info
diff -Nurp anthy-9100h.org/depgraph/Makefile.am anthy-9100h/depgraph/Makefile.am diff --git a/depgraph/Makefile.am b/depgraph/Makefile.am
--- anthy-9100h.org/depgraph/Makefile.am 2008-11-29 21:46:14.000000000 +0900 index 468f90c..1f3de05 100644
+++ anthy-9100h/depgraph/Makefile.am 2014-11-11 17:12:03.813999991 +0900 --- a/depgraph/Makefile.am
+++ b/depgraph/Makefile.am
@@ -9,11 +9,11 @@ CLEANFILES = anthy.dep @@ -9,11 +9,11 @@ CLEANFILES = anthy.dep
EXTRA_DIST = indepword.txt $(DEPWORDS) EXTRA_DIST = indepword.txt $(DEPWORDS)
# Generate the dictionary # Generate the dictionary
-noinst_PROGRAMS = mkdepgraph -noinst_PROGRAMS = mkdepgraph
-mkdepgraph_SOURCES = mkdepgraph.c -mkdepgraph_SOURCES = mkdepgraph.c
-mkdepgraph_LDADD = ../src-main/libanthy.la ../src-worddic/libanthydic.la -mkdepgraph_LDADD = ../src-main/libanthy-unicode.la ../src-worddic/libanthydic-unicode.la
+#noinst_PROGRAMS = mkdepgraph +#noinst_PROGRAMS = mkdepgraph
+#mkdepgraph_SOURCES = mkdepgraph.c +#mkdepgraph_SOURCES = mkdepgraph.c
+#mkdepgraph_LDADD = ../src-main/libanthy.la ../src-worddic/libanthydic.la +#mkdepgraph_LDADD = ../src-main/libanthy-unicode.la ../src-worddic/libanthydic-unicode.la
-anthy.dep : mkdepgraph $(DEPWORDS) -anthy.dep : mkdepgraph $(DEPWORDS)
- ./mkdepgraph - ./mkdepgraph
@@ -67,9 +77,10 @@ diff -Nurp anthy-9100h.org/depgraph/Makefile.am anthy-9100h/depgraph/Makefile.am
+ mkdepgraph + mkdepgraph
noinst_DATA = anthy.dep noinst_DATA = anthy.dep
diff -Nurp anthy-9100h.org/mkanthydic/Makefile.am anthy-9100h/mkanthydic/Makefile.am diff --git a/mkanthydic/Makefile.am b/mkanthydic/Makefile.am
--- anthy-9100h.org/mkanthydic/Makefile.am 2007-04-14 18:01:10.000000000 +0900 index dfabff6..d1109cc 100644
+++ anthy-9100h/mkanthydic/Makefile.am 2014-11-11 17:10:34.792999991 +0900 --- a/mkanthydic/Makefile.am
+++ b/mkanthydic/Makefile.am
@@ -3,12 +3,12 @@ noinst_SCRIPTS = @@ -3,12 +3,12 @@ noinst_SCRIPTS =
CLEANFILES = anthy.dic CLEANFILES = anthy.dic
INCLUDES = -I$(top_srcdir)/ -DSRCDIR=\"$(srcdir)\" INCLUDES = -I$(top_srcdir)/ -DSRCDIR=\"$(srcdir)\"
@@ -88,19 +99,20 @@ diff -Nurp anthy-9100h.org/mkanthydic/Makefile.am anthy-9100h/mkanthydic/Makefil
# To install # To install
diff -Nurp anthy-9100h.org/mkworddic/Makefile.am anthy-9100h/mkworddic/Makefile.am diff --git a/mkworddic/Makefile.am b/mkworddic/Makefile.am
--- anthy-9100h.org/mkworddic/Makefile.am 2009-01-23 12:31:31.000000000 +0900 index d9b262e..6a8a54c 100644
+++ anthy-9100h/mkworddic/Makefile.am 2014-11-11 17:13:31.946999992 +0900 --- a/mkworddic/Makefile.am
@@ -26,14 +26,14 @@ DIC_FILES = @top_srcdir@/alt-cannadic/gc +++ b/mkworddic/Makefile.am
@@ -26,14 +26,14 @@ DIC_FILES = @top_srcdir@/alt-cannadic/gcanna.ctd \
@top_srcdir@/mkworddic/udict @top_srcdir@/mkworddic/udict
# Generate the dictionary # Generate the dictionary
-noinst_PROGRAMS = mkworddic -noinst_PROGRAMS = mkworddic
-mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h -mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
-mkworddic_LDADD = ../src-worddic/libanthydic.la -mkworddic_LDADD = ../src-worddic/libanthydic-unicode.la
+#noinst_PROGRAMS = mkworddic +#noinst_PROGRAMS = mkworddic
+#mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h +#mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
+#mkworddic_LDADD = ../src-worddic/libanthydic.la +#mkworddic_LDADD = ../src-worddic/libanthydic-unicode.la
noinst_DATA = anthy.wdic noinst_DATA = anthy.wdic
@@ -0,0 +1,41 @@
DESCRIPTION = "Anthy Unicode is a maintained fork of the Anthy Japanese input \
method. It converts Hiragana text to Kana Kanji mixed text and works in UTF-8."
HOMEPAGE = "https://github.com/fujiwarat/anthy-unicode"
LICENSE = "GPL-2.0-only AND LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=5f37c94ff7ea73f8ed6ce61216611051 \
file://alt-cannadic/COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b \
"
SRC_URI = "https://github.com/fujiwarat/anthy-unicode/releases/download/${PV}/anthy-unicode-${PV}.tar.gz \
file://not_build_elc.patch \
"
SRC_URI:append:class-target = " file://target-helpers.patch"
SRC_URI:append:class-native = " file://native-helpers.patch"
SRC_URI[sha256sum] = "666e91b92c76eb5bee7ee88dca1478eb55122c2af2641f055d4e51cf9d904860"
UPSTREAM_CHECK_URI = "https://github.com/fujiwarat/anthy-unicode/releases"
UPSTREAM_CHECK_REGEX = "anthy-unicode-(?P<pver>\d+(\.\d+)+)"
DEPENDS:class-target = "anthy-unicode-native"
RDEPENDS:${PN}:class-target = "libanthy-unicode0"
inherit autotools pkgconfig
PACKAGES += "${PN}-el libanthy-unicode0"
FILES:${PN}-dbg += "${libdir}/.debug"
FILES:libanthy-unicode0 = "${libdir}/libanthy-unicode.so.* \
${libdir}/libanthydic-unicode.so.* \
${libdir}/libanthyinput-unicode.so.* \
"
FILES:${PN}-el = "${datadir}/emacs/*"
FILES:${PN} = "${datadir}/* \
${bindir}/* \
${sysconfdir}/anthy-unicode.conf \
"
BBCLASSEXTEND = "native"
File diff suppressed because it is too large Load Diff
@@ -1,60 +0,0 @@
Upstream-Status: Pending
upstream: not applicable
author: pH5
comment: Stage the native anthy helpers mkfiledic, mkdepgraph, mkworddic,
comment: calctrans and proccorpus.
Index: anthy-9100h/mkanthydic/Makefile.am
===================================================================
--- anthy-9100h.orig/mkanthydic/Makefile.am
+++ anthy-9100h/mkanthydic/Makefile.am
@@ -3,7 +3,7 @@ noinst_SCRIPTS =
CLEANFILES = anthy.dic
INCLUDES = -I$(top_srcdir)/ -DSRCDIR=\"$(srcdir)\"
-noinst_PROGRAMS = mkfiledic
+bin_PROGRAMS = mkfiledic
mkfiledic_SOURCES = mkfiledic.c
mkfiledic_LDADD = ../src-diclib/libdiclib.la
Index: anthy-9100h/depgraph/Makefile.am
===================================================================
--- anthy-9100h.orig/depgraph/Makefile.am
+++ anthy-9100h/depgraph/Makefile.am
@@ -9,7 +9,7 @@ CLEANFILES = anthy.dep
EXTRA_DIST = indepword.txt $(DEPWORDS)
# Generate the dictionary
-noinst_PROGRAMS = mkdepgraph
+bin_PROGRAMS = mkdepgraph
mkdepgraph_SOURCES = mkdepgraph.c
mkdepgraph_LDADD = ../src-main/libanthy.la ../src-worddic/libanthydic.la
Index: anthy-9100h/mkworddic/Makefile.am
===================================================================
--- anthy-9100h.orig/mkworddic/Makefile.am
+++ anthy-9100h/mkworddic/Makefile.am
@@ -26,7 +26,8 @@ DIC_FILES = @top_srcdir@/alt-cannadic/gc
@top_srcdir@/mkworddic/udict
# Generate the dictionary
-noinst_PROGRAMS = mkworddic
+#noinst_PROGRAMS = mkworddic
+bin_PROGRAMS = mkworddic
mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
mkworddic_LDADD = ../src-worddic/libanthydic.la
Index: anthy-9100h/calctrans/Makefile.am
===================================================================
--- anthy-9100h.orig/calctrans/Makefile.am
+++ anthy-9100h/calctrans/Makefile.am
@@ -3,7 +3,7 @@ EXTRA_DIST =\
corpus.3.txt corpus.4.txt corpus.5.txt\
corpus_info weak_words
-noinst_PROGRAMS = calctrans proccorpus
+bin_PROGRAMS = calctrans proccorpus
INCLUDES = -I$(top_srcdir)/
calctrans_SOURCES = calctrans.c input_set.c input_set.h corpus.c
@@ -1,19 +0,0 @@
Upstream-Status: Pending
upstream: not applicable
source: stolen from debian
Index: anthy-9100h/src-util/Makefile.am
===================================================================
--- anthy-9100h.orig/src-util/Makefile.am
+++ anthy-9100h/src-util/Makefile.am
@@ -8,7 +8,8 @@ ELISP_FILES = anthy.el anthy-dic.el anth
anthy-isearch.el anthy-azik.el anthy-kyuri.el
EXTRA_DIST = $(ELISP_FILES) typetab dic-tool-usage.txt anthy.i
bin_PROGRAMS = anthy-dic-tool anthy-agent anthy-morphological-analyzer
-ELCFILES = anthy.elc anthy-dic.elc anthy-azik.elc anthy-conf.elc anthy-isearch.elc anthy-kyuri.elc leim-list.elc
+#ELCFILES = anthy.elc anthy-dic.elc anthy-azik.elc anthy-conf.elc anthy-isearch.elc anthy-kyuri.elc leim-list.elc
+ELCFILES =
if ELISP
lisp_LISP = $(ELISP_FILES)
endif
@@ -1,48 +0,0 @@
DESCRIPTION = "Anthy is a system for Japanese input method. It converts Hiragana text to Kana Kanji mixed text."
HOMEPAGE = "http://anthy.sourceforge.jp"
LICENSE = "GPL-2.0-only AND LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=11f384074d8e93e263b5664ef08a411a \
file://alt-cannadic/COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b \
"
SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/anthy/9100h-23ubuntu2/anthy_9100h.orig.tar.gz \
file://not_build_elc.patch \
file://2ch_t.patch \
"
SRC_URI:append:class-target = " file://target-helpers.patch"
SRC_URI:append:class-native = " file://native-helpers.patch"
SRC_URI[sha256sum] = "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547"
UPSTREAM_CHECK_URI = "https://osdn.net/projects/anthy/releases/"
UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>(\d+)+(\w*))"
DEPENDS:class-target = "anthy-native"
RDEPENDS:${PN}:class-target = "libanthy0"
inherit autotools pkgconfig
PACKAGES += "${PN}-el libanthy0 libanthy-dev"
FILES:${PN}-dbg += "${libdir}/.debug"
FILES:libanthy0 = "${libdir}/libanthy.so.* \
${libdir}/libanthydic.so.* \
${libdir}/libanthyinput.so.* \
"
FILES:libanthy-dev = "${libdir}/libanthy*.la \
${libdir}/libanthy*.a \
${libdir}/libanthy*.so \
${includedir}/anthy \
${libdir}/pkgconfig/anthy.pc \
"
FILES:${PN}-el = "${datadir}/emacs/*"
FILES:${PN} = "${datadir}/* \
${bindir}/* \
${sysconfdir}/anthy-conf \
"
BBCLASSEXTEND = "native"
+14 -12
View File
@@ -13,12 +13,12 @@ SRC_URI[sha256sum] = "67f0e5fa4292a533edc6f98b842df60c531a89cf82d0336a4e1ab72202
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool libedit autoconf-archive-native" DEPENDS = "anthy-unicode fontconfig libxft libxt glib-2.0 ncurses intltool libedit autoconf-archive-native"
DEPENDS:append:class-target = " intltool-native gtk+ gtk+3 uim-native" DEPENDS:append:class-target = " intltool-native gtk+ gtk+3 uim-native"
RDEPENDS:uim = "libuim0 libedit" RDEPENDS:uim = "libuim0 libedit"
RDEPENDS:uim-anthy = "anthy libanthy0" RDEPENDS:uim-anthy-utf8 = "libanthy-unicode0"
RDEPENDS:uim-anthy:append:libc-glibc = " glibc-utils glibc-gconv-euc-jp" RDEPENDS:uim-anthy-utf8:append:libc-glibc = " glibc-utils glibc-gconv-euc-jp"
LEAD_SONAME = "libuim.so.1" LEAD_SONAME = "libuim.so.1"
@@ -33,6 +33,8 @@ GTKIMMODULES_PACKAGES = "uim-gtk2.0 uim-gtk3"
EXTRA_OECONF += "--disable-emacs \ EXTRA_OECONF += "--disable-emacs \
--with-libedit=${STAGING_EXECPREFIXDIR} \ --with-libedit=${STAGING_EXECPREFIXDIR} \
--without-anthy \
--with-anthy-utf8 \
--without-scim \ --without-scim \
--without-m17nlib \ --without-m17nlib \
--without-prime \ --without-prime \
@@ -65,7 +67,7 @@ do_install:append() {
rm -rf ${D}${datadir}/applications rm -rf ${D}${datadir}/applications
} }
PACKAGES =+ "uim-xim uim-utils uim-skk uim-gtk2.0 uim-gtk3 uim-fep uim-anthy uim-common libuim0 libuim-dev" PACKAGES =+ "uim-xim uim-utils uim-skk uim-gtk2.0 uim-gtk3 uim-fep uim-anthy-utf8 uim-common libuim0 libuim-dev"
FILES:${PN} = "${bindir}/uim-help \ FILES:${PN} = "${bindir}/uim-help \
${libdir}/uim/plugin/libuim-* \ ${libdir}/uim/plugin/libuim-* \
@@ -87,8 +89,8 @@ FILES:libuim-dev = "${libdir}/libuim*.a \
${includedir}/uim \ ${includedir}/uim \
${libdir}/pkgconfig/uim.pc \ ${libdir}/pkgconfig/uim.pc \
" "
FILES:uim-anthy = "${libdir}/uim/plugin/libuim-anthy.* \ FILES:uim-anthy-utf8 = "${libdir}/uim/plugin/libuim-anthy-utf8.* \
${datadir}/uim/anthy*.scm \ ${datadir}/uim/anthy-utf8*.scm \
" "
FILES:${PN}-dbg += "${libdir}/*/*/*/.debug ${libdir}/*/*/.debug" FILES:${PN}-dbg += "${libdir}/*/*/*/.debug ${libdir}/*/*/.debug"
FILES:${PN}-dev += "${libdir}/uim/plugin/*.la" FILES:${PN}-dev += "${libdir}/uim/plugin/*.la"
@@ -126,19 +128,19 @@ FILES:uim-skk = "${libdir}/uim/plugin/libuim-skk.* \
" "
PACKAGE_WRITE_DEPS += "qemu-native" PACKAGE_WRITE_DEPS += "qemu-native"
pkg_postinst:uim-anthy() { pkg_postinst:uim-anthy-utf8() {
if test -n "$D"; then if test -n "$D"; then
${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register anthy --path $D${datadir}/uim ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register anthy-utf8 --path $D${datadir}/uim
else else
uim-module-manager --register anthy --path ${datadir}/uim uim-module-manager --register anthy-utf8 --path ${datadir}/uim
fi fi
} }
pkg_prerm:uim-anthy() { pkg_prerm:uim-anthy-utf8() {
if test -n "$D"; then if test -n "$D"; then
${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister anthy ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister anthy-utf8
else else
uim-module-manager --path ${datadir}/uim --unregister anthy uim-module-manager --path ${datadir}/uim --unregister anthy-utf8
fi fi
} }