1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Remove icon files when deinstalling. Bump PORTREVISION.

Spotted by:	pointyhat via erwin
This commit is contained in:
Hiroki Sato 2008-01-07 14:02:37 +00:00
parent 1d25499d3d
commit 2994598928
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205168
2 changed files with 144 additions and 2 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= acroread8
PORTVERSION?= 8.1.1
PORTREVISION= 1
CATEGORIES?= print linux
MASTER_SITES?= http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${PORTVERSION}/${ADOBE_LANG:L}/ \
ftp://ftp.adobe.com/pub/adobe/reader/unix/8.x/${PORTVERSION}/${ADOBE_LANG:L}/
@ -33,9 +34,11 @@ PLIST_SUB= ACRODIR=${ACRODIR} \
PLUGINDIR=${PLUGINDIR} \
ADOBE_LANG=${ADOBE_LANG:U} \
LOCALE_NAME=${LOCALE_NAME}
SUB_FILES= ln mv rm pkg-message
SUB_LIST= ADOBE_LANG=${ADOBE_LANG:U}
SUB_FILES= ln mv rm pkg-message pkg-deinstall
SUB_LIST= ADOBE_LANG=${ADOBE_LANG:U} \
ACROBASE=${ACROBASE}
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
WRKSRC= ${WRKDIR}/AdobeReader
LANGCODE= chs:zh_CN cht:zh_TW dan:da_DK deu:de_DE enu:en_US \

View File

