Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 1.039 kb
dep 'ruby trunk.src' do
requires 'bison.managed', 'readline headers.managed'
source 'git://github.com/ruby/ruby.git'
provides 'ruby == 1.9.3.dev', 'gem', 'irb'
configure_args '--disable-install-doc', '--with-readline-dir=/usr'
end
dep 'ruby.src', :version, :patchlevel do
requires 'testpilot:ruby dependencies'
def version_group
version.to_s.scan(/^\d\.\d/).first
end
version.default!('2.0.0')
patchlevel.default!('p0')
requires 'readline headers.managed', 'yaml headers.managed'
source "ftp://ftp.ruby-lang.org/pub/ruby/#{version_group}/ruby-#{version}-#{patchlevel}.tar.gz"
provides "ruby == #{version}#{patchlevel}", 'gem', 'irb'
configure_args '--disable-install-doc',
"--with-readline-dir=#{Babushka.host.pkg_helper.prefix}",
"--with-libyaml-dir=#{Babushka.host.pkg_helper.prefix}"
postinstall {
# TODO: hack for ruby bug where bin/* aren't installed when the build path
# contains a dot-dir.
shell "cp bin/* #{prefix / 'bin'}", :sudo => Babushka::SrcHelper.should_sudo?
}
end
Jump to Line
Something went wrong with that request. Please try again.