aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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