diff options
author | edwin <edwin@FreeBSD.org> | 2005-06-08 21:06:50 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-06-08 21:06:50 +0800 |
commit | 51d0786fcc1f9847f0164113fe2ce13d23a99478 (patch) | |
tree | f66fcc646a218d8c793b96992656165859cff787 /chinese/msttf/pkg-deinstall | |
parent | 509dccbaf2523aa3401afb67caf6c0b353269d51 (diff) | |
download | freebsd-ports-gnome-51d0786fcc1f9847f0164113fe2ce13d23a99478.tar.gz freebsd-ports-gnome-51d0786fcc1f9847f0164113fe2ce13d23a99478.tar.zst freebsd-ports-gnome-51d0786fcc1f9847f0164113fe2ce13d23a99478.zip |
new port: chinese/msttf
Three TrueType fonts from Microsoft Windows(TM) 2000/XP.
Because of licensing restrictions, end user can use these
fonts freely in his/her own computers.
**** Redistribution of pre-compiled binaries is not permitted. ****
PR: ports/64838
Submitted by: LI Dong <ld@FreeBSD.org.cn>
Diffstat (limited to 'chinese/msttf/pkg-deinstall')
-rw-r--r-- | chinese/msttf/pkg-deinstall | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chinese/msttf/pkg-deinstall b/chinese/msttf/pkg-deinstall new file mode 100644 index 000000000000..592e404e0203 --- /dev/null +++ b/chinese/msttf/pkg-deinstall @@ -0,0 +1,24 @@ +#!/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="simhei.ttf simsun.ttc tahoma.ttf" + +if [ -r $FONTDIR/$PKGNAME ]; then + for i in `cat $FONTDIR/$PKGNAME`; do + for f in $FONTS; do + $TTFM --remove $i $f + done + done +fi + +rm -f $FONTDIR/$PKGNAME + +exit 0 |