Ignore:
Timestamp:
Jan 5, 2014, 12:52:34 PM (6 years ago)
Author:
kimuraw@…
Message:

group/ruby-1.0.tcl: add support for port:ruby21

File:
1 edited

Legend:

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

    r112791 r115566  
    4747
    4848# options:
    49 #   ruby.branch: select ruby version. 1.8, 1.9 or 2.0.
     49#   ruby.branch: select ruby version. 1.8, 1.9, 2.0 or 2.1.
    5050#   ruby.link_binaries: whether generate suffixed symlink under ${prefix}/bin
    5151#        or not.
     
    106106        1.9 {set ruby.api_version 1.9.1}
    107107        2.0 {set ruby.api_version 2.0.0}
     108        2.1 {set ruby.api_version 2.1.0}
    108109    }
    109110    set ruby.gemdir         ${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.api_version}
     
    159160    global ruby.config_rubyprog_name
    160161
    161     if {${implementation} eq "ruby19"} {
    162         ruby.branch 1.9
    163     } elseif {${implementation} eq "ruby20"} {
    164         ruby.branch 2.0
    165     } elseif {${implementation} eq "ruby"} {
    166         ruby.branch 1.8
    167     } else {
    168         ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19, ruby20 possible)"
    169         return -code error "ruby.setup failed"
     162    switch ${implementation} {
     163        ruby21 { ruby.branch 2.1 }
     164        ruby20 { ruby.branch 2.0 }
     165        ruby19 { ruby.branch 1.9 }
     166        ruby   { ruby.branch 1.8 }
     167        default {
     168            ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19, ruby20, ruby21 possible)"
     169            return -code error "ruby.setup failed"
     170        }
    170171    }
    171172
Note: See TracChangeset for help on using the changeset viewer.