mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-03 07:41:23 +02:00
Merge pull request #1450 from rbenv/rbx5
Update rbx scripts and Added the latest definitions
This commit is contained in:
commit
157c719e3f
7 changed files with 46 additions and 27 deletions
31
script/update-rbx
Executable file
31
script/update-rbx
Executable file
|
@ -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
|
|
@ -1,27 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require 'open-uri'
|
||||
require 'pathname'
|
||||
|
||||
file = "https://raw.githubusercontent.com/postmodern/ruby-versions/master/rubinius/checksums.sha256"
|
||||
dir = Pathname(File.expand_path("share/ruby-build"))
|
||||
|
||||
open(file).each do |package|
|
||||
sha256, filename = package.chomp.split
|
||||
version = filename.match(/rubinius-([34].[\d\.]+).tar.bz2/)
|
||||
|
||||
next unless version
|
||||
|
||||
version = version[1]
|
||||
defname = "rbx-#{version}"
|
||||
|
||||
next if File.exists?(dir.join(defname))
|
||||
|
||||
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}" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-#{version}.tar.bz2##{sha256}" rbx
|
||||
TEMPLATE
|
||||
|
||||
File.open(dir.join(defname), "w"){|f| f.write definition}
|
||||
end
|
3
share/ruby-build/rbx-4.16
Normal file
3
share/ruby-build/rbx-4.16
Normal file
|
@ -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
|
3
share/ruby-build/rbx-4.18
Normal file
3
share/ruby-build/rbx-4.18
Normal file
|
@ -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
|
3
share/ruby-build/rbx-4.19
Normal file
3
share/ruby-build/rbx-4.19
Normal file
|
@ -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
|
3
share/ruby-build/rbx-4.20
Normal file
3
share/ruby-build/rbx-4.20
Normal file
|
@ -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
|
3
share/ruby-build/rbx-5.0
Normal file
3
share/ruby-build/rbx-5.0
Normal file
|
@ -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
|
Loading…
Reference in a new issue