summaryrefslogtreecommitdiff
path: root/inputmethod/uim/files/modules.tmpl
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-05-31 14:22:38 +0000
committerobache <obache@pkgsrc.org>2014-05-31 14:22:38 +0000
commite32185c9b7142ec7c9ca3851c85f110fbaaa9a83 (patch)
tree236cf5d156ab9774ec0fe5308df24a8f1c9eb261 /inputmethod/uim/files/modules.tmpl
parent1b6212fffc9dceabe11ba926c85d82080295b613 (diff)
downloadpkgsrc-e32185c9b7142ec7c9ca3851c85f110fbaaa9a83.tar.gz
Introduce UIM module handling framework.
Switch to use it even on UIM base package. Bump PKGREVISION.
Diffstat (limited to 'inputmethod/uim/files/modules.tmpl')
-rw-r--r--inputmethod/uim/files/modules.tmpl22
1 files changed, 22 insertions, 0 deletions
diff --git a/inputmethod/uim/files/modules.tmpl b/inputmethod/uim/files/modules.tmpl
new file mode 100644
index 00000000000..2d9058eb9a5
--- /dev/null
+++ b/inputmethod/uim/files/modules.tmpl
@@ -0,0 +1,22 @@
+# $NetBSD: modules.tmpl,v 1.1 2014/05/31 14:22:38 obache Exp $
+#
+# Manager UIM modules
+#
+
+case ${STAGE} in
+POST-INSTALL)
+ if [ "${PKGBASE}" = "uim" ]; then
+ cd @UIM_MODULE_LIST_DIR@ && \
+ @UIM_MODULE_MANAGER@ --register *
+ else
+ @UIM_MODULE_MANAGER@ --register @UIM_MODULES@
+ fi
+ ;;
+DEINSTALL)
+ if [ "${PKGBASE}" = "uim" ]; then
+ @UIM_MODULE_MANAGER@ --unregister-all
+ else
+ @UIM_MODULE_MANAGER@ --unregister @UIM_MODULES@
+ fi
+ ;;
+esac