summaryrefslogtreecommitdiff
path: root/x11/libgnome
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2005-01-29 20:21:04 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2005-01-29 20:21:04 +0000
commit3f7a57ceaf7adb234f128db1d6506502aeb1b0c6 (patch)
tree264ae0da3e15aafc848d4992e55eaa40db463947 /x11/libgnome
parentdon't rmdir X11PREFIX/lib/gtk-2.0/2.4.0/engines (diff)
devel/gconf2
Remove the post-install/pkg-install, since gnomehier is taking care of it. devel/gnomevfs2 Add pkg-install and pkg-deinstall to restore libgnome's gconf key if libgnome's .schemas exists. This fix the plist complained by pointyhat. Why restore libgnome's gconf key during the installtion if it exists? Because, libgnome always depend on gnomevfs2 so make sure the libgnome is still in the top when we either reinstall or upgrade gnomevfs2. misc/gnomehier Remove the etc/gconf/gconf.xml.defaults/*, since the gconftool is taking care of it. ie: GCONF_SCHEMAS x11/libgnome Add pkg-deinstall to restore gnomevfs2's gconf key if gnomevfs2's schemas exists. This fix the plist complained by pointyhat. Also, this is a real fix for the weird keyboard problem when you uninstall libgnome without reinstall it. Bump the PORTREVISION in all of four ports above to fix everything with gconf keys stuff for plist. Those have been tested in the MarcusCom CVS, GNOME tinderbox, and my tinderbox.
Notes
Notes: svn path=/head/; revision=127651
Diffstat (limited to 'x11/libgnome')
-rw-r--r--x11/libgnome/Makefile8
-rw-r--r--x11/libgnome/pkg-deinstall.in19
2 files changed, 25 insertions, 2 deletions
diff --git a/x11/libgnome/Makefile b/x11/libgnome/Makefile
index 93ca85a26992..50f44aff4cea 100644
--- a/x11/libgnome/Makefile
+++ b/x11/libgnome/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libgnome
PORTVERSION= 2.8.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.8
@@ -32,6 +32,8 @@ USE_LIBTOOL_VER=15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+
GCONF_SCHEMAS= desktop_gnome_accessibility_keyboard.schemas \
desktop_gnome_accessibility_startup.schemas \
desktop_gnome_applications_browser.schemas \
@@ -52,8 +54,10 @@ GCONF_SCHEMAS= desktop_gnome_accessibility_keyboard.schemas \
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libgnome_gnome-program.c
.endif
-.if defined(NOPORTDOCS)
post-patch:
+ @${SED} -e 's|%%X11BASE%%|${X11BASE}|g' \
+ < ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
+.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|gnome-data po doc|gnome-data po|g' \
${WRKSRC}/Makefile.in
.endif
diff --git a/x11/libgnome/pkg-deinstall.in b/x11/libgnome/pkg-deinstall.in
new file mode 100644
index 000000000000..0ac463865c7f
--- /dev/null
+++ b/x11/libgnome/pkg-deinstall.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Restore gconf keys of gnomevfs2.
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+SCHEMAS=%%X11BASE%%/etc/gconf/schemas/desktop_default_applications.schemas
+
+if [ -f ${SCHEMAS} ]; then
+ env GCONF_CONFIG_SOURCE=xml::%%X11BASE%%/etc/gconf/gconf.xml.defaults \
+ %%X11BASE%%/bin/gconftool-2 --makefile-install-rule ${SCHEMAS} \
+ > /dev/null || /usr/bin/true
+fi
+
+exit 0