Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "A multilingual user input method library" |
| 2 | HOMEPAGE = "http://uim.freedesktop.org/" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "BSD-3-Clause & LGPL-2.0-or-later" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab2826b41ca0ff4030d38cc39791d1c8" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | SECTION = "inputmethods" |
| 6 | |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 7 | SRC_URI = "https://github.com/uim/uim/releases/download/${PV}/uim-${PV}.tar.bz2 \ |
| 8 | file://0001-Fix-to-set-libedit-path-from-configure-option-proper.patch \ |
Andrew Geissler | 2ee498a | 2020-05-29 15:52:06 -0500 | [diff] [blame] | 9 | file://JMP_BUF_GC_jmp_buf.patch \ |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 10 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | SRC_URI:append:class-target = "\ |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 12 | file://uim-module-manager.patch \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 13 | " |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 14 | SRC_URI[md5sum] = "01c7bd5d0d4f3a9f6f5befe6f57a470b" |
| 15 | SRC_URI[sha256sum] = "34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" |
| 18 | |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 19 | DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool libedit" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 20 | DEPENDS:append:class-target = " intltool-native gtk+ gtk+3 uim-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | RDEPENDS:uim = "libuim0 libedit" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 23 | RDEPENDS:uim-anthy = "anthy libanthy0" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | RDEPENDS:uim-anthy:append:libc-glibc = " glibc-utils glibc-gconv-euc-jp" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 25 | |
| 26 | LEAD_SONAME = "libuim.so.1" |
| 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | COMPATIBLE_HOST:riscv64 = "null" |
| 29 | COMPATIBLE_HOST:riscv32 = "null" |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 30 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 31 | inherit features_check autotools pkgconfig gettext qemu gtk-immodules-cache |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 32 | |
| 33 | REQUIRED_DISTRO_FEATURES = "x11" |
| 34 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | GTKIMMODULES_PACKAGES = "uim-gtk2.0 uim-gtk3" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 36 | |
| 37 | EXTRA_OECONF += "--disable-emacs \ |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 38 | --with-libedit=${STAGING_EXECPREFIXDIR} \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 39 | --without-scim \ |
| 40 | --without-m17nlib \ |
| 41 | --without-prime \ |
| 42 | --without-canna \ |
| 43 | --without-mana \ |
| 44 | --without-eb \ |
| 45 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 46 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | CONFIGUREOPTS:remove:class-target = "--disable-silent-rules" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 48 | |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 49 | # https://github.com/uim/uim/issues/44 |
| 50 | PARALLEL_MAKE = "" |
| 51 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 52 | #Because m4 file's find maxdepth=2, so copy the m4 files of the deep depth. |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | do_configure:prepend () { |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 54 | rm -rf ${S}/m4.generated/lt*.m4 ${S}/m4.generated/libtool.m4 |
| 55 | rm -rf ${S}/sigscheme/libgcroots/m4/lt*.m4 ${S}/sigscheme/libgcroots/m4/libtool.m4 |
| 56 | rm -rf ${S}/sigscheme/m4/lt*.m4 ${S}/sigscheme/m4/libtool.m4 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 57 | cp ${S}/sigscheme/m4/* ${S}/m4/ |
| 58 | } |
| 59 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 60 | do_install:append() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 61 | rm -rf ${D}/${datadir}/applications |
| 62 | } |
| 63 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 64 | PACKAGES =+ "uim-xim uim-utils uim-skk uim-gtk2.0 uim-gtk3 uim-fep uim-anthy uim-common libuim0 libuim-dev" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 65 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 66 | FILES:${PN} = "${bindir}/uim-help \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 67 | ${libdir}/uim/plugin/libuim-* \ |
| 68 | ${libdir}/libuim-scm* \ |
| 69 | ${libdir}/libgcroots* \ |
| 70 | ${libdir}/uim/plugin/libuim-* \ |
| 71 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 72 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 73 | FILES:libuim0 = "${libdir}/uim/plugin/libuim-custom-enabler.* \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 74 | ${libdir}/libuim-custom.so.* \ |
| 75 | ${datadir}/locale/ja/LC_MESSAGES/uim.mo \ |
| 76 | ${datadir}/locale/fr/LC_MESSAGES/uim.mo \ |
| 77 | ${datadir}/locale/ko/LC_MESSAGES/uim.mo \ |
| 78 | ${libdir}/libuim.so.* \ |
| 79 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 80 | FILES:libuim-dev = "${libdir}/libuim*.a \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 81 | ${libdir}/libuim*.la \ |
| 82 | ${libdir}/libuim*.so \ |
| 83 | ${includedir}/uim \ |
| 84 | ${libdir}/pkgconfig/uim.pc \ |
| 85 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 86 | FILES:uim-anthy = "${libdir}/uim/plugin/libuim-anthy.* \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 87 | ${datadir}/uim/anthy*.scm \ |
| 88 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 89 | FILES:${PN}-dbg += "${libdir}/*/*/*/.debug ${libdir}/*/*/.debug" |
| 90 | FILES:${PN}-dev += "${libdir}/uim/plugin/*.la" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 91 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 92 | FILES:uim-utils = "${bindir}/uim-sh \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 93 | ${bindir}/uim-module-manager \ |
| 94 | ${libexecdir}/uim-helper-server \ |
| 95 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 96 | FILES:uim-xim = "${bindir}/uim-xim \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 97 | ${libexecdir}/uim-candwin-*gtk \ |
| 98 | ${libexecdir}/uim-candwin-*gtk3 \ |
| 99 | ${datadir}/man/man1/uim-xim.1 \ |
| 100 | ${sysconfdir}/X11/xinit/xinput.d/uim* \ |
| 101 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 102 | FILES:uim-common = "${datadir}/uim/pixmaps/*.png \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 103 | ${datadir}/uim \ |
| 104 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 105 | FILES:uim-fep = "${bindir}/uim-fep*" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 106 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 107 | FILES:uim-gtk2.0 = "${libdir}/gtk-2.0 \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 108 | ${bindir}/uim-toolbar-gtk \ |
| 109 | ${bindir}/uim-toolbar-gtk-systray \ |
| 110 | ${bindir}/uim-*-gtk \ |
| 111 | ${bindir}/uim-input-pad-ja \ |
| 112 | ${libdir}/uim/uim-*-gtk \ |
| 113 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 114 | FILES:uim-gtk3 = "${libdir}/gtk-3.0 \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 115 | ${bindir}/uim-toolbar-gtk3 \ |
| 116 | ${bindir}/uim-toolbar-gtk3-systray \ |
| 117 | ${bindir}/uim-*-gtk3 \ |
| 118 | ${libdir}/uim/uim-*-gtk3 \ |
| 119 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 120 | FILES:uim-skk = "${libdir}/uim/plugin/libuim-skk.* \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 121 | ${datadir}/uim/skk*.scm \ |
| 122 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 123 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 124 | PACKAGE_WRITE_DEPS += "qemu-native" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 125 | pkg_postinst:uim-anthy() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 126 | if test -n "$D"; then |
| 127 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register anthy --path $D${datadir}/uim |
| 128 | else |
| 129 | uim-module-manager --register anthy --path ${datadir}/uim |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 130 | fi |
| 131 | } |
| 132 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 133 | pkg_prerm:uim-anthy() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 134 | if test -n "$D"; then |
| 135 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister anthy |
| 136 | else |
| 137 | uim-module-manager --path ${datadir}/uim --unregister anthy |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 138 | fi |
| 139 | } |
| 140 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 141 | pkg_postinst:uim-skk() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 142 | if test -n "$D"; then |
| 143 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register skk --path $D${datadir}/uim |
| 144 | else |
| 145 | uim-module-manager --register skk --path ${datadir}/uim |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 146 | fi |
| 147 | } |
| 148 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 149 | pkg_postrm:uim-skk() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 150 | if test -n "$D"; then |
| 151 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister skk |
| 152 | else |
| 153 | uim-module-manager --path ${datadir}/uim --unregister skk |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 154 | fi |
| 155 | } |
| 156 | |
| 157 | BBCLASSEXTEND = "native" |