1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/chinese/wangttf/pkg-install
Ying-Chieh Liao 4cda2103eb due to ttfm module ghostscript6 change to gscjk
PR:		42330
Submitted by:	Statue <statue@freebsd.sinica.edu.tw>
2002-12-21 18:48:37 +00:00

54 lines
1.1 KiB
Bash

#!/bin/sh
if [ "$2" = "PRE-INSTALL" ]; then
exit 0
fi
PKGNAME=$1
PREFIX=${PKG_PREFIX}
TTFM=${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 [ ! -x $TTFM ]; then
echo "$TTFM not found!"
exit 1
fi
rm -f $FONTDIR/$PKGNAME
if [ "X$WANT_CJK" != "X" ]; then
# There's no CJK module now.
fi
if [ "X$WANT_GS" != "X" ]; then
for f in $FONTS; do
$TTFM --add gscjk $FONTDIR/$f
done
for f in $DEFAULTMING; do
$TTFM --setdefault gscjk $FONTDIR/$f
done
for f in $DEFAULTKAI; do
$TTFM --setdefault_kai gscjk $FONTDIR/$f
done
echo "gscjk" >> $FONTDIR/$PKGNAME
fi
if [ "X$WITHOUT_X" = "X" ]; then
for f in $FONTS; do
$TTFM --add xttfm $FONTDIR/$f
done
for f in $DEFAULTMING; do
$TTFM --setdefault xttfm $FONTDIR/$f
done
for f in $DEFAULTKAI; do
$TTFM --setdefault_kai xttfm $FONTDIR/$f
done
echo "xttfm" >> $FONTDIR/$PKGNAME
fi
exit 0