Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1450 from rbenv/rbx5
Update rbx scripts and Added the latest definitions
- Loading branch information
Showing
7 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'open-uri' | ||
require 'pathname' | ||
require 'openssl' | ||
|
||
file = "http://rubinius-releases-rubinius-com.s3-us-west-2.amazonaws.com/index.txt" | ||
dir = Pathname(File.expand_path("share/ruby-build")) | ||
|
||
URI.open(file).each do |package| | ||
next if package.match(/sha512/) | ||
version = package.match(/rubinius-([345].[\d\.]+).tar.bz2/) | ||
|
||
next unless version | ||
|
||
version = version[1] | ||
defname = "rbx-#{version}" | ||
|
||
next if File.exist?(dir.join(defname)) | ||
|
||
package_url = "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-#{version}.tar.bz2" | ||
sha256 = OpenSSL::Digest::SHA256.hexdigest(File.read(URI.open(package_url))) | ||
|
||
definition = <<-TEMPLATE | ||
require_llvm 3.7 | ||
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl | ||
install_package "rubinius-#{version}" "#{package_url}##{sha256}" rbx | ||
TEMPLATE | ||
|
||
File.open(dir.join(defname), "w"){|f| f.write definition} | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require_llvm 3.7 | ||
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl | ||
install_package "rubinius-4.16" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-4.16.tar.bz2#598d0f10645dcdf79d0b2302d7e76aff14755d57dced7939aa96ef2c7e454e0c" rbx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require_llvm 3.7 | ||
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl | ||
install_package "rubinius-4.18" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-4.18.tar.bz2#4498d27dc77b20fa864b66bd2183c227398594a2178d92e6b3a135b991dec05f" rbx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require_llvm 3.7 | ||
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl | ||
install_package "rubinius-4.19" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-4.19.tar.bz2#6b3a63edf2f04937ce92c1a94e68cf51680621dda3d9139a864999e78b620ace" rbx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require_llvm 3.7 | ||
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl | ||
install_package "rubinius-4.20" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-4.20.tar.bz2#2499826151950d8d657fe71b5666d58cf93b0c97b56dabc1e7ec35d263df9bbf" rbx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require_llvm 3.7 | ||
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl | ||
install_package "rubinius-5.0" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-5.0.tar.bz2#c9e90e3ef2fb80714b09895611152024fecbb3f13955298fa63e57b1785e8ff0" rbx |