Merge pull request #1 from sstephenson/jruby

Add JRuby 1.6.3
This commit is contained in:
Sam Stephenson 2011-08-02 18:58:08 -07:00
commit 81901adf0f
2 changed files with 26 additions and 0 deletions

View file

@ -13,6 +13,7 @@ install_package() {
extract_package "$package_name"
cd "$package_name"
build_package "$package_name" $*
after_install_package "$package_name"
cd "$cwd"
}
@ -65,6 +66,14 @@ build_package_ruby() {
} >$LOG_PATH 2>&1
}
build_package_copy() {
cp -R . "$PREFIX_PATH"
}
after_install_package() {
local stub=1
}
usage() {
echo "usage: ruby-build DEFINITION-PATH INSTALLATION-PREFIX"
exit 1

17
versions/jruby-1.6.3 Normal file
View file

@ -0,0 +1,17 @@
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