aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2013-10-08 17:28:52 +0800
committermakc <makc@FreeBSD.org>2013-10-08 17:28:52 +0800
commitae2a47df0aceb37f0ac59f25353888c7e9e32859 (patch)
tree9112e7855fb7cc2708d30540028674a24bafa56c
parentf3e18169f23825960f2bd748e18ea8e140a7d866 (diff)
downloadfreebsd-ports-gnome-ae2a47df0aceb37f0ac59f25353888c7e9e32859.tar.gz
freebsd-ports-gnome-ae2a47df0aceb37f0ac59f25353888c7e9e32859.tar.zst
freebsd-ports-gnome-ae2a47df0aceb37f0ac59f25353888c7e9e32859.zip
Allow stage support for 'USE_KDE4= sharedmime' ports
-rw-r--r--Mk/bsd.kde4.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.kde4.mk b/Mk/bsd.kde4.mk
index 22f3a0615957..dbf42ca6f9fa 100644
--- a/Mk/bsd.kde4.mk
+++ b/Mk/bsd.kde4.mk
@@ -305,7 +305,9 @@ IGNORE= can't be installed: unknown USE_KDE4 component '${component}'
post-install: post-install-sharedmime
. if !target(post-install-sharedmime)
post-install-sharedmime:
+. if defined(NO_STAGE)
@-${LOCALBASE}/bin/update-mime-database ${KDE4_PREFIX}/share/mime
+. endif
@${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true" >> ${TMPPLIST}
. endif