diff options
author | markd <markd> | 2007-01-26 00:55:00 +0000 |
---|---|---|
committer | markd <markd> | 2007-01-26 00:55:00 +0000 |
commit | b8f915ebd689b009e035f455881a287ca1ac678e (patch) | |
tree | c680881275b169878e082e9105f633f2c0bedcbf /x11/gtk2 | |
parent | 118c778dea17323d153d6957a4226767f5dbdf70 (diff) | |
download | pkgsrc-b8f915ebd689b009e035f455881a287ca1ac678e.tar.gz |
Build hicolor icon theme cache file if hicolor-icon-theme package installed
OK'ed wiz and jmmv. Bump PKGREVISION.
Diffstat (limited to 'x11/gtk2')
-rw-r--r-- | x11/gtk2/Makefile | 9 | ||||
-rw-r--r-- | x11/gtk2/files/icon-cache.tmpl | 20 |
2 files changed, 28 insertions, 1 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile index 0bb0a3b8ed2..a30c57b2401 100644 --- a/x11/gtk2/Makefile +++ b/x11/gtk2/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.136 2007/01/18 22:43:29 wiz Exp $ +# $NetBSD: Makefile,v 1.137 2007/01/26 00:55:00 markd Exp $ DISTNAME= gtk+-2.10.8 PKGNAME= ${DISTNAME:S/gtk/gtk2/} +PKGREVISION= 1 CATEGORIES= x11 MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v2.10/ \ ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.10/ \ @@ -76,6 +77,12 @@ post-install: ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/gtk-2.0/modules ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/gtk-2.0/2.10.0/filesystems +EVAL_PREFIX+= PREFIX.hicolor=hicolor-icon-theme +FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache" +FILES_SUBST+= ICON_THEME_DIR="${PREFIX.hicolor}/share/icons/hicolor" +INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl +PRINT_PLIST_AWK+= /^share\/icons\/hicolor\/icon-theme.cache$$/ { next; } + _BUILDING_GTK2= yes .include "modules.mk" diff --git a/x11/gtk2/files/icon-cache.tmpl b/x11/gtk2/files/icon-cache.tmpl new file mode 100644 index 00000000000..b48f64ec5d3 --- /dev/null +++ b/x11/gtk2/files/icon-cache.tmpl @@ -0,0 +1,20 @@ +# $NetBSD: icon-cache.tmpl,v 1.1 2007/01/26 00:55:01 markd Exp $ +# +# Rebuild the icon cache. +# + +GTK_UPDATE_ICON_CACHE="@GTK_UPDATE_ICON_CACHE@" +ICON_THEME_DIR="@ICON_THEME_DIR@" + +case ${STAGE} in +POST-INSTALL) + ${TEST} -d ${ICON_THEME_DIR} && \ + ${GTK_UPDATE_ICON_CACHE} -f -t ${ICON_THEME_DIR} >/dev/null 2>&1 || \ + ${TRUE} + ;; +DEINSTALL) + ${RM} -f ${ICON_THEME_DIR}/icon-theme.cache + ;; +*) + ;; +esac |