aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2008-07-26 02:44:03 +0800
committerdougb <dougb@FreeBSD.org>2008-07-26 02:44:03 +0800
commit0820694edc29a33b0972ab8ebf4583799304c5b6 (patch)
tree6446e99ab7cef05fa784ad35fc738c6fd3ae1d00 /x11
parent6db7b29ddfaa276ef1acc1232c3363072cd5f5d6 (diff)
downloadfreebsd-ports-gnome-0820694edc29a33b0972ab8ebf4583799304c5b6.tar.gz
freebsd-ports-gnome-0820694edc29a33b0972ab8ebf4583799304c5b6.tar.zst
freebsd-ports-gnome-0820694edc29a33b0972ab8ebf4583799304c5b6.zip
Create a pkg-deinstall file to remove the ${X11BASE}/etc/xdg directory
if it's empty. I can't add it to PLIST_DIRS since other ports add stuff there.
Diffstat (limited to 'x11')
-rw-r--r--x11/tint/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/tint/Makefile b/x11/tint/Makefile
index 25fdd5d04e00..7688ae2a503d 100644
--- a/x11/tint/Makefile
+++ b/x11/tint/Makefile
@@ -37,6 +37,11 @@ post-patch:
@${SED} -e 's#/usr/bin#/bin#g' \
${WRKSRC}/Makefile.dist > ${WRKSRC}/Makefile
+pre-install:
+ ${ECHO} "rmdir ${X11BASE}/etc/xdg 2>/dev/null || true" > \
+ ${WRKDIR}/pkg-deinstall
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}