Ignore:
Timestamp:
Mar 12, 2013, 1:29:49 PM (6 years ago)
Author:
kimuraw@…
Message:

port1.0/group/ruby-1.0.tcl: let ruby.setup to accept ruby20

  • ruby.branch and ruby.setup supports ruby20
  • ruby.suffix is enable with ruby.branch
  • fix installation of ri and rdoc from ruby.setup gem
File:
1 edited

Legend:

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

    r103922 r103995  
    4646
    4747# options:
    48 #   ruby.branch: select ruby version. 1.8 or 1.9.
     48#   ruby.branch: select ruby version. 1.8, 1.9 or 2.0.
    4949#   ruby.link_binaries: whether generate suffixed symlink under ${prefix}/bin
    5050#        or not.
     
    9494    set ruby.link_binaries_suffix -${ruby.branch}
    9595    set ruby.prog_suffix    ${ruby.branch}
     96    if {${ruby.branch} eq "1.8"} {
     97        set ruby.prog_suffix     ""
     98    }
    9699}
    97100
     
    138141    if {${implementation} eq "ruby19"} {
    139142        ruby.branch 1.9
    140         set ruby.prog_suffix 1.9
     143    } elseif {${implementation} eq "ruby20"} {
     144        ruby.branch 2.0
    141145    } elseif {${implementation} eq "ruby"} {
    142146        ruby.branch 1.8
    143         set ruby.prog_suffix ""
    144147    } else {
    145         ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19 possible)"
     148        ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19, ruby20 possible)"
    146149        return -code error "ruby.setup failed"
    147150    }
     
    384387
    385388            destroot {
    386                 system "cd ${worksrcpath} && ${ruby.gem} install --no-ri --no-rdoc --local --force --install-dir ${destroot}${ruby.gemdir} ${distpath}/${distname}"
     389                system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${ruby.gemdir} ${distpath}/${distname}"
    387390
    388391                set binDir ${destroot}${ruby.gemdir}/bin
Note: See TracChangeset for help on using the changeset viewer.