pkgsrc/devel/glib2/INSTALL
jmmv acb3fd1e57 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.
2011-02-20 17:40:54 +00:00

19 lines
544 B
Text

#!/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