1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/chinese/abiword/pkg-install
Jing-Tang Keith Jang 5f26fdecd9 New port: zh-abiword
This meta version of AbiWord sets up the correct environment for BIG5/GB
users(though most works are done in chinese/ttfm).  Users can import a
Chinese Word97 document(just not too complex :p), edit it with an XIM
(eg. xcin25), then print it using Ghostscript.
2001-03-11 09:41:55 +00:00

26 lines
413 B
Bash

#!/bin/sh
if [ "$2" = "PRE-INSTALL" ]; then
exit 0
fi
PKGNAME=$1
PREFIX=${PKG_PREFIX}
TTFM=${PREFIX}/bin/ttfm.sh
FONTDIR=${PREFIX}/share/fonts/TrueType
FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"
if [ ! -x $TTFM ]; then
echo "$TTFM not found!"
exit 1
fi
for f in $FONTS; do
$TTFM --add ghostscript6 $FONTDIR/$f
done
for f in $FONTS; do
$TTFM --add abiword $FONTDIR/$f
done