aboutsummaryrefslogtreecommitdiff
path: root/devel/desktop-file-utils
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2006-02-26 01:03:37 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2006-02-26 01:03:37 +0000
commit4fb92d772526d18c2fa202e7c8e4c2306c2245fa (patch)
treeac161313bb118d7a78347f610421961bf4a31376 /devel/desktop-file-utils
parent135475e7200ac497be75ff0c09de64be9a0f6bf2 (diff)
downloadports-4fb92d772526d18c2fa202e7c8e4c2306c2245fa.tar.gz
ports-4fb92d772526d18c2fa202e7c8e4c2306c2245fa.zip
Notes
Diffstat (limited to 'devel/desktop-file-utils')
-rw-r--r--devel/desktop-file-utils/Makefile7
-rw-r--r--devel/desktop-file-utils/files/pkg-deinstall.in2
2 files changed, 7 insertions, 2 deletions
diff --git a/devel/desktop-file-utils/Makefile b/devel/desktop-file-utils/Makefile
index 8979183e4ffb..5c7a3137359e 100644
--- a/devel/desktop-file-utils/Makefile
+++ b/devel/desktop-file-utils/Makefile
@@ -7,7 +7,7 @@
PORTNAME= desktop-file-utils
PORTVERSION= 0.10
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/releases/
@@ -36,11 +36,16 @@ MIMEDIRS= ${PORT_MIMEDIRS} \
/usr/share/applications \
/usr/share/gnome/applications
+RMDIRS= ${PORT_MIMEDIRS} \
+ ${LOCALBASE}/share/gnome \
+ ${X11BASE}/share/gnome
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
s|%%X11BASE%%|${X11BASE}|g' \
${WRKSRC}/src/eggdirfuncs.c
@${SED} -e 's|%%MIMEDIRS%%|${MIMEDIRS}| ;\
+ s|%%RMDIRS%%|${RMDIRS}| ; \
s|%%PORT_MIMEDIRS%%|${PORT_MIMEDIRS}|' \
< ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
@${SED} -e 's|%%PORT_MIMEDIRS%%|${PORT_MIMEDIRS}|' \
diff --git a/devel/desktop-file-utils/files/pkg-deinstall.in b/devel/desktop-file-utils/files/pkg-deinstall.in
index e2eccdad388c..dc9fbc71148a 100644
--- a/devel/desktop-file-utils/files/pkg-deinstall.in
+++ b/devel/desktop-file-utils/files/pkg-deinstall.in
@@ -14,7 +14,7 @@ for mdir in %%MIMEDIRS%%; do
fi
done
-for pmdir in %%PORT_MIMEDIRS%%; do
+for pmdir in $(echo %%RMDIRS%% | sort -r); do
rmdir ${pmdir} 2>/dev/null
done