Ignore:
Timestamp:
Apr 4, 2016, 6:07:06 PM (3 years ago)
Author:
cal@…
Message:

rb23-bundler: New port

Additionally, adjust ruby-1.0 PortGroup to support Ruby 2.3.

File:
1 edited

Legend:

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

    r137437 r147459  
    3737#
    3838#     PortGroup        ruby 1.0
    39 #     ruby.setup       module version type {} ruby22
     39#     ruby.setup       module version type {} ruby23
    4040#
    4141#   2. use ruby.branch
    4242#
    4343#     PortGroup        ruby 1.0
    44 #     ruby.branch      2.2
     44#     ruby.branch      2.3
    4545#     depends_lib      port:ruby${ruby.suffix}
    4646#     build.cmd        ${ruby.bin}
    4747
    4848# options:
    49 #   ruby.branch: select ruby version. 2.2, 2.1, 2.0, 1.9 or 1.8.
     49#   ruby.branch: select ruby version. 2.3, 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.
     
    103103    #
    104104    switch -exact ${ruby.branch} {
     105        2.3 {set ruby.api_version 2.3.0}
    105106        2.2 {set ruby.api_version 2.2.0}
    106107        2.1 {set ruby.api_version 2.1.0}
     
    162163
    163164    switch ${implementation} {
     165        ruby23 { ruby.branch 2.3 }
    164166        ruby22 { ruby.branch 2.2 }
    165167        ruby21 { ruby.branch 2.1 }
     
    168170        ruby   { ruby.branch 1.8 }
    169171        default {
    170             ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby22, ruby21, ruby20, ruby19 or ruby possible)"
     172            ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby23, ruby22, ruby21, ruby20, ruby19 or ruby possible)"
    171173            return -code error "ruby.setup failed"
    172174        }
Note: See TracChangeset for help on using the changeset viewer.