mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
Add shared build_package_jruby for all JRuby definitions
This commit is contained in:
parent
7b3dc50ce1
commit
11528d4691
3 changed files with 21 additions and 36 deletions
|
@ -147,6 +147,25 @@ build_package_rbx() {
|
||||||
} >&4 2>&1
|
} >&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() {
|
build_package_copy() {
|
||||||
cp -R . "$PREFIX_PATH"
|
cp -R . "$PREFIX_PATH"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,2 @@
|
||||||
after_install_package() {
|
install_package "jruby-1.6.3" "http://jruby.org.s3.amazonaws.com/downloads/1.6.3/jruby-bin-1.6.3.tar.gz" jruby
|
||||||
shim_jruby
|
|
||||||
remove_windows_files
|
|
||||||
}
|
|
||||||
|
|
||||||
shim_jruby() {
|
|
||||||
cd "${PREFIX_PATH}/bin"
|
|
||||||
ln -fs jruby ruby
|
|
||||||
{ ./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
|
|
||||||
}
|
|
||||||
|
|
||||||
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 "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
|
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
|
||||||
|
|
|
@ -1,19 +1,2 @@
|
||||||
after_install_package() {
|
install_package "jruby-1.6.4" "http://jruby.org.s3.amazonaws.com/downloads/1.6.4/jruby-bin-1.6.4.tar.gz" jruby
|
||||||
shim_jruby
|
|
||||||
remove_windows_files
|
|
||||||
}
|
|
||||||
|
|
||||||
shim_jruby() {
|
|
||||||
cd "${PREFIX_PATH}/bin"
|
|
||||||
ln -fs jruby ruby
|
|
||||||
{ ./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
|
|
||||||
}
|
|
||||||
|
|
||||||
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 "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
|
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby
|
||||||
|
|
Loading…
Reference in a new issue