freebsd-ports/chinese/moettf/pkg-deinstall
Jing-Tang Keith Jang de0cdb9f9e Adds two new fonts, moe_sungext.ttf and moe_sungsym.ttf. Although
the fonts are encoded in BIG5, the characters and symbols are from
several less commonly used layers in CNS.  See
http://www.edu.tw/mandr/bbs/1-4-2/1-4-2.html for more details.

Also displays messages about WANT_XX when installing.
2000-12-09 20:09:35 +00:00

24 lines
459 B
Bash

#!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
PKGNAME=$1
PREFIX=${PKG_PREFIX}
TTFM=${PKG_PREFIX}/bin/ttfm.sh
FONTDIR=${PREFIX}/share/fonts/TrueType
FONTS="moe_lishu.ttf moe_kai.ttf moe_sung.ttf moe_sungext.ttf moe_sungsym.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