Ticket #24756: Portfile-1.5.0.diff

File Portfile-1.5.0.diff, 2.1 KB (added by arto.bendiken@…, 14 years ago)

Updates JRuby from 1.4.0 to 1.5.0

  • lang/jruby/Portfile

    a b  
    33PortSystem 1.0
    44
    55name              jruby
    6 version           1.4.0
     6version           1.5.0
    77
    88categories        lang ruby
    99maintainers       gmail.com:ameingast
    Ruby's own complement of .rb files, but a few that depend \ 
    1818on C language-based extensions have been reimplemented.
    1919homepage          http://jruby.codehaus.org/
    2020
    21 master_sites      http://jruby.kenai.com/downloads/${version}/
     21master_sites      http://jruby.org.s3.amazonaws.com/downloads/${version}
    2222distname          ${name}-src-${version}
    2323worksrcdir        ${name}-${version}
    2424use_bzip2         no
    25 checksums         md5    a363b6c2ea24f0ef8df478c93ac8cc59 \
    26                   sha1   3d6f634e16b789a5a086327c0f09710dd29d1ec7
     25checksums         md5    092f2d21285f3295e74777a71e7c6401 \
     26                  sha1   3e21f8aace0715f98bcad4692548126220d1d989
    2727
    2828depends_build     bin:ant:apache-ant
    2929depends_lib       bin:java:kaffe
    destroot { 
    5656    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/java/${name}
    5757  }
    5858
    59   # Remove extraneous bat files
     59  # Remove extraneous .bat, .exe and .dll files
    6060  foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
    6161    file delete $f
    6262  }
     63  foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.exe] {
     64    file delete $f
     65  }
     66  foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.dll] {
     67    file delete $f
     68  }
    6369
    6470  set jruby_prefix ""
    6571
    destroot { 
    6773    set jruby_prefix "j"
    6874  }
    6975
    70   foreach f { jruby jirb jrubyc jrubcli jrubysrv } {
     76  foreach f { jruby jrubyc jirb jirb_swing } {
    7177    regsub {^j} $f $jruby_prefix dest
    7278    if { ${dest} != ${f} } {
    7379      ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${dest}
    destroot { 
    7581    ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/
    7682  }
    7783
    78   foreach f { gem gem_mirror gemri gemwhich rake spec testrb } {
     84  foreach f { ast autospec gem rake rdebug rdoc ri spec testrb } {
    7985    ln -s ${prefix}/share/java/${name}/bin/${f} \
    8086    ${destroot}${prefix}/bin/${jruby_prefix}${f}
    8187  }