@ -0,0 +1,139 @@
#!/bin/sh
# $FreeBSD$
if [ "$2" != "POST-DEINSTALL" \
-o -d %%PREFIX%%/%%ACROBASE%% ]; then
exit 0
fi
cat <<EOT | while read F; do rm -f %%PREFIX%%/$F; done
share/icons/hicolor/.xdg-icon-resource-dummy
share/icons/hicolor/128x128/apps/AdobeReader8.png
share/icons/hicolor/128x128/apps/adobe.pdf.png
share/icons/hicolor/128x128/apps/vnd.adobe.pdx.png
share/icons/hicolor/128x128/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/128x128/apps/vnd.adobe.xfdf.png
share/icons/hicolor/128x128/apps/vnd.fdf.png
share/icons/hicolor/128x128/mimetypes/application-pdf.png
share/icons/hicolor/128x128/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/128x128/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/128x128/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/128x128/mimetypes/application-vnd.fdf.png
share/icons/hicolor/16x16/apps/AdobeReader8.png
share/icons/hicolor/16x16/apps/adobe.pdf.png
share/icons/hicolor/16x16/apps/vnd.adobe.pdx.png
share/icons/hicolor/16x16/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/16x16/apps/vnd.adobe.xfdf.png
share/icons/hicolor/16x16/apps/vnd.fdf.png
share/icons/hicolor/16x16/mimetypes/application-pdf.png
share/icons/hicolor/16x16/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/16x16/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/16x16/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/16x16/mimetypes/application-vnd.fdf.png
share/icons/hicolor/192x192/apps/AdobeReader8.png
share/icons/hicolor/192x192/apps/adobe.pdf.png
share/icons/hicolor/192x192/apps/vnd.adobe.pdx.png
share/icons/hicolor/192x192/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/192x192/apps/vnd.adobe.xfdf.png
share/icons/hicolor/192x192/apps/vnd.fdf.png
share/icons/hicolor/192x192/mimetypes/application-pdf.png
share/icons/hicolor/192x192/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/192x192/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/192x192/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/192x192/mimetypes/application-vnd.fdf.png
share/icons/hicolor/20x20/apps/AdobeReader8.png
share/icons/hicolor/20x20/apps/adobe.pdf.png
share/icons/hicolor/20x20/apps/vnd.fdf.png
share/icons/hicolor/20x20/apps/vnd.adobe.pdx.png
share/icons/hicolor/20x20/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/20x20/apps/vnd.adobe.xfdf.png
share/icons/hicolor/20x20/mimetypes/application-pdf.png
share/icons/hicolor/20x20/mimetypes/application-vnd.fdf.png
share/icons/hicolor/20x20/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/20x20/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/20x20/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/22x22/apps/AdobeReader8.png
share/icons/hicolor/22x22/apps/adobe.pdf.png
share/icons/hicolor/22x22/apps/vnd.adobe.pdx.png
share/icons/hicolor/22x22/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/22x22/apps/vnd.adobe.xfdf.png
share/icons/hicolor/22x22/apps/vnd.fdf.png
share/icons/hicolor/22x22/mimetypes/application-pdf.png
share/icons/hicolor/22x22/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/22x22/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/22x22/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/22x22/mimetypes/application-vnd.fdf.png
share/icons/hicolor/24x24/apps/AdobeReader8.png
share/icons/hicolor/24x24/apps/adobe.pdf.png
share/icons/hicolor/24x24/apps/vnd.adobe.pdx.png
share/icons/hicolor/24x24/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/24x24/apps/vnd.adobe.xfdf.png
share/icons/hicolor/24x24/apps/vnd.fdf.png
share/icons/hicolor/24x24/mimetypes/application-pdf.png
share/icons/hicolor/24x24/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/24x24/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/24x24/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/24x24/mimetypes/application-vnd.fdf.png
share/icons/hicolor/32x32/apps/AdobeReader8.png
share/icons/hicolor/32x32/apps/adobe.pdf.png
share/icons/hicolor/32x32/apps/vnd.adobe.pdx.png
share/icons/hicolor/32x32/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/32x32/apps/vnd.adobe.xfdf.png
share/icons/hicolor/32x32/apps/vnd.fdf.png
share/icons/hicolor/32x32/mimetypes/application-pdf.png
share/icons/hicolor/32x32/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/32x32/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/32x32/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/32x32/mimetypes/application-vnd.fdf.png
share/icons/hicolor/36x36/apps/AdobeReader8.png
share/icons/hicolor/36x36/apps/adobe.pdf.png
share/icons/hicolor/36x36/apps/vnd.adobe.pdx.png
share/icons/hicolor/36x36/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/36x36/apps/vnd.adobe.xfdf.png
share/icons/hicolor/36x36/apps/vnd.fdf.png
share/icons/hicolor/36x36/mimetypes/application-pdf.png
share/icons/hicolor/36x36/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/36x36/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/36x36/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/36x36/mimetypes/application-vnd.fdf.png
share/icons/hicolor/48x48/apps/AdobeReader8.png
share/icons/hicolor/48x48/apps/adobe.pdf.png
share/icons/hicolor/48x48/apps/vnd.adobe.pdx.png
share/icons/hicolor/48x48/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/48x48/apps/vnd.adobe.xfdf.png
share/icons/hicolor/48x48/apps/vnd.fdf.png
share/icons/hicolor/48x48/mimetypes/application-pdf.png
share/icons/hicolor/48x48/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/48x48/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/48x48/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/48x48/mimetypes/application-vnd.fdf.png
share/icons/hicolor/64x64/apps/AdobeReader8.png
share/icons/hicolor/64x64/apps/adobe.pdf.png
share/icons/hicolor/64x64/apps/vnd.adobe.pdx.png
share/icons/hicolor/64x64/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/64x64/apps/vnd.adobe.xfdf.png
share/icons/hicolor/64x64/apps/vnd.fdf.png
share/icons/hicolor/64x64/mimetypes/application-pdf.png
share/icons/hicolor/64x64/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/64x64/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/64x64/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/64x64/mimetypes/application-vnd.fdf.png
share/icons/hicolor/96x96/apps/AdobeReader8.png
share/icons/hicolor/96x96/apps/adobe.pdf.png
share/icons/hicolor/96x96/apps/vnd.adobe.pdx.png
share/icons/hicolor/96x96/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/96x96/apps/vnd.adobe.xfdf.png
share/icons/hicolor/96x96/apps/vnd.fdf.png
share/icons/hicolor/96x96/mimetypes/application-pdf.png
share/icons/hicolor/96x96/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/96x96/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/96x96/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/96x96/mimetypes/application-vnd.fdf.png
EOT
cat <<EOT | while read D; do rmdir %%PREFIX%%/$D > /dev/null 2>&1 || true; done
share/icons/hicolor/20x20/mimetypes
share/icons/hicolor/20x20/apps
share/icons/hicolor/20x20
EOT