summaryrefslogtreecommitdiff
path: root/fonts/ghostscript-cidfonts/INSTALL
diff options
context:
space:
mode:
authorjlam <jlam>2002-09-13 22:35:01 +0000
committerjlam <jlam>2002-09-13 22:35:01 +0000
commitccd9f3aa03dc1efb1425443f928009e828b57b00 (patch)
tree1af897e99cb79c14fb2b6bdbe16227414c58af1f /fonts/ghostscript-cidfonts/INSTALL
parent00b6e5b554d35cff437e0ef355cb570c4f4b4653 (diff)
downloadpkgsrc-ccd9f3aa03dc1efb1425443f928009e828b57b00.tar.gz
Initial import of ghostscript-cidfonts-20000901.
This package enables Ghostscript to use the CID-keyed fonts provided in the adobe-cidfonts package.
Diffstat (limited to 'fonts/ghostscript-cidfonts/INSTALL')
-rw-r--r--fonts/ghostscript-cidfonts/INSTALL32
1 files changed, 32 insertions, 0 deletions
diff --git a/fonts/ghostscript-cidfonts/INSTALL b/fonts/ghostscript-cidfonts/INSTALL
new file mode 100644
index 00000000000..b4150270d6c
--- /dev/null
+++ b/fonts/ghostscript-cidfonts/INSTALL
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2002/09/13 22:35:01 jlam Exp $
+
+ADOBE_RESOURCEDIR="@ADOBE_RESOURCEDIR@"
+GS_RESOURCEDIR="@GS_RESOURCEDIR@"
+PKG_INFO="@PKG_INFO@"
+
+FONTFILES=` \
+ ${PKG_INFO} -f adobe-cidfonts | \
+ ${AWK} '/File:.*\/Resource\/CIDFont\// { print $2 }' \
+`
+
+case ${STAGE} in
+POST-INSTALL)
+ for file in ${FONTFILES}; do
+ base=`${BASENAME} $file`
+ dest="${GS_RESOURCEDIR}/CIDFont/$base"
+ src="../../../../$file"
+ ${RM} -f $dest
+ ${LN} -sf $src $dest
+ done
+ ;;
+
+DEINSTALL)
+ for file in ${FONTFILES}; do
+ base=`${BASENAME} $file`
+ dest="${GS_RESOURCEDIR}/CIDFont/$base"
+ ${RM} -f $dest
+ done
+ ;;
+esac