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/" |
| 3 | LICENSE = "BSD-3-Clause & LGPLv2+" |
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 \ |
| 9 | " |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 10 | SRC_URI_append_class-target = "\ |
| 11 | file://uim-module-manager.patch \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 12 | " |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 13 | SRC_URI[md5sum] = "01c7bd5d0d4f3a9f6f5befe6f57a470b" |
| 14 | SRC_URI[sha256sum] = "34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 16 | DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool libedit" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | DEPENDS_append_class-target = " intltool-native gtk+ gtk+3 uim-native takao-fonts" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | |
| 19 | RDEPENDS_uim = "libuim0 libedit" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0" |
| 21 | RDEPENDS_uim-anthy_append_libc-glibc = " glibc-utils glibc-gconv-euc-jp" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | |
| 23 | LEAD_SONAME = "libuim.so.1" |
| 24 | |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame^] | 25 | COMPATIBLE_HOST_riscv64 = "null" |
| 26 | COMPATIBLE_HOST_riscv32 = "null" |
| 27 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | inherit distro_features_check autotools pkgconfig gettext qemu gtk-immodules-cache |
| 29 | |
| 30 | REQUIRED_DISTRO_FEATURES = "x11" |
| 31 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 32 | GTKIMMODULES_PACKAGES = "uim-gtk2.0 uim-gtk3" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | |
| 34 | EXTRA_OECONF += "--disable-emacs \ |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame^] | 35 | --with-libedit=${STAGING_EXECPREFIXDIR} \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 36 | --without-scim \ |
| 37 | --without-m17nlib \ |
| 38 | --without-prime \ |
| 39 | --without-canna \ |
| 40 | --without-mana \ |
| 41 | --without-eb \ |
| 42 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | |
| 44 | CONFIGUREOPTS_remove_class-target = "--disable-silent-rules" |
| 45 | |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 46 | # https://github.com/uim/uim/issues/44 |
| 47 | PARALLEL_MAKE = "" |
| 48 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 49 | #Because m4 file's find maxdepth=2, so copy the m4 files of the deep depth. |
| 50 | do_configure_prepend () { |
| 51 | cp ${S}/sigscheme/m4/* ${S}/m4/ |
| 52 | } |
| 53 | |
| 54 | do_install_append() { |
| 55 | rm -rf ${D}/${datadir}/applications |
| 56 | } |
| 57 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 58 | 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] | 59 | |
| 60 | FILES_${PN} = "${bindir}/uim-help \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 61 | ${libdir}/uim/plugin/libuim-* \ |
| 62 | ${libdir}/libuim-scm* \ |
| 63 | ${libdir}/libgcroots* \ |
| 64 | ${libdir}/uim/plugin/libuim-* \ |
| 65 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 66 | |
| 67 | FILES_libuim0 = "${libdir}/uim/plugin/libuim-custom-enabler.* \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 68 | ${libdir}/libuim-custom.so.* \ |
| 69 | ${datadir}/locale/ja/LC_MESSAGES/uim.mo \ |
| 70 | ${datadir}/locale/fr/LC_MESSAGES/uim.mo \ |
| 71 | ${datadir}/locale/ko/LC_MESSAGES/uim.mo \ |
| 72 | ${libdir}/libuim.so.* \ |
| 73 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 74 | FILES_libuim-dev = "${libdir}/libuim*.a \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 75 | ${libdir}/libuim*.la \ |
| 76 | ${libdir}/libuim*.so \ |
| 77 | ${includedir}/uim \ |
| 78 | ${libdir}/pkgconfig/uim.pc \ |
| 79 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 80 | FILES_uim-anthy = "${libdir}/uim/plugin/libuim-anthy.* \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 81 | ${datadir}/uim/anthy*.scm \ |
| 82 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 83 | FILES_${PN}-dbg += "${libdir}/*/*/*/.debug ${libdir}/*/*/.debug" |
| 84 | FILES_${PN}-dev += "${libdir}/uim/plugin/*.la" |
| 85 | |
| 86 | FILES_uim-utils = "${bindir}/uim-sh \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 87 | ${bindir}/uim-module-manager \ |
| 88 | ${libexecdir}/uim-helper-server \ |
| 89 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 90 | FILES_uim-xim = "${bindir}/uim-xim \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 91 | ${libexecdir}/uim-candwin-*gtk \ |
| 92 | ${libexecdir}/uim-candwin-*gtk3 \ |
| 93 | ${datadir}/man/man1/uim-xim.1 \ |
| 94 | ${sysconfdir}/X11/xinit/xinput.d/uim* \ |
| 95 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 96 | FILES_uim-common = "${datadir}/uim/pixmaps/*.png \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 97 | ${datadir}/uim \ |
| 98 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 99 | FILES_uim-fep = "${bindir}/uim-fep*" |
| 100 | |
| 101 | FILES_uim-gtk2.0 = "${libdir}/gtk-2.0 \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 102 | ${bindir}/uim-toolbar-gtk \ |
| 103 | ${bindir}/uim-toolbar-gtk-systray \ |
| 104 | ${bindir}/uim-*-gtk \ |
| 105 | ${bindir}/uim-input-pad-ja \ |
| 106 | ${libdir}/uim/uim-*-gtk \ |
| 107 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 108 | FILES_uim-gtk3 = "${libdir}/gtk-3.0 \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 109 | ${bindir}/uim-toolbar-gtk3 \ |
| 110 | ${bindir}/uim-toolbar-gtk3-systray \ |
| 111 | ${bindir}/uim-*-gtk3 \ |
| 112 | ${libdir}/uim/uim-*-gtk3 \ |
| 113 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 114 | FILES_uim-skk = "${libdir}/uim/plugin/libuim-skk.* \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 115 | ${datadir}/uim/skk*.scm \ |
| 116 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 117 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 118 | PACKAGE_WRITE_DEPS += "qemu-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 119 | pkg_postinst_uim-anthy() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 120 | if test -n "$D"; then |
| 121 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register anthy --path $D${datadir}/uim |
| 122 | else |
| 123 | uim-module-manager --register anthy --path ${datadir}/uim |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 124 | fi |
| 125 | } |
| 126 | |
| 127 | pkg_prerm_uim-anthy() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 128 | if test -n "$D"; then |
| 129 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister anthy |
| 130 | else |
| 131 | uim-module-manager --path ${datadir}/uim --unregister anthy |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 132 | fi |
| 133 | } |
| 134 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 135 | pkg_postinst_uim-skk() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 136 | if test -n "$D"; then |
| 137 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register skk --path $D${datadir}/uim |
| 138 | else |
| 139 | uim-module-manager --register skk --path ${datadir}/uim |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 140 | fi |
| 141 | } |
| 142 | |
| 143 | pkg_postrm_uim-skk() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 144 | if test -n "$D"; then |
| 145 | ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister skk |
| 146 | else |
| 147 | uim-module-manager --path ${datadir}/uim --unregister skk |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 148 | fi |
| 149 | } |
| 150 | |
| 151 | BBCLASSEXTEND = "native" |