aboutsummaryrefslogtreecommitdiff
path: root/print/ghostscript7-jpnfont
diff options
context:
space:
mode:
authorYoshio MITA <mita@FreeBSD.org>2002-01-18 15:29:13 +0000
committerYoshio MITA <mita@FreeBSD.org>2002-01-18 15:29:13 +0000
commit2e16d6635aa20a1e196fc594db8326c4ea88388e (patch)
tree4962e9c58100183160a46cce1b702f5539f2f64e /print/ghostscript7-jpnfont
parent979ed31b76fdce3598a0ae8adb6ab670ae33a78e (diff)
downloadports-2e16d6635aa20a1e196fc594db8326c4ea88388e.tar.gz
ports-2e16d6635aa20a1e196fc594db8326c4ea88388e.zip
ghostscript-gnu-cjk Japanese resource installation port.
After long discussions in ports-jp@jp.FreeBSD.org ML, we concluded having print/ghostscript-gnu-cjk port and resource installation port.
Notes
Notes: svn path=/head/; revision=53302
Diffstat (limited to 'print/ghostscript7-jpnfont')
-rw-r--r--print/ghostscript7-jpnfont/Makefile34
-rw-r--r--print/ghostscript7-jpnfont/files/CIDFnmap.jp15
-rw-r--r--print/ghostscript7-jpnfont/pkg-comment1
-rw-r--r--print/ghostscript7-jpnfont/pkg-descr14
-rw-r--r--print/ghostscript7-jpnfont/pkg-plist8
5 files changed, 72 insertions, 0 deletions
diff --git a/print/ghostscript7-jpnfont/Makefile b/print/ghostscript7-jpnfont/Makefile
new file mode 100644
index 000000000000..4a93fb0bd4ca
--- /dev/null
+++ b/print/ghostscript7-jpnfont/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: ghostscript
+# Date created: 14 Jan 2002
+# Whom: Mita Yoshio <mita@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ghostscript
+PORTVERSION= 6.52
+CATEGORIES= japanese print
+MASTER_SITES= # nonexistent
+PKGNAMESUFFIX= -gnu-cjk
+DISTNAME= # nonexistent
+DISTFILES= # empty
+
+MAINTAINER= mita@FreeBSD.org
+
+RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/Resource/cid.sh:${PORTSDIR}/print/ghostscript-gnu-cjk\
+ ${X11BASE}/lib/X11/fonts/TrueType/kochi-mincho.ttf:${PORTSDIR}/japanese/kochi-ttfonts
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+GSLIB_DIR= ${PREFIX}/share/ghostscript/${PORTVERSION}/lib
+PLIST_SUB= GS_VERSION=${PORTVERSION}
+
+do-install:
+ ${INSTALL_DATA} ${FILESDIR}/CIDFnmap.jp ${GSLIB_DIR}
+ ${MV} ${GSLIB_DIR}/CIDFnmap ${GSLIB_DIR}/CIDFnmap.orig
+ ${GREP} -v -e "CIDFnmap.jp" ${GSLIB_DIR}/CIDFnmap.orig > \
+ ${GSLIB_DIR}/CIDFnmap
+ ${ECHO} '(CIDFnmap.jp) .runlibfile' >> ${GSLIB_DIR}/CIDFnmap
+
+.include <bsd.port.mk>
diff --git a/print/ghostscript7-jpnfont/files/CIDFnmap.jp b/print/ghostscript7-jpnfont/files/CIDFnmap.jp
new file mode 100644
index 000000000000..c49344d4e544
--- /dev/null
+++ b/print/ghostscript7-jpnfont/files/CIDFnmap.jp
@@ -0,0 +1,15 @@
+% Japanese Truetype Fonts (Kochi)
+/Kochi-Mincho (/usr/X11R6/lib/X11/fonts/TrueType/kochi-mincho.ttf) 1 /Adobe-Japan1 ;
+/Kochi-Gothic (/usr/X11R6/lib/X11/fonts/TrueType/kochi-gothic.ttf) 1 /Adobe-Japan1 ;
+
+%
+% Convenient aliases for PS files on Japanese PostScript printer
+%
+/Ryumin-Light /Kochi-Mincho ;
+/Ryumin-Light-H /Kochi-Mincho ;
+/Ryumin-Light-V /Kochi-Mincho ;
+/GothicBBB-Medium /Kochi-Gothic ;
+/GothicBBB-Medium-H /Kochi-Gothic ;
+/GothicBBB-Medium-V /Kochi-Gothic ;
+/HeiseiMin-W3H /Kochi-Mincho ;
+/HeiseiKakuGo-W5H /Kochi-Gothic ;
diff --git a/print/ghostscript7-jpnfont/pkg-comment b/print/ghostscript7-jpnfont/pkg-comment
new file mode 100644
index 000000000000..943c826e0d1d
--- /dev/null
+++ b/print/ghostscript7-jpnfont/pkg-comment
@@ -0,0 +1 @@
+GNU ghostscript with Japanese Font support
diff --git a/print/ghostscript7-jpnfont/pkg-descr b/print/ghostscript7-jpnfont/pkg-descr
new file mode 100644
index 000000000000..51496690a839
--- /dev/null
+++ b/print/ghostscript7-jpnfont/pkg-descr
@@ -0,0 +1,14 @@
+GNU Postscript/PDF interpriter.
+This port depends on print/ghostscript-gnu-cjk that is internationalized
+version of ghostscript. This port simply adds necessary configuration
+as /usr/local/share/ghostscript/*/lib/CIDFnmap.jp
+
+To install more fancy fonts edit the CIDFnmap.jp file.
+To know how to edit, /usr/local/share/doc/ghostscript/CJK/README.jp
+is helpful.
+
+Internationalization information:
+For those who are interested in reading also Chinese and Korean PS files,
+one can simply add either or both of korean/ghostscript-gnu-cjk and
+chinese/ghostscript-gnu-cjk. There is no conflict in adding and removing
+these ports. Have fun!
diff --git a/print/ghostscript7-jpnfont/pkg-plist b/print/ghostscript7-jpnfont/pkg-plist
new file mode 100644
index 000000000000..f778a437aafc
--- /dev/null
+++ b/print/ghostscript7-jpnfont/pkg-plist
@@ -0,0 +1,8 @@
+share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.jp
+@exec /bin/mv %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig
+@exec /usr/bin/grep -v -e 'CIDFnmap.jp' %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig > %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap
+@exec echo '(CIDFnmap.jp) .runlibfile' >> %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap
+@exec /bin/rm %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig
+@unexec /bin/mv %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig
+@unexec /usr/bin/grep -v -e 'CIDFnmap.jp' %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig > %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap
+@unexec /bin/rm %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig