Ticket #24756: Portfile-1.5.0.diff
File Portfile-1.5.0.diff, 2.1 KB (added by arto.bendiken@…, 14 years ago) |
---|
-
lang/jruby/Portfile
a b 3 3 PortSystem 1.0 4 4 5 5 name jruby 6 version 1. 4.06 version 1.5.0 7 7 8 8 categories lang ruby 9 9 maintainers gmail.com:ameingast … … Ruby's own complement of .rb files, but a few that depend \ 18 18 on C language-based extensions have been reimplemented. 19 19 homepage http://jruby.codehaus.org/ 20 20 21 master_sites http://jruby. kenai.com/downloads/${version}/21 master_sites http://jruby.org.s3.amazonaws.com/downloads/${version} 22 22 distname ${name}-src-${version} 23 23 worksrcdir ${name}-${version} 24 24 use_bzip2 no 25 checksums md5 a363b6c2ea24f0ef8df478c93ac8cc59\26 sha1 3 d6f634e16b789a5a086327c0f09710dd29d1ec725 checksums md5 092f2d21285f3295e74777a71e7c6401 \ 26 sha1 3e21f8aace0715f98bcad4692548126220d1d989 27 27 28 28 depends_build bin:ant:apache-ant 29 29 depends_lib bin:java:kaffe … … destroot { 56 56 file copy ${worksrcpath}/docs ${destroot}${prefix}/share/java/${name} 57 57 } 58 58 59 # Remove extraneous batfiles59 # Remove extraneous .bat, .exe and .dll files 60 60 foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] { 61 61 file delete $f 62 62 } 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 } 63 69 64 70 set jruby_prefix "" 65 71 … … destroot { 67 73 set jruby_prefix "j" 68 74 } 69 75 70 foreach f { jruby j irb jrubyc jrubcli jrubysrv} {76 foreach f { jruby jrubyc jirb jirb_swing } { 71 77 regsub {^j} $f $jruby_prefix dest 72 78 if { ${dest} != ${f} } { 73 79 ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${dest} … … destroot { 75 81 ln -s ${prefix}/share/java/${name}/bin/${f} ${destroot}${prefix}/bin/ 76 82 } 77 83 78 foreach f { gem gem_mirror gemri gemwhich rakespec testrb } {84 foreach f { ast autospec gem rake rdebug rdoc ri spec testrb } { 79 85 ln -s ${prefix}/share/java/${name}/bin/${f} \ 80 86 ${destroot}${prefix}/bin/${jruby_prefix}${f} 81 87 }