aboutsummaryrefslogtreecommitdiff
path: root/chinese/wangttf/pkg-deinstall
diff options
context:
space:
mode:
authorJing-Tang Keith Jang <keith@FreeBSD.org>2000-12-08 16:23:16 +0000
committerJing-Tang Keith Jang <keith@FreeBSD.org>2000-12-08 16:23:16 +0000
commit1b4ebbb32d981f6594ae5acc015f0d8328a2ccb4 (patch)
tree33478a01c36009c3af5ab7c1ff5aa00aadc4c325 /chinese/wangttf/pkg-deinstall
parent843544003ec83ec0783ed3694cd28aedad81c636 (diff)
downloadports-1b4ebbb32d981f6594ae5acc015f0d8328a2ccb4.tar.gz
ports-1b4ebbb32d981f6594ae5acc015f0d8328a2ccb4.zip
Notes
Diffstat (limited to 'chinese/wangttf/pkg-deinstall')
-rw-r--r--chinese/wangttf/pkg-deinstall26
1 files changed, 26 insertions, 0 deletions
diff --git a/chinese/wangttf/pkg-deinstall b/chinese/wangttf/pkg-deinstall
new file mode 100644
index 000000000000..41d36045d4d3
--- /dev/null
+++ b/chinese/wangttf/pkg-deinstall
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
+fi
+
+PKGNAME=$1
+PREFIX=${PKG_PREFIX}
+TTFM=${PKG_PREFIX}/bin/ttfm.sh
+
+# No default kai & ming for wangttf.
+FONTDIR=${PREFIX}/share/fonts/TrueType
+FONTS="wcl-01.ttf wcl-02.ttf wcl-03.ttf wcl-04.ttf wcl-05.ttf \
+ wcl-06.ttf wcl-07.ttf wcl-08.ttf wcl-09.ttf wcl-10.ttf"
+
+if [ -r $FONTDIR/$PKGNAME ]; then
+ for i in `cat $FONTDIR/$PKGNAME`; do
+ for f in $FONTS $DEFAULTMING $DEFAULTKAI; do
+ $TTFM --remove $i $f
+ done
+ done
+fi
+
+rm -f $FONTDIR/$PKGNAME
+
+exit 0