git: 39ca450a594c - main - x11-themes/papirus-icon-theme: let the trigger handle the icon cache

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Mon, 11 Oct 2021 07:17:49 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=39ca450a594c565d54891e44df03396505cd23d2

commit 39ca450a594c565d54891e44df03396505cd23d2
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-10-11 07:09:37 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-10-11 07:09:37 +0000

    x11-themes/papirus-icon-theme: let the trigger handle the icon cache
    
    gtk-update-icon-cache is now handled by a trigger, let it deal with
    the cache
---
 x11-themes/papirus-icon-theme/Makefile | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/x11-themes/papirus-icon-theme/Makefile b/x11-themes/papirus-icon-theme/Makefile
index 21c1f6b54506..a7c5e9021b12 100644
--- a/x11-themes/papirus-icon-theme/Makefile
+++ b/x11-themes/papirus-icon-theme/Makefile
@@ -8,8 +8,7 @@ COMMENT=	Papirus icon theme
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		gmake gnome
-USE_GNOME=	gtk-update-icon-cache
+USES=		gmake
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	PapirusDevelopmentTeam
@@ -17,7 +16,6 @@ GH_ACCOUNT=	PapirusDevelopmentTeam
 NO_ARCH=	yes
 NO_BUILD=	yes
 
-POST_PLIST=	add-plist-icon-cache
 PORTDOCS=	AUTHORS README.md
 
 OPTIONS_DEFINE=	DOCS
@@ -30,15 +28,4 @@ post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
-add-plist-icon-cache:
-# taken from Mk/Uses/gnome.mk gnome-post-icons
-	for dir in `${GREP} "^share/icons/.*/" ${TMPPLIST} | \
-			${CUT} -d / -f 1-3 | ${SORT} -u`; do \
-		${ECHO_CMD} "@rmtry $${dir}/icon-theme.cache" >> ${TMPPLIST}; \
-		${ECHO_CMD} "@postexec ${LOCALBASE}/bin/gtk-update-icon-cache \
-			-q -f %D/$${dir} 2>/dev/null || /usr/bin/true" >> ${TMPPLIST}; \
-		${ECHO_CMD} "@postunexec ${LOCALBASE}/bin/gtk-update-icon-cache \
-			-q -f %D/$${dir} 2>/dev/null || /usr/bin/true" >> ${TMPPLIST}; \
-	done
-
 .include <bsd.port.mk>