Merge branch 'master' into binary-packages

This commit is contained in:
Sam Stephenson 2011-10-11 15:19:37 -05:00
commit c152a226e6
8 changed files with 41 additions and 37 deletions

View file

@ -37,6 +37,17 @@ ruby-build provides an `rbenv-install` command that shortens this to:
### Version History
#### 20110928
* ruby-build now uses the `--with-gcc` configure flag on OS X Lion.
* Added definitions for REE 1.8.7-2010.02 and 1.8.6-2009.06.
* Modified `rbenv-install` to run `rbenv rehash` after installation.
* Added a Ruby 1.9.3-rc1 definition.
* Updated the JRuby defintions to install the `jruby-launcher` gem.
* Updated the rbx-2.0.0 definition to point to the master branch.
* Added a jruby-1.7.0-dev definition.
* Added a Ruby 1.9.4-dev definition.
#### 20110914
* Added an rbx-2.0.0-dev definition for Rubinius 2.0.0 from git.

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
RUBY_BUILD_VERSION="20110914"
RUBY_BUILD_VERSION="20110928"
set -E
exec 3<&2 # preserve original stderr at fd 3
@ -131,7 +131,7 @@ build_package_ree_installer() {
if [[ "Darwin" = "$(uname)" ]]; then
options="--no-tcmalloc"
fi
# Work around install_useful_libraries crash with --dont-install-useful-gems
mkdir -p "$PREFIX_PATH/lib/ruby/gems/1.8/gems"
@ -147,6 +147,25 @@ build_package_rbx() {
} >&4 2>&1
}
build_package_jruby() {
build_package_copy
cd "${PREFIX_PATH}/bin"
ln -fs jruby ruby
install_jruby_launcher
remove_windows_files
}
install_jruby_launcher() {
cd "${PREFIX_PATH}/bin"
{ ./ruby gem install jruby-launcher
} >&4 2>&1
}
remove_windows_files() {
cd "$PREFIX_PATH"
rm -f bin/*.exe bin/*.dll bin/*.bat bin/jruby.sh
}
build_package_copy() {
cp -R . "$PREFIX_PATH"
}

View file

@ -0,0 +1,4 @@
use_gcc42_on_lion
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_git "ruby-1.9.4-dev" "https://github.com/ruby/ruby.git" "trunk" autoconf standard
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby

View file

@ -1,18 +1,2 @@
after_install_package() {
shim_jruby
remove_windows_files
}
shim_jruby() {
cd "${PREFIX_PATH}/bin"
sed -i "" 's/^#!\/bin\/bash/#!\/usr\/bin\/env bash/' jruby
ln -fs jruby ruby
}
remove_windows_files() {
cd "$PREFIX_PATH"
rm -f bin/*.exe bin/*.dll bin/*.bat bin/jruby.sh
}
install_package "jruby-1.6.3" "http://jruby.org.s3.amazonaws.com/downloads/1.6.3/jruby-bin-1.6.3.tar.gz" copy
install_package "jruby-1.6.3" "http://jruby.org.s3.amazonaws.com/downloads/1.6.3/jruby-bin-1.6.3.tar.gz" jruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby

View file

@ -1,18 +1,2 @@
after_install_package() {
shim_jruby
remove_windows_files
}
shim_jruby() {
cd "${PREFIX_PATH}/bin"
sed -i "" 's/^#!\/bin\/bash/#!\/usr\/bin\/env bash/' jruby
ln -fs jruby ruby
}
remove_windows_files() {
cd "$PREFIX_PATH"
rm -f bin/*.exe bin/*.dll bin/*.bat bin/jruby.sh
}
install_package "jruby-1.6.4" "http://jruby.org.s3.amazonaws.com/downloads/1.6.4/jruby-bin-1.6.4.tar.gz" copy
install_package "jruby-1.6.4" "http://jruby.org.s3.amazonaws.com/downloads/1.6.4/jruby-bin-1.6.4.tar.gz" jruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby

View file

@ -0,0 +1,2 @@
install_package "jruby-1.7.0.dev" "http://ci.jruby.org/snapshots/jruby-bin-1.7.0.dev.tar.gz" jruby
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby

View file

@ -1,2 +1,2 @@
install_git "rubinius-2.0.0-dev" "https://github.com/rubinius/rubinius.git" "2.0.0pre" rbx
install_git "rubinius-2.0.0-dev" "https://github.com/rubinius/rubinius.git" "master" rbx
install_package "rubygems-1.8.10" "http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz" ruby