summaryrefslogtreecommitdiff
path: root/fonts/ghostscript-cmaps
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-13 22:35:49 +0000
committerjlam <jlam@pkgsrc.org>2002-09-13 22:35:49 +0000
commitdf8b68c0a694989ad257ab067344909ac786e4cd (patch)
tree7375c56e6df9595253242891d0ddb53541f53f81 /fonts/ghostscript-cmaps
parent0dfbee6991d0b47cdc6f1ecc218e6ea62ba3eacc (diff)
downloadpkgsrc-df8b68c0a694989ad257ab067344909ac786e4cd.tar.gz
Initial import of ghostscript-cmaps-20020913.
This package enables Ghostscript to use the CMap files provided in the adobe-cmaps package.
Diffstat (limited to 'fonts/ghostscript-cmaps')
-rw-r--r--fonts/ghostscript-cmaps/DESCR2
-rw-r--r--fonts/ghostscript-cmaps/INSTALL32
-rw-r--r--fonts/ghostscript-cmaps/Makefile34
-rw-r--r--fonts/ghostscript-cmaps/PLIST2
4 files changed, 70 insertions, 0 deletions
diff --git a/fonts/ghostscript-cmaps/DESCR b/fonts/ghostscript-cmaps/DESCR
new file mode 100644
index 00000000000..5b9826c160c
--- /dev/null
+++ b/fonts/ghostscript-cmaps/DESCR
@@ -0,0 +1,2 @@
+This package enables Ghostscript to use the CMap files provided in the
+adobe-cmaps package.
diff --git a/fonts/ghostscript-cmaps/INSTALL b/fonts/ghostscript-cmaps/INSTALL
new file mode 100644
index 00000000000..cec0411abdf
--- /dev/null
+++ b/fonts/ghostscript-cmaps/INSTALL
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2002/09/13 22:35:49 jlam Exp $
+
+ADOBE_RESOURCEDIR="@ADOBE_RESOURCEDIR@"
+GS_RESOURCEDIR="@GS_RESOURCEDIR@"
+PKG_INFO="@PKG_INFO@"
+
+FONTFILES=` \
+ ${PKG_INFO} -f adobe-cmaps | \
+ ${AWK} '/File:.*\/Resource\/CMap\// { print $2 }' \
+`
+
+case ${STAGE} in
+POST-INSTALL)
+ for file in ${FONTFILES}; do
+ base=`${BASENAME} $file`
+ dest="${GS_RESOURCEDIR}/CMap/$base"
+ src="../../../../$file"
+ ${RM} -f $dest
+ ${LN} -sf $src $dest
+ done
+ ;;
+
+DEINSTALL)
+ for file in ${FONTFILES}; do
+ fontbase=`${BASENAME} $file`
+ dest="${GS_RESOURCEDIR}/CMap/$base"
+ ${RM} -f $dest
+ done
+ ;;
+esac
diff --git a/fonts/ghostscript-cmaps/Makefile b/fonts/ghostscript-cmaps/Makefile
new file mode 100644
index 00000000000..4b67886062b
--- /dev/null
+++ b/fonts/ghostscript-cmaps/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/13 22:35:49 jlam Exp $
+
+DISTNAME= ghostscript-cmaps-20020913
+CATEGORIES= fonts
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+DEPENDS+= adobe-cmaps>=20020913:../../fonts/adobe-cmaps
+
+MAINTAINER= jlam@netbsd.org
+COMMENT= CMap resources for Ghostscript
+
+GHOSTSCRIPT_REQD= 6.53
+
+ADOBE_RESOURCEDIR= ${PREFIX}/share/Adobe/Resource
+GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/Resource
+
+EXTRACT_ONLY= # empty
+NO_CONFIGURE= # defined
+NO_BUILD= # defined
+
+DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
+INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
+
+FILES_SUBST+= ADOBE_RESOURCEDIR=${ADOBE_RESOURCEDIR}
+FILES_SUBST+= GS_RESOURCEDIR=${GS_RESOURCEDIR}
+FILES_SUBST+= PKG_INFO=${PKG_TOOLS_BIN}/pkg_info
+
+MAKE_DIRS= ${GS_RESOURCEDIR} ${GS_RESOURCEDIR}/CMap
+
+do-install: # nothing
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fonts/ghostscript-cmaps/PLIST b/fonts/ghostscript-cmaps/PLIST
new file mode 100644
index 00000000000..bfd86fb8cc4
--- /dev/null
+++ b/fonts/ghostscript-cmaps/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/13 22:35:49 jlam Exp $
+@comment empty packing list