diff options
author | pav <pav@FreeBSD.org> | 2004-11-09 18:10:54 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-11-09 18:10:54 +0800 |
commit | bc66ecdb227754543b828c000aafcd9a33339c19 (patch) | |
tree | db612f0503fce10c349e5b4694e8d1eaa4e24d8e /Mk | |
parent | b002b6102133c23cf3022ea7e0474de3862c6a8b (diff) | |
download | freebsd-ports-gnome-bc66ecdb227754543b828c000aafcd9a33339c19.tar.gz freebsd-ports-gnome-bc66ecdb227754543b828c000aafcd9a33339c19.tar.zst freebsd-ports-gnome-bc66ecdb227754543b828c000aafcd9a33339c19.zip |
- Implement GCONF_SCHEMAS knob, which is already documented and people are
starting to use it
Original work: mezz
Obtained from: marcuscom repository
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnome.mk | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index a49cc7ae7c65..c290c41219ea 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -631,13 +631,27 @@ PLIST_SUB+= GNOMEDESKTOP:="@comment " NOGNOMEDESKTOP:="" CONFIGURE_FAIL_MESSAGE= "Please direct the output of the failure of the make command to a file, and then feed that file to the gnomelogalyzer, available from "http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the problem to the FreeBSD GNOME team at ${MAINTAINER}, and attach \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" and the output of the failure of the make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an \`ls ${PKG_DBDIR}\`)." .endif -_GCONF2_TEST= ${_USE_GNOME:Mgconf2} -.if ${_GCONF2_TEST:S/gconf2//}!=${_GCONF2_TEST:S/ / /g} +.if defined(_USE_GNOME) +. if ${_USE_GNOME:Mgconf}!="" || ${_USE_GNOME:Mgconf2}!="" pre-install: gnome-pre-install gnome-pre-install: @${MKDIR} ${PREFIX}/etc/gconf/gconf.xml.defaults/ +. endif +.endif + +.if defined(GCONF_SCHEMAS) +post-install: gnome-post-install + +gnome-post-install: +. for i in ${GCONF_SCHEMAS} + @${ECHO_CMD} "@unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$i > /dev/null || /usr/bin/true" \ + >> ${TMPPLIST} + @${ECHO_CMD} "etc/gconf/schemas/$i" >> ${TMPPLIST} + @${ECHO_CMD} "@exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$i > /dev/null || /usr/bin/true" \ + >> ${TMPPLIST} +. endfor .endif .endif |