From daee8e1bf31369752a2f2cf799b1e460b866fba9 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 16 Jun 2020 17:05:34 -0600 Subject: Install asdf --- config/software/preparation.rb | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'config/software') diff --git a/config/software/preparation.rb b/config/software/preparation.rb index 05ca827..f37f3e5 100644 --- a/config/software/preparation.rb +++ b/config/software/preparation.rb @@ -1,30 +1,19 @@ -# -# Copyright 2020 YOUR NAME -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - name "preparation" description "the steps required to prepare the build" -default_version "1.0.0" +default_version "0.7.8" +source url: "https://github.com/asdf-vm/asdf/archive/v0.7.8.tar.gz", md5: 'c64fe16441d639669a6bf56a860e0eb4' +relative_path "asdf-#{version}" -license :project_license -skip_transitive_dependency_licensing true +license_file "#{project_dir}/LICENSE" +#skip_transitive_dependency_licensing true build do block do - touch "#{install_dir}/embedded/lib/.gitkeep" - touch "#{install_dir}/embedded/bin/.gitkeep" - touch "#{install_dir}/bin/.gitkeep" + sync "#{project_dir}/bin", "#{install_dir}/bin" + sync "#{project_dir}/lib", "#{install_dir}/lib" + command "echo 'legacy_version_file = yes' > #{install_dir}/defaults" + #touch "#{install_dir}/embedded/lib/.gitkeep" + #touch "#{install_dir}/embedded/bin/.gitkeep" + #touch "#{install_dir}/bin/.gitkeep" end end -- cgit v1.2.3