summaryrefslogtreecommitdiff
path: root/devel/qt5/files/pkg-deinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'devel/qt5/files/pkg-deinstall.in')
-rw-r--r--devel/qt5/files/pkg-deinstall.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/qt5/files/pkg-deinstall.in b/devel/qt5/files/pkg-deinstall.in
new file mode 100644
index 000000000000..b1d91c8b298e
--- /dev/null
+++ b/devel/qt5/files/pkg-deinstall.in
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+case $2 in
+POST-DEINSTALL)
+ sed -i "" '/qconfig-%%QT_MODNAME%%\.h/ d' \
+ %%QT_INCDIR%%/QtCore/qconfig-modules.h 2>/dev/null || true
+ [ \! -e %%QT_INCDIR%%/QtCore/qconfig.h ] &&
+ [ \! -s %%QT_INCDIR%%/QtCore/qconfig-modules.h ] &&
+ ( rm -f %%QT_INCDIR%%/QtCore/qconfig-modules.h 2>/dev/null
+ rmdir %%QT_INCDIR%%/QtCore 2>/dev/null
+ rmdir %%QT_INCDIR%% 2>/dev/null ) || true
+ ;;
+esac