anchor.diff:      ${datadir}/uim/skk*.scm \
   "
   
  +PACKAGE_WRITE_DEPS += "qemu-native"
   pkg_postinst_uim-anthy() {
  -    if [ -f /usr/bin/uim-module-manager ]; then
  -        /usr/bin/uim-module-manager --register anthy --path /etc/uim
  -    fi
  -}
  -
  -pkg_postrm_uim-anthy() {
  -    if [ -f /usr/bin/uim-module-manager ]; then
  -        /usr/bin/uim-module-manager --path /etc/uim --unregister anthy
  +    if test -n "$D"; then
  +        ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register anthy --path $D${datadir}/uim
  +    else
  +		uim-module-manager --register anthy --path ${datadir}/uim
       fi
   }
   
   pkg_prerm_uim-anthy() {
  -    if [ -f /usr/bin/uim-module-manager ]; then
  -        /usr/bin/uim-module-manager --register anthy --path /etc/uim
  +    if test -n "$D"; then
  +        ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister anthy
  +    else
  +		uim-module-manager --path ${datadir}/uim --unregister anthy
       fi
   }
   
  
positive.code: }
  
  pkg_postinst_uim-skk() {
      if [ -f /usr/bin/uim-module-manager ]; then
          /usr/bin/uim-module-manager --register skk --path /etc/uim
      fi
  }
  
  pkg_postrm_uim-skk() {
      if [ -f /usr/bin/uim-module-manager ]; then
          /usr/bin/uim-module-manager --path /etc/uim --unregister skk
      fi
  }
  
  
negative.code: 
  LEAD_SONAME = "libuim.so.1"
  
  inherit autotools pkgconfig gettext qemu
  
  EXTRA_OECONF += "--disable-emacs \
      --without-scim \
  