Ignore:
Timestamp:
Dec 31, 2014, 2:53:05 PM (4 years ago)
Author:
kimuraw@…
Message:

_resources/port1.0/group/ruby-1.0.tcl: support ruby-2.2 (port:ruby22)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/ruby-1.0.tcl

    r115566 r130526  
    3737#
    3838#     PortGroup        ruby 1.0
    39 #     ruby.setup       module version type {} ruby19
     39#     ruby.setup       module version type {} ruby22
    4040#
    4141#   2. use ruby.branch
    4242#
    4343#     PortGroup        ruby 1.0
    44 #     ruby.branch      1.9
     44#     ruby.branch      2.2
    4545#     depends_lib      port:ruby${ruby.suffix}
    4646#     build.cmd        ${ruby.bin}
    4747
    4848# options:
    49 #   ruby.branch: select ruby version. 1.8, 1.9, 2.0 or 2.1.
     49#   ruby.branch: select ruby version. 2.2, 2.1, 2.0, 1.9 or 1.8.
    5050#   ruby.link_binaries: whether generate suffixed symlink under ${prefix}/bin
    5151#        or not.
     
    5656#   ruby.bindir: install location of commands without suffix from rb-foo.
    5757#   ruby.gemdir: install location of rubygems.
    58 #        such as "${prefix}/lib/ruby1.9/gems/1.9.1".
     58#        such as "${prefix}/lib/ruby2.2/gems/2.2.0".
    5959#   ruby.link_binaries_suffix: suffix of commands from rb-foo under
    60 #        ${prefix}/bin. such as "-1.8" or "-1.9".
     60#        ${prefix}/bin. such as "-2.2" or "-2.1".
    6161#   (obsoleted values)
    6262#   ruby.prog_suffix: use ruby.branch.
     
    103103    #
    104104    switch -exact ${ruby.branch} {
     105        2.2 {set ruby.api_version 2.2.0}
     106        2.1 {set ruby.api_version 2.1.0}
     107        2.0 {set ruby.api_version 2.0.0}
     108        1.9 {set ruby.api_version 1.9.1}
    105109        1.8 {set ruby.api_version 1.8}
    106         1.9 {set ruby.api_version 1.9.1}
    107         2.0 {set ruby.api_version 2.0.0}
    108         2.1 {set ruby.api_version 2.1.0}
    109110    }
    110111    set ruby.gemdir         ${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.api_version}
     
    161162
    162163    switch ${implementation} {
     164        ruby22 { ruby.branch 2.2 }
    163165        ruby21 { ruby.branch 2.1 }
    164166        ruby20 { ruby.branch 2.0 }
     
    166168        ruby   { ruby.branch 1.8 }
    167169        default {
    168             ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19, ruby20, ruby21 possible)"
     170            ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby22, ruby21, ruby20, ruby19 or ruby possible)"
    169171            return -code error "ruby.setup failed"
    170172        }
Note: See TracChangeset for help on using the changeset viewer.