diff options
author | drochner <drochner@pkgsrc.org> | 2010-11-17 14:09:55 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2010-11-17 14:09:55 +0000 |
commit | 8651fc0fe4ce5122f43eeb86b584ca5cb2cf0624 (patch) | |
tree | 438c6de49bcc54f3a273e68556426bd3299cef62 /devel | |
parent | de50283ad4b9e99a3aace9fb72fba9a3dab03827 (diff) | |
download | pkgsrc-8651fc0fe4ce5122f43eeb86b584ca5cb2cf0624.tar.gz |
add support for rebuilding giomodule.cache on INSTALL/DEINSTALL,
addresses PRs pkg/43578 and pkg/44104 by Robert Elz
Diffstat (limited to 'devel')
-rw-r--r-- | devel/glib2/files/modules.tmpl | 18 | ||||
-rw-r--r-- | devel/glib2/modules.mk | 23 |
2 files changed, 41 insertions, 0 deletions
diff --git a/devel/glib2/files/modules.tmpl b/devel/glib2/files/modules.tmpl new file mode 100644 index 00000000000..f909ce496ea --- /dev/null +++ b/devel/glib2/files/modules.tmpl @@ -0,0 +1,18 @@ +# $NetBSD: modules.tmpl,v 1.1 2010/11/17 14:09:55 drochner Exp $ +# +# Rebuild the GIO modules database. +# + +GIO_MODULES_DIR="@GIO_MODULES_DIR@" +GIO_QUERYMODULES="@GIO_QUERYMODULES@" + +case ${STAGE} in +POST-INSTALL) + ${GIO_QUERYMODULES} ${GIO_MODULES_DIR} + ;; +POST-DEINSTALL) + ${GIO_QUERYMODULES} ${GIO_MODULES_DIR} + ;; +*) + ;; +esac diff --git a/devel/glib2/modules.mk b/devel/glib2/modules.mk new file mode 100644 index 00000000000..e563a7c7011 --- /dev/null +++ b/devel/glib2/modules.mk @@ -0,0 +1,23 @@ +# $NetBSD: modules.mk,v 1.1 2010/11/17 14:09:55 drochner Exp $ +# +# This Makefile fragment is intended to be included by packages that install +# GIO modules. It takes care of rebuilding the corresponding databases at +# (de)installation time. +# + +.if !defined(GIO_MODULES_MK) +GIO_MODULES_MK= # defined + +GIO_QUERYMODULES= ${BUILDLINK_PREFIX.glib2}/bin/gio-querymodules + +FILES_SUBST+= GIO_MODULES_DIR=${GIO_MODULES_DIR:Q} +FILES_SUBST+= GIO_QUERYMODULES=${GIO_QUERYMODULES:Q} +GIO_MODULES_DIR=${BUILDLINK_PREFIX.glib2}/lib/gio/modules +INSTALL_TEMPLATES+= ../../devel/glib2/files/modules.tmpl +DEINSTALL_TEMPLATES+= ../../devel/glib2/files/modules.tmpl + +TOOLS_NOOP+= gio-querymodules + +.include "../../devel/glib2/buildlink3.mk" + +.endif # GIO_MODULES_MK |