mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
f0fefed0d4
Many of them are unnecessary, and most of the task are handled by ttfm now. It's also aware of chinese/{CJK, ghostscript6}. It supports XFree86 3.x or 4.x by default. Users only need to define GS6=yes or CJK=yes when installing, then it'll do most of the work. CJK and ghostscript6 ports should specify their respective variables via DEPENDS_ARGS. chinese/{moettf,moefonts-cid,wangttf} will have similar changes.
27 lines
575 B
Bash
27 lines
575 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="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"
|
|
DEFAULTMING="default_ming-big5-0.ttf default_ming-gb2312.1980-0.ttf"
|
|
DEFAULTKAI="default_kai-big5-0.ttf default_kai-gb2312.1980-0.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
|