Ticket #13815: ruby-1.0.tcl-fetch.patch

File ruby-1.0.tcl-fetch.patch, 1.7 KB (added by daniel.bond@…, 16 years ago)

added dummymethod "fetch" for rubyforge, removed legacy function "_cd" so ports using this build again.

  • src/port1.0/resources/group/ruby-1.0.tcl

     
    180180                        build                   {}
    181181
    182182                        destroot {
    183                                 _cd ${worksrcpath}/${ruby.srcdir}
     183                                cd ${worksrcpath}/${ruby.srcdir}
    184184                                xinstall -d -m 0755 ${destroot}${ruby.lib}
    185185                                foreach dir [exec find . -type d] {
    186186                                        set dir [strsed ${dir} {s|^[.]/||}]
     
    272272                        }
    273273                       
    274274                        destroot {
    275                           _cd ${worksrcpath}
     275                          cd ${worksrcpath}
    276276                          system "${prefix}/bin/gem install --local --force --install-dir ${destroot}${prefix}/lib/ruby/gems/${ruby.version} ${distpath}/${distname}"
    277277                       
    278278                                set binDir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}/bin
    279279                                if {[file isdirectory $binDir]} {
    280                                         _cd $binDir
     280                                        cd $binDir
    281281                                        foreach file [readdir $binDir] {
    282282                                                file copy $file ${destroot}${prefix}/bin
    283283                                        }
    284284                                }
    285285                        }
    286286                }
     287                fetch {
     288                        # do nothing but fetch the package - for broken setup.rb files like rubygems
     289                        build {}
     290                }
    287291                default {
    288292                        ui_error "ruby.setup: unknown setup type '${type}' specified!"
    289293                        return -code error "ruby.setup failed"
     
    291295        }
    292296
    293297        post-destroot {
    294                 _cd ${worksrcpath}
    295298                # Install documentation files (if specified)
    296299                if {[llength ${ruby.docs}] > 0} {
    297300                        set docPath ${prefix}/share/doc/${name}
    298301                        xinstall -d -m 0755 ${destroot}${docPath}
    299                         foreach docitem ${ruby.docs} {
     302                        foreach docitem ${worksrcpath}/${ruby.docs} {
    300303                                if {[file isdirectory ${docitem}]} {
    301304                                        foreach dir [exec find ${docitem} -type d] {
    302305                                                xinstall -d -m 0755 ${destroot}${docPath}/${dir}