Changeset 103919 for trunk/dports/ruby


Ignore:
Timestamp:
Mar 10, 2013, 2:19:43 AM (7 years ago)
Author:
kimuraw@…
Message:

ruby/rb-rubygems: support port select ruby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/ruby/rb-rubygems/Portfile

    r99341 r103919  
    88license                 {Ruby GPL-2}
    99version                 1.3.7
     10revision                1
    1011
    1112homepage                http://rubygems.org/
     
    3940destroot.env
    4041
    41 set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}
     42set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.api_version}
    4243destroot.keepdirs \
    4344        ${gems_libdir}/doc \
     
    4647
    4748variant ruby conflicts ruby186 ruby19 description {add Ruby 1.8.7 support} {
    48     depends_lib-append    port:ruby
    49         destroot.args-append  --vendor
     49    depends_lib-append      port:ruby
     50    destroot.args-append    --vendor --no-format-executable
     51    ruby.branch             1.8
     52    post-destroot {
     53        xinstall -d ${destroot}${ruby.bindir}
     54        move ${destroot}${prefix}/bin/gem ${destroot}/${ruby.bindir}/gem
     55        ln -s ${destroot}/${ruby.bindir}/gem ${destroot}${prefix}/bin/gem${ruby.link_binaries_suffix}
     56    }
    5057}
    5158
    5259variant ruby186 conflicts ruby ruby19 description {add Ruby 1.8.6 support} {
    53     depends_lib-append    port:ruby186
     60    depends_lib-append      port:ruby186
    5461}
    5562
    5663variant ruby19 conflicts ruby ruby186 description {add Ruby 1.9 support} {
    57     depends_lib-append    port:ruby19
    58         destroot.args-append  --vendor
     64    depends_lib-append      port:ruby19
     65    destroot.args-append    --vendor --no-format-executable
     66    ruby.branch             1.9
     67    post-destroot {
     68        xinstall -d ${destroot}${ruby.bindir}
     69        move ${destroot}${prefix}/bin/gem ${destroot}/${ruby.bindir}/gem
     70    }
    5971}
    6072
Note: See TracChangeset for help on using the changeset viewer.