[112516] trunk/dports/print/ghostscript-fonts-hiragino/Portfile

takanori at macports.org takanori at macports.org
Thu Oct 24 23:40:32 PDT 2013


Revision: 112516
          https://trac.macports.org/changeset/112516
Author:   takanori at macports.org
Date:     2013-10-24 23:40:32 -0700 (Thu, 24 Oct 2013)
Log Message:
-----------
ghostscript-fonts-hiragino:
 - variant '+no_alias' should be changed to -alias (Ticket #39383)
 - experimental support for Yu fonts (Mavericks only)

Modified Paths:
--------------
    trunk/dports/print/ghostscript-fonts-hiragino/Portfile

Modified: trunk/dports/print/ghostscript-fonts-hiragino/Portfile
===================================================================
--- trunk/dports/print/ghostscript-fonts-hiragino/Portfile	2013-10-25 06:06:08 UTC (rev 112515)
+++ trunk/dports/print/ghostscript-fonts-hiragino/Portfile	2013-10-25 06:40:32 UTC (rev 112516)
@@ -4,6 +4,7 @@
 
 name            ghostscript-fonts-hiragino
 version         9.10
+revision        1
 categories      print japanese chinese
 maintainers     takanori openmaintainer
 description     Hiragino font for ghostscript ${version}
@@ -23,7 +24,8 @@
 build {}
 
 destroot {
-    if {${os.platform} == "darwin" && ${os.major} == 8} {
+    if {${os.platform} == "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 {}
@@ -43,14 +45,25 @@
                       "/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} == "darwin" && (${os.major} == 10 || ${os.major} == 11)} {
+    }
+
+    if {${os.platform} == "darwin"} {
+        if {${os.major} >= 10} {
+            # for SnowLeopard or newer
             lappend FontList \
                       "/Library/Fonts/Hiragino Sans GB W3.otf"         HiraginoSansGB-W3  Adobe-GB1    {} \
                       "/Library/Fonts/Hiragino Sans GB W6.otf"         HiraginoSansGB-W6  Adobe-GB1    {}
-#                     "/Library/Fonts/Hiragino Sans CNS W3.otf"        HiraginoSansCNS-W3 Adobe-CNS1   {}
-#                     "/Library/Fonts/Hiragino Sans CNS W6.otf"        HiraginoSansCNS-W6 Adobe-CNS1   {}
         }
+        if {${os.major} >= 13 && [variant_isset yu]} {
+            # for Mavericks or newer; may be unstable
+            lappend FontList \
+                      "/Library/Fonts/Yu Gothic Bold.otf"              YuGo-Bold          Adobe-Japan1 {} \
+                      "/Library/Fonts/Yu Gothic Medium.otf"            YuGo-Medium        Adobe-Japan1 {} \
+                      "/Library/Fonts/Yu Mincho Demibold.otf"          YuMin-Demibold     Adobe-Japan1 {} \
+                      "/Library/Fonts/Yu Mincho Medium.otf"            YuMin-Medium       Adobe-Japan1 {}
+        }
     }
+
     set GSFontDir ${destroot}${prefix}/share/ghostscript/${version}/Resource/Font
     set GSCIDFontDir ${destroot}${prefix}/share/ghostscript/${version}/Resource/CIDFont
     set EncodeList(Adobe-Japan1) {78-EUC-H
@@ -277,6 +290,23 @@
     }
 }
 
-variant no_alias description "Do not use Hiragino as an alternative to Morisawa's standard 5 fonts" {}
+if {[variant_isset no_alias]} {
+    default_variants    -alias
+} else { 
+    default_variants    +alias
+}
 
+variant yu description {Add support for Yu fonts (experimental; unstable)} {
+    if {${os.platform} == "darwin" && ${os.major} >= 13} {
+        # nop
+    } else {
+        return -code error "variant +yu is supported on Mavericks or later only"
+    }
+    notes "WARNING: Handling Yu fonts on ghostscript may cause unstable behavior"
+}
+
+variant no_alias description {Legacy compatibility variant} {}
+
+variant alias description "Use Hiragino as an alternative to Morisawa's standard 5 fonts" {}
+
 livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131024/a2cd5126/attachment.html>


More information about the macports-changes mailing list