diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-17 11:09:10 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-17 11:09:10 -0600 |
| commit | 80f4728d4c8627f522c3bb9ec792ed3ad8d54886 (patch) | |
| tree | c210f73592153930c16da28f7fd7aa1820d723ab /config/software/asdf-ruby-2-6-2.rb | |
| parent | 61a904a93cc1779a7c738f5e3d9653a42489ede1 (diff) | |
Build many rubies
Diffstat (limited to 'config/software/asdf-ruby-2-6-2.rb')
| -rw-r--r-- | config/software/asdf-ruby-2-6-2.rb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/config/software/asdf-ruby-2-6-2.rb b/config/software/asdf-ruby-2-6-2.rb new file mode 100644 index 0000000..b813796 --- /dev/null +++ b/config/software/asdf-ruby-2-6-2.rb @@ -0,0 +1,38 @@ +name "asdf-ruby-2-6-2" + +license "BSD-2-Clause" +license_file "BSDL" +license_file "COPYING" +license_file "LEGAL" +skip_transitive_dependency_licensing true + +default_version "2.6.2" +source url: "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-#{version}.tar.gz", sha256: "a0405d2bf2c2d2f332033b70dff354d224a864ab0edd462b7a413420453b49ab" +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 |
