From 80f4728d4c8627f522c3bb9ec792ed3ad8d54886 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 17 Jun 2020 11:09:10 -0600 Subject: Build many rubies --- config/software/asdf-ruby-2-6-4.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 config/software/asdf-ruby-2-6-4.rb (limited to 'config/software/asdf-ruby-2-6-4.rb') diff --git a/config/software/asdf-ruby-2-6-4.rb b/config/software/asdf-ruby-2-6-4.rb new file mode 100644 index 0000000..6fb48e6 --- /dev/null +++ b/config/software/asdf-ruby-2-6-4.rb @@ -0,0 +1,38 @@ +name "asdf-ruby-2-6-4" + +license "BSD-2-Clause" +license_file "BSDL" +license_file "COPYING" +license_file "LEGAL" +skip_transitive_dependency_licensing true + +default_version "2.6.4" +source url: "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-#{version}.tar.gz", sha256: '4fc1d8ba75505b3797020a6ffc85a8bcff6adc4dabae343b6572bf281ee17937' +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 -- cgit v1.2.3