Ticket #13815: ruby-1.0.tcl-fetch.patch
File ruby-1.0.tcl-fetch.patch, 1.7 KB (added by daniel.bond@…, 17 years ago) |
---|
-
src/port1.0/resources/group/ruby-1.0.tcl
180 180 build {} 181 181 182 182 destroot { 183 _cd ${worksrcpath}/${ruby.srcdir}183 cd ${worksrcpath}/${ruby.srcdir} 184 184 xinstall -d -m 0755 ${destroot}${ruby.lib} 185 185 foreach dir [exec find . -type d] { 186 186 set dir [strsed ${dir} {s|^[.]/||}] … … 272 272 } 273 273 274 274 destroot { 275 _cd ${worksrcpath}275 cd ${worksrcpath} 276 276 system "${prefix}/bin/gem install --local --force --install-dir ${destroot}${prefix}/lib/ruby/gems/${ruby.version} ${distpath}/${distname}" 277 277 278 278 set binDir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}/bin 279 279 if {[file isdirectory $binDir]} { 280 _cd $binDir280 cd $binDir 281 281 foreach file [readdir $binDir] { 282 282 file copy $file ${destroot}${prefix}/bin 283 283 } 284 284 } 285 285 } 286 286 } 287 fetch { 288 # do nothing but fetch the package - for broken setup.rb files like rubygems 289 build {} 290 } 287 291 default { 288 292 ui_error "ruby.setup: unknown setup type '${type}' specified!" 289 293 return -code error "ruby.setup failed" … … 291 295 } 292 296 293 297 post-destroot { 294 _cd ${worksrcpath}295 298 # Install documentation files (if specified) 296 299 if {[llength ${ruby.docs}] > 0} { 297 300 set docPath ${prefix}/share/doc/${name} 298 301 xinstall -d -m 0755 ${destroot}${docPath} 299 foreach docitem ${ ruby.docs} {302 foreach docitem ${worksrcpath}/${ruby.docs} { 300 303 if {[file isdirectory ${docitem}]} { 301 304 foreach dir [exec find ${docitem} -type d] { 302 305 xinstall -d -m 0755 ${destroot}${docPath}/${dir}