summaryrefslogtreecommitdiff
path: root/devel/GConf2
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-02-18 15:53:10 +0000
committerjmmv <jmmv@pkgsrc.org>2003-02-18 15:53:10 +0000
commit6d16410096d23266a51a1f01fac082cc003a68c0 (patch)
treee275a5f9687a727c8d6727a2043cb7b56fafd82a /devel/GConf2
parent9e16a225ad398e37db86dcdb69889622ae831a90 (diff)
downloadpkgsrc-6d16410096d23266a51a1f01fac082cc003a68c0.tar.gz
Generate a gconftool-2 script in the buildlink directory that does nothing.
This prevents packages that do not honour --disable-schemas-install touch the GConf2 database directly.
Diffstat (limited to 'devel/GConf2')
-rw-r--r--devel/GConf2/buildlink2.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/GConf2/buildlink2.mk b/devel/GConf2/buildlink2.mk
index a0277a023dd..8dc211ccd63 100644
--- a/devel/GConf2/buildlink2.mk
+++ b/devel/GConf2/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.12 2003/02/14 20:04:06 jmmv Exp $
+# $NetBSD: buildlink2.mk,v 1.13 2003/02/18 15:53:10 jmmv Exp $
#
# This Makefile fragment is included by packages that use GConf2.
#
@@ -34,7 +34,20 @@ BUILDLINK_FILES.GConf2+= lib/libgconf-2.*
.include "../../textproc/libxml2/buildlink2.mk"
BUILDLINK_TARGETS+= GConf2-buildlink
+BUILDLINK_TARGETS+= GConf2-buildlink-fake
+
+_GCONF2_FAKE= ${BUILDLINK_DIR}/bin/gconftool-2
GConf2-buildlink: _BUILDLINK_USE
+GConf2-buildlink-fake:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ ! -f ${_GCONF2_FAKE} ]; then \
+ ${ECHO_BUILDLINK_MSG} "Creating ${_GCONF2_FAKE}"; \
+ ${MKDIR} ${_GCONF2_FAKE:H}; \
+ ${ECHO} "#!/bin/sh" > ${_GCONF2_FAKE}; \
+ ${ECHO} "echo '[pkgsrc] Doing nothing for gconftool-2' \$$*" >> ${_GCONF2_FAKE}; \
+ ${CHMOD} +x ${_GCONF2_FAKE}; \
+ fi
+
.endif # GCONF2_BUILDLINK2_MK