diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2005-01-29 20:21:04 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2005-01-29 20:21:04 +0000 |
commit | 3f7a57ceaf7adb234f128db1d6506502aeb1b0c6 (patch) | |
tree | 264ae0da3e15aafc848d4992e55eaa40db463947 /x11/libgnome | |
parent | bf5fb93c4db7e9bb39a8f0bf375e79ce8a51c10f (diff) |
Notes
Diffstat (limited to 'x11/libgnome')
-rw-r--r-- | x11/libgnome/Makefile | 8 | ||||
-rw-r--r-- | x11/libgnome/pkg-deinstall.in | 19 |
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 |