From fc0dca3f0cb164f4ac48b4a4b05f9b7ae5ce278b Mon Sep 17 00:00:00 2001 From: jylefort Date: Sat, 10 Sep 2005 14:40:01 +0000 Subject: Generate icon-theme.cache files when installing, and remove them when deinstalling. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4814 df743ca5-7f9a-e211-a948-0013205c9059 --- x11-toolkits/gtk20/Makefile | 6 ++++-- x11-toolkits/gtk20/pkg-plist | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'x11-toolkits/gtk20') diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index cf61f27b1..163413090 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -3,12 +3,12 @@ # Whom: Vanilla I. Shu # # $FreeBSD$ -# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.71 2005/09/02 21:09:15 mezz Exp $ +# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.72 2005/09/03 03:06:00 ahze Exp $ # PORTNAME= gtk PORTVERSION= 2.8.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/2.8,} \ ftp://ftp.gtk.org/pub/gtk/v2.8/ \ @@ -117,6 +117,8 @@ pre-build: @${RM} -rf ${WRKSRC}/docs/gtk.info* post-install: + -@${FIND} ${PREFIX}/share/icons -type d -depth 1 -exec \ + ${PREFIX}/bin/gtk-update-icon-cache -q {} \; 2>/dev/null @${MKDIR} ${PREFIX}/lib/gtk-2.0/modules @${MKDIR} ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines diff --git a/x11-toolkits/gtk20/pkg-plist b/x11-toolkits/gtk20/pkg-plist index 094d74cd4..3203a8557 100644 --- a/x11-toolkits/gtk20/pkg-plist +++ b/x11-toolkits/gtk20/pkg-plist @@ -477,6 +477,8 @@ share/locale/zh_TW/LC_MESSAGES/gtk20.mo share/themes/Default/gtk-2.0-key/gtkrc share/themes/Emacs/gtk-2.0-key/gtkrc share/themes/Raleigh/gtk-2.0/gtkrc +@exec /usr/bin/find %D/share/icons -type d -depth 1 -exec %D/bin/gtk-update-icon-cache -q {} \; 2>/dev/null || /usr/bin/true +@unexec /usr/bin/find %D/share/icons -type f -depth 2 -name icon-theme.cache -delete 2>/dev/null || /usr/bin/true @dirrm share/themes/Raleigh/gtk-2.0 @dirrm share/themes/Raleigh @dirrm share/themes/Emacs/gtk-2.0-key -- cgit v1.2.3