diff options
author | mita <mita@FreeBSD.org> | 2002-01-18 23:29:13 +0800 |
---|---|---|
committer | mita <mita@FreeBSD.org> | 2002-01-18 23:29:13 +0800 |
commit | bcb938c138f42a83e7f57b058a7b24d888dec96a (patch) | |
tree | 0884dd92cfe98d86245bd8ff8711cd9c42d16f5f /print/ghostscript7-jpnfont | |
parent | f15f4813327ff96f30e6ea801df95b56b3759e1f (diff) | |
download | freebsd-ports-gnome-bcb938c138f42a83e7f57b058a7b24d888dec96a.tar.gz freebsd-ports-gnome-bcb938c138f42a83e7f57b058a7b24d888dec96a.tar.zst freebsd-ports-gnome-bcb938c138f42a83e7f57b058a7b24d888dec96a.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.
Diffstat (limited to 'print/ghostscript7-jpnfont')
-rw-r--r-- | print/ghostscript7-jpnfont/Makefile | 34 | ||||
-rw-r--r-- | print/ghostscript7-jpnfont/files/CIDFnmap.jp | 15 | ||||
-rw-r--r-- | print/ghostscript7-jpnfont/pkg-comment | 1 | ||||
-rw-r--r-- | print/ghostscript7-jpnfont/pkg-descr | 14 | ||||
-rw-r--r-- | print/ghostscript7-jpnfont/pkg-plist | 8 |
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 |