freebsd-ports/chinese/moefonts-cid/pkg-install
Edwin Groothuis ec25211c92 [PATCH] chinese/moefonts-cid: enable choose of ghostscript interpreter
This patch allows the admin of the machine to choose either
	print/ghostscript-gnu or print/ghostscript-afp1

PR:		ports/54921
Submitted by:	Jens Rehsack <rehsack@liwing.de>
2003-08-31 00:24:20 +00:00

15 lines
500 B
Bash

#!/bin/sh
GSVER=`gs --version`
GSDIR=${PREFIX}/share/ghostscript
FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS
# Run just once.
if [ "x$2" != "xPOST-INSTALL" ]; then
exit 0
fi
echo "/MOEKai-Regular-ETen-B5-H (MOEKai-Regular-ETen-B5-H.gsf) ;" >> ${FONTMAP}
echo "/MOEKai-Regular-ETen-B5-V (MOEKai-Regular-ETen-B5-V.gsf) ;" >> ${FONTMAP}
echo "/MOESung-Regular-ETen-B5-H (MOESung-Regular-ETen-B5-H.gsf) ;" >> ${FONTMAP}
echo "/MOESung-Regular-ETen-B5-V (MOESung-Regular-ETen-B5-V.gsf) ;" >> ${FONTMAP}