pkgsrc/devel/glib2/files/schemas.tmpl
jmmv 55453c9fc4 Add a schemas.mk file to let packages that install GSettings schemas to
rebuild the precompiled database upon install/deinstall.  This is mostly
a copy/paste of the same logic to deal with gio modules found in modules.mk.

No PKGREVISION bump because this does not affect the glib2 package in
itself.
2011-01-18 10:03:59 +00:00

18 lines
383 B
Cheetah

# $NetBSD: schemas.tmpl,v 1.1 2011/01/18 10:03:59 jmmv Exp $
#
# Recompile the GSettings schemas.
#
GLIB_SCHEMAS_DIR="@GLIB_SCHEMAS_DIR@"
GLIB_COMPILE_SCHEMAS="@GLIB_COMPILE_SCHEMAS@"
case "${STAGE}" in
POST-INSTALL)
XDG_DATA_DIRS= "${GLIB_COMPILE_SCHEMAS}" "${GLIB_SCHEMAS_DIR}"
;;
POST-DEINSTALL)
XDG_DATA_DIRS= "${GLIB_COMPILE_SCHEMAS}" "${GLIB_SCHEMAS_DIR}"
;;
*)
;;
esac