Ticket #13815: rubygems-1.1.0.diff
File rubygems-1.1.0.diff, 2.0 KB (added by daniel.bond@…, 17 years ago) |
---|
-
ruby/rb-rubygems/Portfile
3 3 PortSystem 1.0 4 4 PortGroup ruby 1.0 5 5 6 ruby.setup rubygems 0.9.4 setup.rb {README doc examples gemspecs} \ 7 rubyforge:20989 8 maintainers nomaintainer 6 ruby.setup rubygems 1.1.0 fetch {} rubyforge:34638 7 maintainers danielbond.org:ports 9 8 description a package management framework for Ruby 10 9 long_description RubyGems is the Ruby standard for publishing and \ 11 10 managing third party libraries. 12 11 categories-append devel 13 checksums md5 b5680acaa019c80ea44fe87cc2e227da \ 14 sha1 904080d36e34d7a6969c3cef228380eb82688d2a \ 15 rmd160 6ee02db45173f05e6f8c5b1ecd5af832fb8601f8 12 checksums md5 85f994904c5b4045f0a859b29d0be717 \ 13 sha1 2379e510267ed1c979987a618c9f139e58266d28 16 14 extract.suffix .tgz 17 15 platforms darwin 18 16 19 set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.version} 20 post-patch { 21 reinplace "s%Gem.dir%'${gems_libdir}'%" ${worksrcpath}/post-install.rb 22 } 23 destroot.keepdirs \ 24 ${gems_libdir}/cache \ 25 ${gems_libdir}/doc \ 26 ${gems_libdir}/gems \ 27 ${gems_libdir}/specifications 28 pre-destroot { 29 xinstall -d -m 0755 ${gems_libdir} 30 } 17 configure { } 18 build { } 19 20 destroot.cmd ${ruby.bin} setup.rb 21 destroot.args --prefix=${destroot}${prefix} 22 destroot.env 23 31 24 post-destroot { 32 foreach script {gem gem_mirror gem_server gemlock gemri gemwhich index_gem_repository.rb update_rubygems} { 33 reinplace "s%^#!.*ruby%#!${ruby.bin}%" ${destroot}${prefix}/bin/$script 34 } 25 file mkdir ${destroot}${ruby.lib} 26 file rename ${destroot}${prefix}/lib/rubygems ${destroot}${ruby.lib} 27 file rename ${destroot}${prefix}/lib/rbconfig ${destroot}${ruby.lib} 28 file rename ${destroot}${prefix}/lib/rubygems.rb ${destroot}${ruby.lib} 29 file rename ${destroot}${prefix}/lib/ubygems.rb ${destroot}${ruby.lib} 35 30 } 36 31 32 depends_lib port:ruby 37 33 depends_build port:autoconf