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.
This commit is contained in:
parent
979ed31b76
commit
2e16d6635a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53302
16 changed files with 217 additions and 0 deletions
|
@ -84,6 +84,7 @@
|
|||
SUBDIR += gal
|
||||
SUBDIR += gawk
|
||||
SUBDIR += gd
|
||||
SUBDIR += ghostscript-gnu-cjk
|
||||
SUBDIR += gicq
|
||||
SUBDIR += gn-gnspool
|
||||
SUBDIR += gn-mnews
|
||||
|
|
34
japanese/ghostscript-gnu-cjk/Makefile
Normal file
34
japanese/ghostscript-gnu-cjk/Makefile
Normal file
|
@ -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>
|
15
japanese/ghostscript-gnu-cjk/files/CIDFnmap.jp
Normal file
15
japanese/ghostscript-gnu-cjk/files/CIDFnmap.jp
Normal file
|
@ -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 ;
|
1
japanese/ghostscript-gnu-cjk/pkg-comment
Normal file
1
japanese/ghostscript-gnu-cjk/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
GNU ghostscript with Japanese Font support
|
14
japanese/ghostscript-gnu-cjk/pkg-descr
Normal file
14
japanese/ghostscript-gnu-cjk/pkg-descr
Normal file
|
@ -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!
|
8
japanese/ghostscript-gnu-cjk/pkg-plist
Normal file
8
japanese/ghostscript-gnu-cjk/pkg-plist
Normal file
|
@ -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
|
34
japanese/ghostscript-gnu-jpnfont/Makefile
Normal file
34
japanese/ghostscript-gnu-jpnfont/Makefile
Normal file
|
@ -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>
|
15
japanese/ghostscript-gnu-jpnfont/files/CIDFnmap.jp
Normal file
15
japanese/ghostscript-gnu-jpnfont/files/CIDFnmap.jp
Normal file
|
@ -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 ;
|
1
japanese/ghostscript-gnu-jpnfont/pkg-comment
Normal file
1
japanese/ghostscript-gnu-jpnfont/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
GNU ghostscript with Japanese Font support
|
14
japanese/ghostscript-gnu-jpnfont/pkg-descr
Normal file
14
japanese/ghostscript-gnu-jpnfont/pkg-descr
Normal file
|
@ -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!
|
8
japanese/ghostscript-gnu-jpnfont/pkg-plist
Normal file
8
japanese/ghostscript-gnu-jpnfont/pkg-plist
Normal file
|
@ -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
|
34
print/ghostscript7-jpnfont/Makefile
Normal file
34
print/ghostscript7-jpnfont/Makefile
Normal file
|
@ -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>
|
15
print/ghostscript7-jpnfont/files/CIDFnmap.jp
Normal file
15
print/ghostscript7-jpnfont/files/CIDFnmap.jp
Normal file
|
@ -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 ;
|
1
print/ghostscript7-jpnfont/pkg-comment
Normal file
1
print/ghostscript7-jpnfont/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
GNU ghostscript with Japanese Font support
|
14
print/ghostscript7-jpnfont/pkg-descr
Normal file
14
print/ghostscript7-jpnfont/pkg-descr
Normal file
|
@ -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!
|
8
print/ghostscript7-jpnfont/pkg-plist
Normal file
8
print/ghostscript7-jpnfont/pkg-plist
Normal file
|
@ -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
|
Loading…
Reference in a new issue