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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user