From owner-svn-ports-all@freebsd.org Fri May 8 07:14:20 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 61E932C51BF; Fri, 8 May 2020 07:14:20 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49JM5S1vXwz4L4X; Fri, 8 May 2020 07:14:20 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3C1E2267F7; Fri, 8 May 2020 07:14:20 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0487EKg7075629; Fri, 8 May 2020 07:14:20 GMT (envelope-from tagattie@FreeBSD.org) Received: (from tagattie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0487EKkx075628; Fri, 8 May 2020 07:14:20 GMT (envelope-from tagattie@FreeBSD.org) Message-Id: <202005080714.0487EKkx075628@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tagattie set sender to tagattie@FreeBSD.org using -f From: Hiroki Tagato Date: Fri, 8 May 2020 07:14:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r534329 - head/x11-themes/papirus-icon-theme X-SVN-Group: ports-head X-SVN-Commit-Author: tagattie X-SVN-Commit-Paths: head/x11-themes/papirus-icon-theme X-SVN-Commit-Revision: 534329 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.32 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 07:14:20 -0000 Author: tagattie Date: Fri May 8 07:14:19 2020 New Revision: 534329 URL: https://svnweb.freebsd.org/changeset/ports/534329 Log: Fix plist to generate icon cache Approved by: ehaupt (mentor) Modified: head/x11-themes/papirus-icon-theme/Makefile Modified: head/x11-themes/papirus-icon-theme/Makefile ============================================================================== --- head/x11-themes/papirus-icon-theme/Makefile Fri May 8 07:06:24 2020 (r534328) +++ head/x11-themes/papirus-icon-theme/Makefile Fri May 8 07:14:19 2020 (r534329) @@ -2,6 +2,7 @@ PORTNAME= papirus-icon-theme PORTVERSION= 20200430 +PORTREVISION= 1 CATEGORIES= x11-themes MAINTAINER= tagattie@FreeBSD.org @@ -11,7 +12,7 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE USES= gmake gnome -INSTALLS_ICONS= yes +USE_GNOME= gtk-update-icon-cache USE_GITHUB= yes GH_ACCOUNT= PapirusDevelopmentTeam @@ -19,6 +20,7 @@ GH_ACCOUNT= PapirusDevelopmentTeam NO_ARCH= yes NO_BUILD= yes +POST_PLIST= add-plist-icon-cache PORTDOCS= AUTHORS README.md OPTIONS_DEFINE= DOCS @@ -30,5 +32,16 @@ post-install: 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