summaryrefslogtreecommitdiff
path: root/config/software/asdf-ruby-2-4-5.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/software/asdf-ruby-2-4-5.rb')
-rw-r--r--config/software/asdf-ruby-2-4-5.rb38
1 files changed, 38 insertions, 0 deletions
diff --git a/config/software/asdf-ruby-2-4-5.rb b/config/software/asdf-ruby-2-4-5.rb
new file mode 100644
index 0000000..1503c7a
--- /dev/null
+++ b/config/software/asdf-ruby-2-4-5.rb
@@ -0,0 +1,38 @@
+name "asdf-ruby-2-4-5"
+
+license "BSD-2-Clause"
+license_file "BSDL"
+license_file "COPYING"
+license_file "LEGAL"
+skip_transitive_dependency_licensing true
+
+default_version "2.4.5"
+source url: "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-#{version}.tar.gz", sha256: '6737741ae6ffa61174c8a3dcdd8ba92bc38827827ab1d7ea1ec78bc3cefc5198'
+relative_path "ruby-#{version}"
+
+dependency "zlib"
+dependency "openssl"
+dependency "libffi"
+dependency "libyaml"
+
+env = with_standard_compiler_flags(with_embedded_path)
+env["CFLAGS"] << " -O3 -g -pipe"
+
+build do
+ configure_command = [
+ "--disable-dtrace",
+ "--disable-install-doc",
+ "--disable-install-rdoc",
+ "--disable-jit-support",
+ "--enable-shared",
+ "--prefix=#{install_dir}/installs/ruby/#{version}",
+ "--with-out-ext=dbm,readline",
+ "--without-gdbm",
+ "--without-gmp",
+ "--without-valgrind",
+ "--without-tk",
+ ]
+ configure(*configure_command, env: env)
+ make "-j #{workers}", env: env
+ make "-j #{workers} install", env: env
+end