aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print/acroread8/Makefile7
-rw-r--r--print/acroread8/files/pkg-deinstall.in139
2 files changed, 144 insertions, 2 deletions
diff --git a/print/acroread8/Makefile b/print/acroread8/Makefile
index a1cb11eb1f39..7a72b6c9f9f3 100644
--- a/print/acroread8/Makefile
+++ b/print/acroread8/Makefile
@@ -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 \
diff --git a/print/acroread8/files/pkg-deinstall.in b/print/acroread8/files/pkg-deinstall.in
new file mode 100644
index 000000000000..44fe15e010b5
--- /dev/null
+++ b/print/acroread8/files/pkg-deinstall.in
@@ -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
+