| 88 | |
| 89 | # Japanese Hiragino font support |
| 90 | variant hiragino { |
| 91 | master_sites-append http://www.interq.or.jp/mars/cherry/mac/:hiragino |
| 92 | distfiles-append Font.tar.bz2:hiragino |
| 93 | checksums-append Font.tar.bz2 md5 e612110d5c365eb59b47d81ec1d2a298 \ |
| 94 | sha1 d027e4c2e53011c4a7853b8b87b498911dc16cd3 \ |
| 95 | rmd160 19f0b37df2d52b3eb4d4cd9fb9c74c4f22023281 |
| 96 | post-extract { |
| 97 | system "cd ${workpath}/${distname}/Resource && bzcat -dc ${distpath}/Font.tar.bz2 | tar xf -" |
| 98 | } |
| 99 | post-destroot { |
| 100 | set gsresourcedir ${destroot}${prefix}/share/${name}/${version}/Resource |
| 101 | xinstall -m 755 -d ${gsresourcedir}/CIDFont |
| 102 | system "ln -s \"/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf\" ${gsresourcedir}/CIDFont/HiraKakuPro-W3" |
| 103 | system "ln -s \"/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf\" ${gsresourcedir}/CIDFont/HiraKakuPro-W6" |
| 104 | system "ln -s \"/System/Library/Fonts/ヒラギノ角ゴ Std W8.otf\" ${gsresourcedir}/CIDFont/HiraKakuStd-W8" |
| 105 | system "ln -s \"/System/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf\" ${gsresourcedir}/CIDFont/HiraMaruPro-W4" |
| 106 | system "ln -s \"/System/Library/Fonts/ヒラギノ明朝 Pro W3.otf\" ${gsresourcedir}/CIDFont/HiraMinPro-W3" |
| 107 | system "ln -s \"/System/Library/Fonts/ヒラギノ明朝 Pro W6.otf\" ${gsresourcedir}/CIDFont/HiraMinPro-W6" |
| 108 | |
| 109 | set cidfmap ${destroot}${prefix}/share/${name}/${version}/lib/cidfmap |
| 110 | system "echo \"/Ryumin-Light /HiraMinPro-W3 ;\" >> ${cidfmap}" |
| 111 | system "echo \"/Ryumin-Regular /HiraMinPro-W6 ;\" >> ${cidfmap}" |
| 112 | system "echo \"/FutoMinA101-Bold /HiraKakuStd-W8 ;\" >> ${cidfmap}" |
| 113 | system "echo \"/GothicBBB-Medium /HiraKakuPro-W3 ;\" >> ${cidfmap}" |
| 114 | system "echo \"/FutoGoB101-Bold /HiraKakuPro-W6 ;\" >> ${cidfmap}" |
| 115 | system "echo \"/Jun101-Light /HiraMaruPro-W4 ;\" >> ${cidfmap}" |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | # Adobe Japan 1-6 (Japanese) CMap support |
| 120 | variant aj16 { |
| 121 | master_sites-append http://examples.oreilly.de/english_examples/nutshell/cjkv/adobe/:aj16 \ |
| 122 | ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/:aj16 |
| 123 | distfiles-append aj16.tar.Z:aj16 |
| 124 | checksums-append aj16.tar.Z md5 1d17e5f53d20ba8b8abcaeae3300aa26 \ |
| 125 | sha1 13396c4af952ee405c16459b83843711f029d63a \ |
| 126 | rmd160 8e63a74f14dc9eaa1dfd5a847edc43302244bd46 |
| 127 | post-extract { |
| 128 | system "cd ${workpath} && zcat -dc ${distpath}/aj16.tar.Z | tar xf -" |
| 129 | system "cp ${workpath}/aj16/CMap/* ${workpath}/${distname}/Resource/CMap/" |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | # Adobe GB 1-4 (Traditional Chinese) CMap support |
| 134 | variant ag14 { |
| 135 | master_sites-append http://examples.oreilly.de/english_examples/nutshell/cjkv/adobe/:ag14 \ |
| 136 | ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/:ag14 |
| 137 | distfiles-append ag14.tar.Z:ag14 |
| 138 | checksums-append ag14.tar.Z md5 f9cad1b32e56f65339da26266f568e97 \ |
| 139 | sha1 8728580d9ea74fad1245d54ad16243220eaae077 \ |
| 140 | rmd160 162041c3c7db71c0e004f5a5f823a2cfc5837488 |
| 141 | post-extract { |
| 142 | system "cd ${workpath} && zcat -dc ${distpath}/ag14.tar.Z | tar xf -" |
| 143 | system "cp ${workpath}/ag14/CMap/* ${workpath}/${distname}/Resource/CMap/" |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | # Adobe CNS 1-5 (Simplified Chinese) CMap support |
| 148 | variant ac15 { |
| 149 | master_sites-append http://examples.oreilly.de/english_examples/nutshell/cjkv/adobe/:ac15 \ |
| 150 | ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/:ac15 |
| 151 | distfiles-append ac15.tar.Z:ac15 |
| 152 | checksums-append ac15.tar.Z md5 a9d876f28dde1d4a0a6571eb0e281761 \ |
| 153 | sha1 257b0d4bc3547af1aee09e34cc00f747de94a7eb \ |
| 154 | rmd160 ec4c07cd521cc906711c649b63e9c0a94038b0f7 |
| 155 | post-extract { |
| 156 | system "cd ${workpath} && zcat -dc ${distpath}/ac15.tar.Z | tar xf -" |
| 157 | system "cp ${workpath}/ac15/CMap/* ${workpath}/${distname}/Resource/CMap/" |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | # Adobe Korea 1-2 (Korean) CMap support |
| 162 | variant ak12 { |
| 163 | master_sites-append http://examples.oreilly.de/english_examples/nutshell/cjkv/adobe/:ak12 \ |
| 164 | ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/:ak12 |
| 165 | distfiles-append ak12.tar.Z:ak12 |
| 166 | checksums-append ak12.tar.Z md5 ef1d6470cd9bdfed1399b922f12432da \ |
| 167 | sha1 5ded7b548e01448e8c98d0b878a6b996cd6fa7cc \ |
| 168 | rmd160 968f2807ae4a97e6c75b1a26e32f693b3e8803d4 |
| 169 | post-extract { |
| 170 | system "cd ${workpath} && zcat -dc ${distpath}/ak12.tar.Z | tar xf -" |
| 171 | system "cp ${workpath}/ak12/CMap/* ${workpath}/${distname}/Resource/CMap/" |
| 172 | } |
| 173 | } |