Sun Oct 7 14:22:52 2012 UTC ()
In syncing print/ghostscript bump 8.71 to 9.05,
and providing easy installation for Japanese font for ghostscript,
new package imported (from wip).
Ryumin-Light and GothicBBB are the most frequently used fonts
in Japanese documents. This package will add the capability for
gs to display Japanese document with those reference.
Options to choose alternate fonts for them, see options.mk,
and set to PKG_OPTIONS.gcr_type, currently default is ipa.
(mef)
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/DESCR
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/Makefile
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/PLIST
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/options.mk
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H
diff -r0 -r1.1 pkgsrc/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H
Ryumin-Light and GothicBBB are the most frequently used fonts
in Japanese documents. This package will add the capability for
gs to display Japanese document with those reference.
Options to choose alternate fonts for them, see options.mk,
and set to PKG_OPTIONS.gcr_type, currently default is ipa.
# $NetBSD: Makefile,v 1.1 2012/10/07 14:22:52 mef Exp $
DISTNAME= ghostscript-cidfonts-ryumin-${GS_VERSION}
DISTFILES= # empty
CATEGORIES= fonts
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Enable Ryumin-Light and GothicBBB for ghostscript
LICENSE= generic-nonlicense
.include "../../print/ghostscript/Makefile.common"
GS_RESOURCEDIR= share/ghostscript/${PKGVERSION}/Resource
WRKSRC= ${WRKDIR}/gcr
INSTALLATION_DIRS+= ${GS_RESOURCEDIR}/Font
INSTALLATION_DIRS+= ${GS_RESOURCEDIR}/Init
DEPENDS+= ghostscript>=9.05:../../print/ghostscript
DEPENDS+= ghostscript-cidfonts>=20000901nb3:../../fonts/ghostscript-cidfonts
BUILD_DEFS+= GS_CIDFMAP
# used in options.mk to switch adobe or ttf
SUBST_VARS= GCR_INSTALL_TYPE
.include "options.mk"
.if !empty(GS_CIDFMAP)
SUBST_CLASSES+= ttf_path
SUBST_STAGE.ttf_path= post-build
SUBST_MESSAGE.ttf_path=Fixing ttf install directory in cidfmap
SUBST_FILES.ttf_path= ${GS_CIDFMAP}
SUBST_SED.ttf_path= -e 's|%%PREFIX%%|${PREFIX}|'
.endif
# To edit %%PREFIX%% in cidfmap before installation by SUBST,
do-build:
.if !empty(GS_CIDFMAP)
${MKDIR} ${WRKSRC}
${CP} files/${GS_CIDFMAP} ${WRKSRC}
.endif
do-install:
.if !empty(GS_CIDFMAP)
${INSTALL_DATA} ${WRKSRC}/${GS_CIDFMAP} ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Init/cidfmap
.endif
# mainly Ryumin and GothicBBB
${INSTALL_DATA} files/${GCR_INSTALL_TYPE}/[GR]* ${DESTDIR}${PREFIX}/${GS_RESOURCEDIR}/Font
# no need to edit cidfmap
.if empty(GS_CIDFMAP)
NO_BUILD= yes
.endif
NO_CHECKSUM= yes
NO_CONFIGURE= yes
.include "../../print/ghostscript/buildlink3.mk"
.if empty(PKG_BUILD_OPTIONS.ghostscript:Mdisable-compile-inits)
PKG_FAIL_REASON+= 'You need to set PKG_OPTIONS.ghostscript+= disable-compile-inits, at its compile time.'
.endif
#.include "../../fonts/adobe-cidfonts/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2012/10/07 14:22:52 mef Exp $
share/ghostscript/${PKGVERSION}/Resource/Font/GothicBBB-Medium-H
share/ghostscript/${PKGVERSION}/Resource/Font/GothicBBB-Medium-EUC-H
share/ghostscript/${PKGVERSION}/Resource/Font/Ryumin-Light-EUC-H
share/ghostscript/${PKGVERSION}/Resource/Font/Ryumin-Light-H
share/ghostscript/${PKGVERSION}/Resource/Font/Ryumin-Light-Identity-H
share/ghostscript/${PKGVERSION}/Resource/Init/cidfmap
# $NetBSD: options.mk,v 1.1 2012/10/07 14:22:52 mef Exp $
# gcr = ghostscript-cidfonts-ryumin
PKG_OPTIONS_VAR= PKG_OPTIONS.gcr_type
PKG_SUPPORTED_OPTIONS= ipa adobe-cidfonts umefont motoya
# Other than adobe-cidfonts options may have problem on dvipdfmx -> gs invocation
# In case for includegraphicx eps file
PKG_SUGGESTED_OPTIONS= adobe-cidfonts
.include "../../mk/bsd.options.mk"
# -------- Adobe CID font requested -------------
.if !empty(PKG_OPTIONS:Madobe-cidfonts)
GS_CIDFMAP= cidfmap-adobe
DEPENDS+= adobe-cidfonts-[0-9]*:../../fonts/adobe-cidfonts
DEPENDS+= ghostscript-cidfonts-[0-9]*:../../fonts/ghostscript-cidfonts
GCR_INSTALL_TYPE= adobe
.endif
# -------- motoya-fonts (TTF) requested -------------
.if !empty(PKG_OPTIONS:Mmotoya)
GS_CIDFMAP= cidfmap-motoya
DEPENDS+= ipafont-[0-9]*:../../fonts/motoya-fonts
GCR_INSTALL_TYPE= ttf
.endif
# -------- umefont (TTF) requested -------------
.if !empty(PKG_OPTIONS:Mumefont)
GS_CIDFMAP= cidfmap-umefont
DEPENDS+= ipafont-[0-9]*:../../fonts/umefont-ttf
GCR_INSTALL_TYPE= ttf
.endif
# -------- IPA (TTF) font requested -------------
.if !empty(PKG_OPTIONS:Mipa)
GS_CIDFMAP= cidfmap-ipa
DEPENDS+= ipafont-[0-9]*:../../fonts/ipafont
GCR_INSTALL_TYPE= ttf
.endif
# fonts/ja-sazanami-ttf/DESCR:Free Japanese TrueType font based on Wada lab. font (CLWFK) and
# fonts/kochi-ttf/DESCR:Kochi-gothic is a free Japanese TrueType font developed by Yasuyuki Furukawa.
# fonts/monafonts-ttf/DESCR:Japanese Windows font. This is named after ascii art 'mona' used in
# fonts/motoya-fonts/DESCR:Motoya fonts for Android handset display.
# fonts/umefont-ttf/DESCR:This package contains 18 Japanese fonts of Umefont family.
# fonts/vlgothic-ttf/DESCR:Japanese TrueType font using by Vine Linux.
%!
% $Id: cidfmap-adobe,v 1.1 2012/10/07 14:22:52 mef Exp $
% This is a sample map file for CIDFont category.
%
% The map is a set of records, which must use one of the two formats :
%
% 1. A substutution of a CIF font with another CID font :
%
% /substituted /original ;
%
% Where 'substituted' is a name being used in a document,
% 'original' is a name of an available resource.
%
% 2. A substutution of a CIF font with a True Type font :
%
% /substituted << /FileType /TrueType /Path (path) /SunfontID 1 /CSI [(ordering) supplement] >> ;
%
% Where 'substituted' is a name being used in a document,
% 'path' is a path to a True Type font file,
% 'ordering' is a value of Ordering required for CIDSystemInfo dictionary,
% 'supplement' is a value of Supplement required for CIDSystemInfo dictionary.
%
% Examples :
%
% /ShinGo-Bold /HeiseiKakuGo-W5 ;
% /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
%
/Ryumin-Light-H /WadaMin-Regular
/Ryumin-Light-EUC-H /WadaMin-Regular
/GothicBBB-Medium /WadaMin-Bold
/Ryumin-Light << /FileType /TrueType /Path (%%PREFIX%%/lib/X11/fonts/TTF/ipam.ttf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
/GothicBBB-Medium << /FileType /TrueType /Path (%%PREFIX%%/lib/X11/fonts/TTF/ipag.ttf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
% $NetBSD: cidfmap-motoya,v 1.1 2012/10/07 14:22:52 mef Exp $
%
/Ryumin-Light << /FileType /TrueType /Path (%%PREFIX%%/lib/X11/fonts/TTF/MTLmr3m.ttf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
/GothicBBB-Medium << /FileType /TrueType /Path (%%PREFIX%%/lib/X11/fonts/TTF/MTLc3m.ttf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
% $NetBSD: cidfmap-umefont,v 1.1 2012/10/07 14:22:52 mef Exp $
%
/Ryumin-Light << /FileType /TrueType /Path (%%PREFIX%%/lib/X11/fonts/TTF/ume-tgo4.ttf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
/GothicBBB-Medium << /FileType /TrueType /Path (%%PREFIX%%/lib/X11/fonts/TTF/ume-tmo3.ttf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
%% $NetBSD: GothicBBB-Medium-EUC-H,v 1.1 2012/10/07 14:22:52 mef Exp $
/GothicBBB-Medium-H
/EUC-H /CMap
findresource
[/WadaMin-Bold /CIDFont findresource]
composefont pop
%% $NetBSD: GothicBBB-Medium-H,v 1.1 2012/10/07 14:22:52 mef Exp $
/GothicBBB-Medium-H
/H /CMap
findresource
[/WadaMin-Bold /CIDFont findresource]
composefont pop
%% $NetBSD: Ryumin-Light-EUC-H,v 1.1 2012/10/07 14:22:52 mef Exp $
/Ryumin-Light-EUC-H
/EUC-H /CMap findresource
[/WadaMin-Regular /CIDFont findresource]
composefont pop
%% $NetBSD: Ryumin-Light-H,v 1.1 2012/10/07 14:22:52 mef Exp $
/Ryumin-Light-H
/H /CMap findresource
[/WadaMin-Regular /CIDFont findresource]
composefont pop
%% $NetBSD: Ryumin-Light-Identity-H,v 1.1 2012/10/07 14:22:52 mef Exp $
/Ryumin-Light-Identity-H
/H /CMap findresource
[/WadaMin-Regular /CIDFont findresource]
composefont pop
/GothicBBB-Medium-EUC-H
/EUC-H /CMap findresource
[/GothicBBB-Medium /CIDFont findresource]
composefont pop
/GothicBBB-Medium-H
/H /CMap findresource
[/GothicBBB-Medium /CIDFont findresource]
composefont pop
/Ryumin-Light-EUC-H
/EUC-H /CMap findresource
[/Ryumin-Light /CIDFont findresource]
composefont pop
/Ryumin-Light-H
/H /CMap findresource
[/Ryumin-Light /CIDFont findresource]
composefont pop
/Ryumin-Light-Identity-H
/H /CMap findresource
[/Ryumin-Light /CIDFont findresource]
composefont pop