summaryrefslogtreecommitdiff
path: root/devel/glib2/INSTALL
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2011-02-20 17:40:54 +0000
committerjmmv <jmmv@pkgsrc.org>2011-02-20 17:40:54 +0000
commit35b750b3ceea81e61d799a9fba9ebce0cdab67c5 (patch)
tree2664a6be1d01dd12688864d925bf133a72e96651 /devel/glib2/INSTALL
parent06212378af641629f04fe4d4119a2f1b747753da (diff)
downloadpkgsrc-35b750b3ceea81e61d799a9fba9ebce0cdab67c5.tar.gz
Forcibly delete any stale cache files during deinstall. For example, the
gio-querymodules utility does not delete the file when no modules are left, so we were left with a giomodule.cache file after removing glib2 that was not managed by any package. Also, and as a side effect, ensure that the files are created during install time so that in-place updates work correctly. Bump PKGREVISION to 2.
Diffstat (limited to 'devel/glib2/INSTALL')
-rw-r--r--devel/glib2/INSTALL19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/glib2/INSTALL b/devel/glib2/INSTALL
new file mode 100644
index 00000000000..c068471e20d
--- /dev/null
+++ b/devel/glib2/INSTALL
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1 2011/02/20 17:40:54 jmmv Exp $
+#
+# Generate caches after installing the glib2 package. This is theorically
+# not needed for a fresh install but is required for in-place updates to
+# work correctly.
+
+GIO_MODULES_DIR="@GIO_MODULES_DIR@"
+GIO_QUERYMODULES="@GIO_QUERYMODULES@"
+GLIB_COMPILE_SCHEMAS="@GLIB_COMPILE_SCHEMAS@"
+GLIB_SCHEMAS_DIR="@GLIB_SCHEMAS_DIR@"
+
+case ${STAGE} in
+POST-INSTALL)
+ "${GIO_QUERYMODULES}" "${GIO_MODULES_DIR}"
+ XDG_DATA_DIRS= "${GLIB_COMPILE_SCHEMAS}" "${GLIB_SCHEMAS_DIR}"
+ ;;
+esac