diff options
author | mita <mita@FreeBSD.org> | 2002-01-19 00:26:58 +0800 |
---|---|---|
committer | mita <mita@FreeBSD.org> | 2002-01-19 00:26:58 +0800 |
commit | be3e791985ba5931851dbb5d74cbed2f78bb51ea (patch) | |
tree | 0a09f469b2cea1b5ab3d10913773cf6d7105ebd3 /korean/ghostscript-gnu-korfont | |
parent | bcb938c138f42a83e7f57b058a7b24d888dec96a (diff) | |
download | freebsd-ports-graphics-be3e791985ba5931851dbb5d74cbed2f78bb51ea.tar.gz freebsd-ports-graphics-be3e791985ba5931851dbb5d74cbed2f78bb51ea.tar.zst freebsd-ports-graphics-be3e791985ba5931851dbb5d74cbed2f78bb51ea.zip |
This port installs Korean resources used with print/ghostscript-gnu-cjk.
Diffstat (limited to 'korean/ghostscript-gnu-korfont')
-rw-r--r-- | korean/ghostscript-gnu-korfont/Makefile | 40 | ||||
-rw-r--r-- | korean/ghostscript-gnu-korfont/files/CIDFnmap.ko | 8 | ||||
-rw-r--r-- | korean/ghostscript-gnu-korfont/pkg-comment | 1 | ||||
-rw-r--r-- | korean/ghostscript-gnu-korfont/pkg-descr | 14 | ||||
-rw-r--r-- | korean/ghostscript-gnu-korfont/pkg-plist | 12 |
5 files changed, 75 insertions, 0 deletions
diff --git a/korean/ghostscript-gnu-korfont/Makefile b/korean/ghostscript-gnu-korfont/Makefile new file mode 100644 index 00000000000..d3c786f6d90 --- /dev/null +++ b/korean/ghostscript-gnu-korfont/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: ghostscript +# Date created: 14 Jan 2002 +# Whom: Mita Yoshio <mita@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ghostscript +PORTVERSION= 6.52 +CATEGORIES= korean 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\ + ${LOCALBASE}/share/ghostscript/fonts/Munhwa-Bold:${PORTSDIR}/korean/munhwafonts-cid + +NO_BUILD= yes +NO_WRKSUBDIR= yes + +GSLIB_DIR= ${PREFIX}/share/ghostscript/${PORTVERSION}/lib +PLIST_SUB= GS_VERSION=${PORTVERSION} +FONTS= Munhwa-Bold Munhwa-Regular \ + MunhwaGothic-Bold MunhwaGothic-Regular + +do-install: +.for i in ${FONTS} + ${LN} -sf ${PREFIX}/share/ghostscript/fonts/${i} \ + ${PREFIX}/share/ghostscript/Resource/CIDFont/ +.endfor + ${INSTALL_DATA} ${FILESDIR}/CIDFnmap.ko ${GSLIB_DIR} + ${MV} ${GSLIB_DIR}/CIDFnmap ${GSLIB_DIR}/CIDFnmap.orig.ko + ${GREP} -v -e "CIDFnmap.ko" ${GSLIB_DIR}/CIDFnmap.orig.ko > \ + ${GSLIB_DIR}/CIDFnmap + ${ECHO} '(CIDFnmap.ko) .runlibfile' >> ${GSLIB_DIR}/CIDFnmap + +.include <bsd.port.mk> diff --git a/korean/ghostscript-gnu-korfont/files/CIDFnmap.ko b/korean/ghostscript-gnu-korfont/files/CIDFnmap.ko new file mode 100644 index 00000000000..5f72b7018bb --- /dev/null +++ b/korean/ghostscript-gnu-korfont/files/CIDFnmap.ko @@ -0,0 +1,8 @@ +/Adobe-Korea1 /Munhwa-Regular ; + +% +% Convenient aliases for PS files on Korean PostScript printer +% +/HYGoThic-Medium /MunhwaGothic-Regular ; +/HYSMyeongJo-Medium /Munhwa-Regular ; +/HYRGoThic-Medium /MunhwaGothic-Bold ; diff --git a/korean/ghostscript-gnu-korfont/pkg-comment b/korean/ghostscript-gnu-korfont/pkg-comment new file mode 100644 index 00000000000..e1c9fb7c555 --- /dev/null +++ b/korean/ghostscript-gnu-korfont/pkg-comment @@ -0,0 +1 @@ +GNU ghostscript with Korean Font support diff --git a/korean/ghostscript-gnu-korfont/pkg-descr b/korean/ghostscript-gnu-korfont/pkg-descr new file mode 100644 index 00000000000..1d3c1060c1c --- /dev/null +++ b/korean/ghostscript-gnu-korfont/pkg-descr @@ -0,0 +1,14 @@ +GNU Postscript/PDF interpriter. +This port depends on print/ghostscript-cjk that is internationalized +version of ghostscript. This port simply adds necessary configuration +as /usr/local/share/ghostscript/*/lib/CIDFnmap.ko + +To install more fancy fonts edit the CIDFnmap.kr file. +To know how to edit, /usr/local/share/doc/ghostscript/CJK/README.kr +is helpful. + +Internationalization information: +For those who are interested in reading also Chinese and Japanese PS files, +one can simply add either or both of chinese/ghostscript-gnu-cjk and +japanese/ghostscript-gnu-cjk. There is no conflict in adding and removing +these ports. Have fun! diff --git a/korean/ghostscript-gnu-korfont/pkg-plist b/korean/ghostscript-gnu-korfont/pkg-plist new file mode 100644 index 00000000000..dba716e9000 --- /dev/null +++ b/korean/ghostscript-gnu-korfont/pkg-plist @@ -0,0 +1,12 @@ +share/ghostscript/Resource/CIDFont/Munhwa-Bold +share/ghostscript/Resource/CIDFont/Munhwa-Regular +share/ghostscript/Resource/CIDFont/MunhwaGothic-Bold +share/ghostscript/Resource/CIDFont/MunhwaGothic-Regular +share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.ko +@exec /bin/mv %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig.ko +@exec /usr/bin/grep -v -e 'CIDFnmap.ko' %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig.ko > %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap +@exec echo '(CIDFnmap.ko) .runlibfile' >> %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap +@exec /bin/rm %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig.ko +@unexec /bin/mv %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig.ko +@unexec /usr/bin/grep -v -e 'CIDFnmap.ko' %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig.ko > %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap +@unexec /bin/rm %D/share/ghostscript/%%GS_VERSION%%/lib/CIDFnmap.orig.ko |