diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-25 02:20:42 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-25 02:20:42 +0800 |
commit | 82792921749a46c40b168bf0eebb462148661bf4 (patch) | |
tree | 9d88c984200fce30875bf5e59c49b2cc326eb73c /devel/gnome-vfs | |
parent | 4e4fce03b92399ef2a9c439a066cebb8c62c173d (diff) | |
download | marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.tar marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.tar.gz marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.tar.bz2 marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.tar.lz marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.tar.xz marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.tar.zst marcuscom-ports-82792921749a46c40b168bf0eebb462148661bf4.zip |
devel/gnomevfs2:
Add pkg-deinstall.in to restore gconf keys of libgnome.
x11/libgnome:
Re-add libgnome, add pkg-desinstall to restore gconf keys of gnomevfs2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3326 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnome-vfs')
-rw-r--r-- | devel/gnome-vfs/Makefile | 5 | ||||
-rw-r--r-- | devel/gnome-vfs/pkg-deinstall.in | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile index ad1f57636..e0a3399da 100644 --- a/devel/gnome-vfs/Makefile +++ b/devel/gnome-vfs/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomevfs2 PORTVERSION= 2.9.2 +PORTREVISION= 1 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-vfs/2.9 @@ -32,6 +33,8 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ BSD_PTHREAD_LIBS=${PTHREAD_LIBS} +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall + GCONF_SCHEMAS= desktop_default_applications.schemas \ desktop_gnome_url_handlers.schemas system_dns_sd.schemas \ system_http_proxy.schemas system_smb.schemas @@ -92,6 +95,8 @@ post-patch: s|%%X11BASE%%|${X11BASE}|g' \ ${WRKSRC}/libgnomevfs/xdgmime.c \ ${WRKSRC}/libgnomevfs/gnome-vfs-mime-info.c + @${SED} -e 's|%%X11BASE%%|${X11BASE}|g' \ + < ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL} pre-configure: @if [ -n "`${PKG_INFO} -xI '^bind[0-9]*-base-[0-9]'`" ]; then \ diff --git a/devel/gnome-vfs/pkg-deinstall.in b/devel/gnome-vfs/pkg-deinstall.in new file mode 100644 index 000000000..7e289a563 --- /dev/null +++ b/devel/gnome-vfs/pkg-deinstall.in @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Restore gconf keys of libgnome. + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +SCHEMAS=%%X11BASE%%/etc/gconf/schemas/desktop_gnome_applications_terminal.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 |