pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/fonts/ghostscript-cidfonts-ryumin In syncing print/gho...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf0125aa899c
branches:  trunk
changeset: 609617:cf0125aa899c
user:      mef <mef%pkgsrc.org@localhost>
date:      Sun Oct 07 14:22:52 2012 +0000

description:
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.

diffstat:

 fonts/ghostscript-cidfonts-ryumin/DESCR                               |   5 +
 fonts/ghostscript-cidfonts-ryumin/Makefile                            |  63 ++++++++++
 fonts/ghostscript-cidfonts-ryumin/PLIST                               |   7 +
 fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H  |   6 +
 fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H      |   6 +
 fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H      |   5 +
 fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H          |   5 +
 fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H |   5 +
 fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe                 |  31 ++++
 fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa                   |   2 +
 fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya                |   4 +
 fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont               |   4 +
 fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H    |   4 +
 fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H        |   4 +
 fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H        |   4 +
 fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H            |   4 +
 fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H   |   4 +
 fonts/ghostscript-cidfonts-ryumin/options.mk                          |  46 +++++++
 18 files changed, 209 insertions(+), 0 deletions(-)

diffs (281 lines):

diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/DESCR   Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,5 @@
+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.
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/Makefile        Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,63 @@
+# $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@localhost
+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"
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/PLIST   Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,7 @@
+@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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H      Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,6 @@
+%% $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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H  Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,6 @@
+%% $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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H  Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,5 @@
+%% $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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H      Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,5 @@
+%% $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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H     Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,5 @@
+%% $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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe     Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,31 @@
+%!
+% $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
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa       Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,2 @@
+/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] >> ;
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya    Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+% $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] >> ;
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont   Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+% $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] >> ;
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H        Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+/GothicBBB-Medium-EUC-H
+/EUC-H /CMap findresource
+[/GothicBBB-Medium /CIDFont findresource]
+composefont pop
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H    Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+/GothicBBB-Medium-H
+/H /CMap findresource
+[/GothicBBB-Medium /CIDFont findresource]
+composefont pop
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H    Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+/Ryumin-Light-EUC-H
+/EUC-H /CMap findresource
+[/Ryumin-Light /CIDFont findresource]
+composefont pop
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H        Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+/Ryumin-Light-H
+/H /CMap findresource
+[/Ryumin-Light /CIDFont findresource]
+composefont pop
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H       Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,4 @@
+/Ryumin-Light-Identity-H
+/H /CMap findresource
+[/Ryumin-Light /CIDFont findresource]
+composefont pop
diff -r 203ab31d7688 -r cf0125aa899c fonts/ghostscript-cidfonts-ryumin/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ghostscript-cidfonts-ryumin/options.mk      Sun Oct 07 14:22:52 2012 +0000
@@ -0,0 +1,46 @@
+# $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.



Home | Main Index | Thread Index | Old Index