summaryrefslogtreecommitdiff
path: root/config/software/asdf-ruby-2-5-8.rb
blob: 61e1cba027588b1812a49e6b8c9fbd40df8cf2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name "asdf-ruby-2-5-8"

license "BSD-2-Clause"
license_file "BSDL"
license_file "COPYING"
license_file "LEGAL"
skip_transitive_dependency_licensing true

default_version "2.5.8"
source url: "https://cache.ruby-lang.org/pub/ruby/2.5/ruby-#{version}.tar.gz", sha256: '6c0bdf07876c69811a9e7dc237c43d40b1cb6369f68e0e17953d7279b524ad9a'
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