Changeset 112516


Ignore:
Timestamp:
Oct 25, 2013, 6:40:32 AM (5 years ago)
Author:
takanori@…
Message:

ghostscript-fonts-hiragino:

  • variant '+no_alias' should be changed to -alias (Ticket #39383)
  • experimental support for Yu fonts (Mavericks only)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/print/ghostscript-fonts-hiragino/Portfile

    r110935 r112516  
    55name            ghostscript-fonts-hiragino
    66version         9.10
     7revision        1
    78categories      print japanese chinese
    89maintainers     takanori openmaintainer
     
    2425
    2526destroot {
    26     if {${os.platform} == "darwin" && ${os.major} == 8} {
     27    if {${os.platform} == "darwin" && ${os.major} <= 8} {
     28        # for Tiger or older
    2729        set FontList {"/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"  HiraKakuPro-W3     Adobe-Japan1 {GothicBBB-Medium A-OTF-GothicBBBPro-Medium}
    2830                      "/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"  HiraKakuPro-W6     Adobe-Japan1 {FutoGoB101-Bold  A-OTF-FutoGoB101Pro-Bold}
     
    4446                      "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3     Adobe-Japan1 {}
    4547                      "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6     Adobe-Japan1 {}}
    46         if {${os.platform} == "darwin" && (${os.major} == 10 || ${os.major} == 11)} {
     48    }
     49
     50    if {${os.platform} == "darwin"} {
     51        if {${os.major} >= 10} {
     52            # for SnowLeopard or newer
    4753            lappend FontList \
    4854                      "/Library/Fonts/Hiragino Sans GB W3.otf"         HiraginoSansGB-W3  Adobe-GB1    {} \
    4955                      "/Library/Fonts/Hiragino Sans GB W6.otf"         HiraginoSansGB-W6  Adobe-GB1    {}
    50 #                     "/Library/Fonts/Hiragino Sans CNS W3.otf"        HiraginoSansCNS-W3 Adobe-CNS1   {}
    51 #                     "/Library/Fonts/Hiragino Sans CNS W6.otf"        HiraginoSansCNS-W6 Adobe-CNS1   {}
     56        }
     57        if {${os.major} >= 13 && [variant_isset yu]} {
     58            # for Mavericks or newer; may be unstable
     59            lappend FontList \
     60                      "/Library/Fonts/Yu Gothic Bold.otf"              YuGo-Bold          Adobe-Japan1 {} \
     61                      "/Library/Fonts/Yu Gothic Medium.otf"            YuGo-Medium        Adobe-Japan1 {} \
     62                      "/Library/Fonts/Yu Mincho Demibold.otf"          YuMin-Demibold     Adobe-Japan1 {} \
     63                      "/Library/Fonts/Yu Mincho Medium.otf"            YuMin-Medium       Adobe-Japan1 {}
    5264        }
    5365    }
     66
    5467    set GSFontDir ${destroot}${prefix}/share/ghostscript/${version}/Resource/Font
    5568    set GSCIDFontDir ${destroot}${prefix}/share/ghostscript/${version}/Resource/CIDFont
     
    278291}
    279292
    280 variant no_alias description "Do not use Hiragino as an alternative to Morisawa's standard 5 fonts" {}
     293if {[variant_isset no_alias]} {
     294    default_variants    -alias
     295} else {
     296    default_variants    +alias
     297}
     298
     299variant yu description {Add support for Yu fonts (experimental; unstable)} {
     300    if {${os.platform} == "darwin" && ${os.major} >= 13} {
     301        # nop
     302    } else {
     303        return -code error "variant +yu is supported on Mavericks or later only"
     304    }
     305    notes "WARNING: Handling Yu fonts on ghostscript may cause unstable behavior"
     306}
     307
     308variant no_alias description {Legacy compatibility variant} {}
     309
     310variant alias description "Use Hiragino as an alternative to Morisawa's standard 5 fonts" {}
    281311
    282312livecheck.type  none
Note: See TracChangeset for help on using the changeset viewer.