blob: a4d331ea7cd945742b7b042361dd88b4a23ded71 (
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
|
name "asdf"
default_version "0.7.8"
relative_path "asdf-#{version}"
license "MIT"
# license_file "#{project_dir}/LICENSE"
skip_transitive_dependency_licensing true
version("0.7.8") { source md5: "c64fe16441d639669a6bf56a860e0eb4" }
source url: "https://github.com/asdf-vm/asdf/archive/v#{version}.tar.gz"
build do
block do
sync project_dir, install_dir
command "echo 'legacy_version_file = yes' > #{install_dir}/defaults"
touch "#{install_dir}/installs/.keep"
touch "#{install_dir}/plugins/.keep"
env = { 'ASDF_DATA_DIR' => install_dir }
command "#{install_dir}/bin/asdf plugin-add elixir", env: env
command "#{install_dir}/bin/asdf plugin-add golang", env: env
command "#{install_dir}/bin/asdf plugin-add gradle", env: env
command "#{install_dir}/bin/asdf plugin-add java", env: env
command "#{install_dir}/bin/asdf plugin-add maven", env: env
command "#{install_dir}/bin/asdf plugin-add nodejs", env: env
command "#{install_dir}/bin/asdf plugin-add php", env: env
command "#{install_dir}/bin/asdf plugin-add python", env: env
command "#{install_dir}/bin/asdf plugin-add ruby", env: env
command "#{install_dir}/bin/asdf plugin-add rust", env: env
command "#{install_dir}/bin/asdf plugin-add sbt", env: env
end
end
|