diff options
author | mef <mef@pkgsrc.org> | 2012-10-07 14:22:52 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2012-10-07 14:22:52 +0000 |
commit | 96e8eb7874de07ae3f67c367d4659970cb73363e (patch) | |
tree | d1ac54f97ce0413b1dbf69c95d450bf7663798d1 /fonts | |
parent | 04abe6ecffcc1e95c466af7cca7772fd475961fe (diff) | |
download | pkgsrc-96e8eb7874de07ae3f67c367d4659970cb73363e.tar.gz |
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 (limited to 'fonts')
18 files changed, 209 insertions, 0 deletions
diff --git a/fonts/ghostscript-cidfonts-ryumin/DESCR b/fonts/ghostscript-cidfonts-ryumin/DESCR new file mode 100644 index 00000000000..88df0fd380f --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/DESCR @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/Makefile b/fonts/ghostscript-cidfonts-ryumin/Makefile new file mode 100644 index 00000000000..7512f49be57 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/Makefile @@ -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 +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 --git a/fonts/ghostscript-cidfonts-ryumin/PLIST b/fonts/ghostscript-cidfonts-ryumin/PLIST new file mode 100644 index 00000000000..567b8c57d8a --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/PLIST @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H b/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H new file mode 100644 index 00000000000..d57d5973e3e --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-EUC-H @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H b/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H new file mode 100644 index 00000000000..ad98b2075c9 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/GothicBBB-Medium-H @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H new file mode 100644 index 00000000000..12d087df6ad --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-EUC-H @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H new file mode 100644 index 00000000000..bddc0451c75 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-H @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H new file mode 100644 index 00000000000..9b631123855 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/adobe/Ryumin-Light-Identity-H @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe new file mode 100644 index 00000000000..4c20bc9c6a6 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-adobe @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa new file mode 100644 index 00000000000..d9e46f4d093 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-ipa @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya new file mode 100644 index 00000000000..3502136f49f --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-motoya @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont new file mode 100644 index 00000000000..45d3c80770d --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/cidfmap-umefont @@ -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 --git a/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H b/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H new file mode 100644 index 00000000000..3bb98ab437e --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-EUC-H @@ -0,0 +1,4 @@ +/GothicBBB-Medium-EUC-H +/EUC-H /CMap findresource +[/GothicBBB-Medium /CIDFont findresource] +composefont pop diff --git a/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H b/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H new file mode 100644 index 00000000000..bb0c66e5144 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/GothicBBB-Medium-H @@ -0,0 +1,4 @@ +/GothicBBB-Medium-H +/H /CMap findresource +[/GothicBBB-Medium /CIDFont findresource] +composefont pop diff --git a/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H new file mode 100644 index 00000000000..41281fd0f37 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-EUC-H @@ -0,0 +1,4 @@ +/Ryumin-Light-EUC-H +/EUC-H /CMap findresource +[/Ryumin-Light /CIDFont findresource] +composefont pop diff --git a/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H new file mode 100644 index 00000000000..588b86faa38 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-H @@ -0,0 +1,4 @@ +/Ryumin-Light-H +/H /CMap findresource +[/Ryumin-Light /CIDFont findresource] +composefont pop diff --git a/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H new file mode 100644 index 00000000000..b616d381051 --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/files/ttf/Ryumin-Light-Identity-H @@ -0,0 +1,4 @@ +/Ryumin-Light-Identity-H +/H /CMap findresource +[/Ryumin-Light /CIDFont findresource] +composefont pop diff --git a/fonts/ghostscript-cidfonts-ryumin/options.mk b/fonts/ghostscript-cidfonts-ryumin/options.mk new file mode 100644 index 00000000000..fc1d77e613e --- /dev/null +++ b/fonts/ghostscript-cidfonts-ryumin/options.mk @@ -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. |