Ticket #25070: ruby-group.patch
File ruby-group.patch, 2.2 KB (added by singingwolfboy@…, 14 years ago) |
---|
-
ruby-1.0.tcl
old new 67 67 global ruby.bin ruby.rdoc ruby.gem 68 68 global ruby.version ruby.lib 69 69 global ruby.module ruby.filename ruby.project ruby.docs ruby.srcdir 70 global ruby.prog_suffix 70 71 71 72 if {${implementation} eq "ruby19"} { 72 set ruby.bin ${prefix}/bin/ruby1.9 73 set ruby.rdoc ${prefix}/bin/rdoc1.9 74 set ruby.gem ${prefix}/bin/gem1.9 75 set ruby.port_prefix rb19 73 set ruby.port_prefix rb19 74 set ruby.prog_suffix "1.9" 76 75 } elseif {${implementation} eq "ruby"} { 77 76 # ruby.bin, ruby.rdoc, and ruby.gem set to 1.8 by default 78 77 set ruby.port_prefix rb 78 # no program suffix by default, so leave as blank 79 set ruby.prog_suffix "" 79 80 } else { 80 81 ui_error "ruby.setup: unknown implementation '${implementation}' specified (ruby, ruby19 possible)" 81 82 return -code error "ruby.setup failed" 82 83 } 84 set ruby.bin ${prefix}/bin/ruby${ruby.prog_suffix} 85 set ruby.rdoc ${prefix}/bin/rdoc${ruby.prog_suffix} 86 set ruby.gem ${prefix}/bin/gem${ruby.prog_suffix} 83 87 84 88 # define ruby global names and lists 85 89 # check if module is a list or string … … 288 292 use_configure no 289 293 extract.suffix .gem 290 294 291 depends_lib-append port:rb-rubygems 295 if {${implementation} eq "ruby"} { 296 depends_lib-append port:rb-rubygems 297 } 292 298 293 299 extract {} 294 300 build {} 295 301 296 302 pre-destroot { 297 xinstall -d -m 0755 ${destroot}${prefix}/lib/ruby /gems/${ruby.version}303 xinstall -d -m 0755 ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version} 298 304 } 299 305 300 306 destroot { 301 system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${prefix}/lib/ruby /gems/${ruby.version} ${distpath}/${distname}"307 system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version} ${distpath}/${distname}" 302 308 303 set binDir ${destroot}${prefix}/lib/ruby /gems/${ruby.version}/bin309 set binDir ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version}/bin 304 310 if {[file isdirectory $binDir]} { 305 311 foreach file [readdir $binDir] { 306 312 file copy [file join $binDir $file] ${destroot}${prefix}/bin