Ticket #39248: ruby-1.0.tcl.diff
File ruby-1.0.tcl.diff, 3.2 KB (added by kimuraw (kimura wataru), 11 years ago) |
---|
-
_resources/port1.0/group/ruby-1.0.tcl
50 50 # ruby.link_binaries: whether generate suffixed symlink under ${prefix}/bin 51 51 # or not. 52 52 # values: 53 # ruby.bin, ruby.rdoc, ruby.gem : fullpath to commands for ${ruby.branch}.53 # ruby.bin, ruby.rdoc, ruby.gem ruby.rake: fullpath to commands for ${ruby.branch}. 54 54 # ruby.suffix: suffix of portname. port:ruby${ruby.suffix} or 55 55 # port:rb${ruby.suffix}-foo. 56 56 # ruby.bindir: install location of commands without suffix from rb-foo. … … 68 68 options ruby.default_branch 69 69 default ruby.default_branch 1.8 70 70 options ruby.branch 71 options ruby.bin ruby.rdoc ruby.gem ruby. bindir ruby.gemdir ruby.suffix71 options ruby.bin ruby.rdoc ruby.gem ruby.rake ruby.bindir ruby.gemdir ruby.suffix 72 72 option_proc ruby.branch ruby_set_branch 73 73 proc ruby_set_branch {option action args} { 74 74 if {$action != "set"} { 75 75 return 76 76 } 77 77 global prefix ruby.branch \ 78 ruby.bin ruby.rdoc ruby.gem ruby. bindir ruby.gemdir \78 ruby.bin ruby.rdoc ruby.gem ruby.rake ruby.bindir ruby.gemdir \ 79 79 ruby.suffix ruby.link_binaries_suffix ruby.api_version \ 80 80 ruby.prog_suffix 81 81 set ruby.bin ${prefix}/bin/ruby${ruby.branch} 82 82 set ruby.rdoc ${prefix}/bin/rdoc${ruby.branch} 83 83 set ruby.gem ${prefix}/bin/gem${ruby.branch} 84 set ruby.rake ${prefix}/bin/rake${ruby.branch} 84 85 set ruby.bindir ${prefix}/libexec/ruby${ruby.branch} 85 86 set ruby.gemdir ${prefix}/lib/ruby${ruby.branch}/gems/${ruby.api_version} 86 87 # gem command for 1.8 from port:rb-rubygems 88 # rake command for 1.8 from port:rb-rake 87 89 if {${ruby.branch} eq "1.8"} { 88 90 set ruby.gem ${ruby.bindir}/gem 91 set ruby.rake ${ruby.bindir}/rake 89 92 set ruby.gemdir ${prefix}/lib/ruby/gems/${ruby.api_version} 90 93 } 91 94 set ruby.suffix [join [split ${ruby.branch} .] {}] … … 138 141 # basic variables, like ruby.lib and ruby.archlib. 139 142 proc ruby.setup {module vers {type "install.rb"} {docs {}} {source "custom"} {implementation "ruby"}} { 140 143 global destroot prefix worksrcpath os.platform 141 global ruby.bin ruby.rdoc ruby.gem ruby. branch144 global ruby.bin ruby.rdoc ruby.gem ruby.rake ruby.branch 142 145 global ruby.api_version ruby.lib ruby.suffix ruby.bindir ruby.gemdir 143 146 global ruby.module ruby.filename ruby.project ruby.docs ruby.srcdir 144 147 global ruby.link_binaries_suffix … … 431 434 432 435 if {${implementation} eq "ruby"} { 433 436 depends_lib-append port:rb-rubygems 437 if {${ruby.module} ne "rake"} { 438 depends_build-append port:rb-rake 439 } 434 440 } 435 441 436 442 extract {} … … 443 449 destroot.cmd ${ruby.gem} 444 450 destroot.target install 445 451 destroot.args --local --force --install-dir ${destroot}${ruby.gemdir} 452 destroot.env-append rake=${ruby.rake} 446 453 447 454 destroot { 448 455 # note: port cannot read $distpath and $distname