[147875] trunk/dports/print/ghostscript-fonts-hiragino/Portfile
khindenburg at macports.org
khindenburg at macports.org
Tue Apr 19 17:29:58 PDT 2016
Revision: 147875
https://trac.macports.org/changeset/147875
Author: khindenburg at macports.org
Date: 2016-04-19 17:29:58 -0700 (Tue, 19 Apr 2016)
Log Message:
-----------
ghostscript-fonts-hiragino: update to 9.19; adjust folder paths per OS version; verified by patch provider #49279
Modified Paths:
--------------
trunk/dports/print/ghostscript-fonts-hiragino/Portfile
Modified: trunk/dports/print/ghostscript-fonts-hiragino/Portfile
===================================================================
--- trunk/dports/print/ghostscript-fonts-hiragino/Portfile 2016-04-19 20:29:53 UTC (rev 147874)
+++ trunk/dports/print/ghostscript-fonts-hiragino/Portfile 2016-04-20 00:29:58 UTC (rev 147875)
@@ -3,7 +3,7 @@
PortSystem 1.0
name ghostscript-fonts-hiragino
-version 9.16
+version 9.19
categories print japanese chinese
maintainers nomaintainer
description Hiragino font for ghostscript ${version}
@@ -33,35 +33,55 @@
build {}
destroot {
- if {${os.platform} eq "darwin" && ${os.major} <= 8} {
- # for Tiger or older
- set FontList {"/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 Adobe-Japan1 {GothicBBB-Medium A-OTF-GothicBBBPro-Medium}
- "/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 Adobe-Japan1 {FutoGoB101-Bold A-OTF-FutoGoB101Pro-Bold}
- "/System/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 Adobe-Japan1 {}
- "/System/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 Adobe-Japan1 {Jun101-Light A-OTF-Jun101Pro-Light}
- "/System/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 Adobe-Japan1 {Ryumin-Light A-OTF-RyuminPro-Light}
- "/System/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 Adobe-Japan1 {FutoMinA101-Bold A-OTF-FutoMinA101Pro-Bold}}
- } else {
- set FontList {"/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 Adobe-Japan1 {GothicBBB-Medium A-OTF-GothicBBBPro-Medium}
- "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 Adobe-Japan1 {FutoGoB101-Bold A-OTF-FutoGoB101Pro-Bold}
- "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 Adobe-Japan1 {}
- "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 Adobe-Japan1 {Jun101-Light A-OTF-Jun101Pro-Light}
- "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 Adobe-Japan1 {Ryumin-Light A-OTF-RyuminPro-Light}
- "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 Adobe-Japan1 {FutoMinA101-Bold A-OTF-FutoMinA101Pro-Bold}
- "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" HiraKakuProN-W3 Adobe-Japan1 {}
- "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" HiraKakuProN-W6 Adobe-Japan1 {}
- "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" HiraKakuStdN-W8 Adobe-Japan1 {}
- "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" HiraMaruProN-W4 Adobe-Japan1 {}
- "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3 Adobe-Japan1 {}
- "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6 Adobe-Japan1 {}}
+ if {${os.platform} eq "darwin"} {
+ if {${os.major} <= 8} {
+ # for Tiger or older
+ set FontList {"/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 Adobe-Japan1 {GothicBBB-Medium A-OTF-GothicBBBPro-Medium}
+ "/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 Adobe-Japan1 {FutoGoB101-Bold A-OTF-FutoGoB101Pro-Bold}
+ "/System/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 Adobe-Japan1 {}
+ "/System/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 Adobe-Japan1 {Jun101-Light A-OTF-Jun101Pro-Light}
+ "/System/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 Adobe-Japan1 {Ryumin-Light A-OTF-RyuminPro-Light}
+ "/System/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 Adobe-Japan1 {FutoMinA101-Bold A-OTF-FutoMinA101Pro-Bold}}
+ } elseif {${os.major} <= 14} {
+ # for Loaprd to Yosemite
+ set FontList {"/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 Adobe-Japan1 {GothicBBB-Medium A-OTF-GothicBBBPro-Medium}
+ "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 Adobe-Japan1 {FutoGoB101-Bold A-OTF-FutoGoB101Pro-Bold}
+ "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 Adobe-Japan1 {}
+ "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 Adobe-Japan1 {Jun101-Light A-OTF-Jun101Pro-Light}
+ "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 Adobe-Japan1 {Ryumin-Light A-OTF-RyuminPro-Light}
+ "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 Adobe-Japan1 {FutoMinA101-Bold A-OTF-FutoMinA101Pro-Bold}
+ "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" HiraKakuProN-W3 Adobe-Japan1 {}
+ "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" HiraKakuProN-W6 Adobe-Japan1 {}
+ "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" HiraKakuStdN-W8 Adobe-Japan1 {}
+ "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" HiraMaruProN-W4 Adobe-Japan1 {}
+ "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3 Adobe-Japan1 {}
+ "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6 Adobe-Japan1 {}}
+ } else {
+ set FontList {"${prefix}/share/fonts/otf/Hiragino/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 Adobe-Japan1 {GothicBBB-Medium A-OTF-GothicBBBPro-Medium}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 Adobe-Japan1 {FutoGoB101-Bold A-OTF-FutoGoB101Pro-Bold}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 Adobe-Japan1 {}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 Adobe-Japan1 {Jun101-Light A-OTF-Jun101Pro-Light}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 Adobe-Japan1 {Ryumin-Light A-OTF-RyuminPro-Light}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 Adobe-Japan1 {FutoMinA101-Bold A-OTF-FutoMinA101Pro-Bold}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ角ゴ ProN W3.otf" HiraKakuProN-W3 Adobe-Japan1 {}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ角ゴ ProN W6.otf" HiraKakuProN-W6 Adobe-Japan1 {}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ角ゴ StdN W8.otf" HiraKakuStdN-W8 Adobe-Japan1 {}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ丸ゴ ProN W4.otf" HiraMaruProN-W4 Adobe-Japan1 {}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3 Adobe-Japan1 {}
+ "${prefix}/share/fonts/otf/Hiragino/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6 Adobe-Japan1 {}}
+ }
}
if {${os.platform} eq "darwin"} {
- if {${os.major} >= 10} {
- # for SnowLeopard or newer
+ if {${os.major} >= 10 && ${os.major} <= 14} {
+ # for SnowLeopard to Yosemite
lappend FontList \
"/Library/Fonts/Hiragino Sans GB W3.otf" HiraginoSansGB-W3 Adobe-GB1 {} \
"/Library/Fonts/Hiragino Sans GB W6.otf" HiraginoSansGB-W6 Adobe-GB1 {}
+ } else {
+ lappend FontList \
+ "${prefix}/share/fonts/otf/Hiragino/Hiragino Sans GB W3.otf" HiraginoSansGB-W3 Adobe-GB1 {} \
+ "${prefix}/share/fonts/otf/Hiragino/Hiragino Sans GB W6.otf" HiraginoSansGB-W6 Adobe-GB1 {}
}
if {${os.major} >= 13 && [variant_isset yu]} {
# for Mavericks or newer; may be unstable
@@ -255,8 +275,10 @@
xinstall -m 755 -d ${GSCIDFontDir}
foreach {fontfile fontname fontset aliases} ${FontList} {
+ # expand ${prefix}
+ set fontfile [subst -nocommands ${fontfile}]
if {![file exists ${fontfile}]} {
- return -code error "Font file \"${fontfile}\" is not found."
+ return -code error "Font file \"${fontfile}\" is not found. \nIf you have former versions of OS X such as Yosemite, copy the font file from it."
}
ln -s ${fontfile} ${GSCIDFontDir}/${fontname}
@@ -301,7 +323,7 @@
if {[variant_isset no_alias]} {
default_variants -alias
-} else {
+} else {
default_variants +alias
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160419/4f9bf20b/attachment-0001.html>
More information about the macports-changes
mailing list