summaryrefslogtreecommitdiff
path: root/config/software/asdf-ruby.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-25 10:05:20 -0600
committermo khan <mo.khan@gmail.com>2020-06-25 10:05:20 -0600
commit9ac80fbe229ee6e6434d6b2a12f6dcbac4147d18 (patch)
tree9e20c31842757895465f550462c2f2da1ea19e4e /config/software/asdf-ruby.rb
parentc56a674223b3279b23b66aca409dc23c4252d647 (diff)
Prepare separate projects for each tool-version
Diffstat (limited to 'config/software/asdf-ruby.rb')
-rw-r--r--config/software/asdf-ruby.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/config/software/asdf-ruby.rb b/config/software/asdf-ruby.rb
index 106e407..9cfa6b5 100644
--- a/config/software/asdf-ruby.rb
+++ b/config/software/asdf-ruby.rb
@@ -1,4 +1,4 @@
-name "asdf-ruby"
+name "asdf_ruby"
license "BSD-2-Clause"
license_file "BSDL"
@@ -27,6 +27,7 @@ version("2.6.0") { source sha256: "f3c35b924a11c88ff111f0956ded3cdc12c90c04b72b2
version("2.5.8") { source sha256: "6c0bdf07876c69811a9e7dc237c43d40b1cb6369f68e0e17953d7279b524ad9a" }
version("2.4.10") { source sha256: "93d06711795bfb76dbe7e765e82cdff3ddf9d82eff2a1f24dead9bb506eaf2d0" }
+version("2.4.9") { source sha256: "f99b6b5e3aa53d579a49eb719dd0d3834d59124159a6d4351d1e039156b1c6ae" }
version("2.4.5") { source sha256: "6737741ae6ffa61174c8a3dcdd8ba92bc38827827ab1d7ea1ec78bc3cefc5198" }
source url: "https://cache.ruby-lang.org/pub/ruby/#{version.match(/^(\d+\.\d+)/)[0]}/ruby-#{version}.tar.gz"
@@ -42,14 +43,17 @@ build do
"--disable-install-rdoc",
"--disable-jit-support",
"--enable-shared",
- "--prefix=#{install_dir}/installs/ruby/#{version}",
+ "--prefix=#{install_dir}",
"--with-out-ext=dbm,readline",
"--without-gdbm",
"--without-gmp",
"--without-valgrind",
- "--without-tk",
+ "--without-tk"
]
configure(*configure_command, env: env)
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
+ command "#{install_dir}/bin/gem update --system"
+ command "#{install_dir}/bin/gem install bundler -v '~>1.7' --no-document"
+ command "#{install_dir}/bin/gem install bundler -v '~>2.0' --no-document"
end