summaryrefslogtreecommitdiff
path: root/config/software
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-25 10:05:20 -0600
committermo khan <mo.khan@gmail.com>2020-06-25 10:05:20 -0600
commit9ac80fbe229ee6e6434d6b2a12f6dcbac4147d18 (patch)
tree9e20c31842757895465f550462c2f2da1ea19e4e /config/software
parentc56a674223b3279b23b66aca409dc23c4252d647 (diff)
Prepare separate projects for each tool-version
Diffstat (limited to 'config/software')
-rw-r--r--config/software/asdf-python-plugin.rb13
-rw-r--r--config/software/asdf-ruby-plugin.rb13
-rw-r--r--config/software/asdf-ruby.rb10
-rw-r--r--config/software/asdf-zlib.rb55
-rw-r--r--config/software/asdf.rb34
-rw-r--r--config/software/preparation.rb22
6 files changed, 46 insertions, 101 deletions
diff --git a/config/software/asdf-python-plugin.rb b/config/software/asdf-python-plugin.rb
deleted file mode 100644
index 5509752..0000000
--- a/config/software/asdf-python-plugin.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-name "asdf-python-plugin"
-description "Python plugin for asdf version manager"
-source git: "https://github.com/danhper/asdf-python.git"
-relative_path "python"
-
-license_file "#{project_dir}/LICENSE"
-#skip_transitive_dependency_licensing true
-
-build do
- block do
- sync project_dir, "#{install_dir}/plugins/python"
- end
-end
diff --git a/config/software/asdf-ruby-plugin.rb b/config/software/asdf-ruby-plugin.rb
deleted file mode 100644
index 5340d3b..0000000
--- a/config/software/asdf-ruby-plugin.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-name "asdf-ruby-plugin"
-description "Ruby plugin for asdf version manager"
-source git: "https://github.com/asdf-vm/asdf-ruby.git"
-relative_path "ruby"
-
-license_file "#{project_dir}/LICENSE"
-#skip_transitive_dependency_licensing true
-
-build do
- block do
- sync project_dir, "#{install_dir}/plugins/ruby"
- end
-end
diff --git a/config/software/asdf-ruby.rb b/config/software/asdf-ruby.rb
index 106e407..9cfa6b5 100644
--- a/config/software/asdf-ruby.rb
+++ b/config/software/asdf-ruby.rb
@@ -1,4 +1,4 @@
-name "asdf-ruby"
+name "asdf_ruby"
license "BSD-2-Clause"
license_file "BSDL"
@@ -27,6 +27,7 @@ version("2.6.0") { source sha256: "f3c35b924a11c88ff111f0956ded3cdc12c90c04b72b2
version("2.5.8") { source sha256: "6c0bdf07876c69811a9e7dc237c43d40b1cb6369f68e0e17953d7279b524ad9a" }
version("2.4.10") { source sha256: "93d06711795bfb76dbe7e765e82cdff3ddf9d82eff2a1f24dead9bb506eaf2d0" }
+version("2.4.9") { source sha256: "f99b6b5e3aa53d579a49eb719dd0d3834d59124159a6d4351d1e039156b1c6ae" }
version("2.4.5") { source sha256: "6737741ae6ffa61174c8a3dcdd8ba92bc38827827ab1d7ea1ec78bc3cefc5198" }
source url: "https://cache.ruby-lang.org/pub/ruby/#{version.match(/^(\d+\.\d+)/)[0]}/ruby-#{version}.tar.gz"
@@ -42,14 +43,17 @@ build do
"--disable-install-rdoc",
"--disable-jit-support",
"--enable-shared",
- "--prefix=#{install_dir}/installs/ruby/#{version}",
+ "--prefix=#{install_dir}",
"--with-out-ext=dbm,readline",
"--without-gdbm",
"--without-gmp",
"--without-valgrind",
- "--without-tk",
+ "--without-tk"
]
configure(*configure_command, env: env)
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
+ command "#{install_dir}/bin/gem update --system"
+ command "#{install_dir}/bin/gem install bundler -v '~>1.7' --no-document"
+ command "#{install_dir}/bin/gem install bundler -v '~>2.0' --no-document"
end
diff --git a/config/software/asdf-zlib.rb b/config/software/asdf-zlib.rb
deleted file mode 100644
index 9e40776..0000000
--- a/config/software/asdf-zlib.rb
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# 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.
-#
-
-# These options are required for all software definitions
-name "asdf-zlib"
-default_version "1.2.6"
-
-# A software can specify more than one version that is available for install
-version("1.2.6") { source md5: "618e944d7c7cd6521551e30b32322f4a" }
-version("1.2.8") { source md5: "44d667c142d7cda120332623eab69f40" }
-
-# Sources may be URLs, git locations, or path locations
-source url: "http://downloads.sourceforge.net/project/libpng/zlib/#{version}/zlib-#{version}.tar.gz"
-
-# This is the path, inside the tarball, where the source resides
-relative_path "zlib-#{version}"
-
-build do
- # Setup a default environment from Omnibus - you should use this Omnibus
- # helper everywhere. It will become the default in the future.
- env = with_standard_compiler_flags(with_embedded_path)
-
- # Manipulate any configure flags you wish:
- # For some reason zlib needs this flag on solaris
- env["CFLAGS"] << " -DNO_VIZ" if solaris?
-
- # "command" is part of the build DSL. There are a number of handy options
- # available, such as "copy", "sync", "ruby", etc. For a complete list, please
- # consult the Omnibus gem documentation.
- #
- # "install_dir" is exposed and refers to the top-level projects +install_dir+
- command "./configure" \
- " --prefix=#{install_dir}/embedded", env: env
-
- # You can have multiple steps - they are executed in the order in which they
- # are read.
- #
- # "workers" is a DSL method that returns the most suitable number of
- # builders for the currently running system.
- command "make -j #{workers}", env: env
- command "make -j #{workers} install", env: env
-end
diff --git a/config/software/asdf.rb b/config/software/asdf.rb
new file mode 100644
index 0000000..a4d331e
--- /dev/null
+++ b/config/software/asdf.rb
@@ -0,0 +1,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
diff --git a/config/software/preparation.rb b/config/software/preparation.rb
index 231cd5a..c49fdb1 100644
--- a/config/software/preparation.rb
+++ b/config/software/preparation.rb
@@ -1,25 +1,13 @@
name "preparation"
description "the steps required to prepare the build"
-default_version "v0.7.8"
-relative_path "asdf-#{version[1..-1]}"
+default_version "1.0.0"
-license_file "#{project_dir}/LICENSE"
-#skip_transitive_dependency_licensing true
-
-version("v0.7.8") { source md5: "c64fe16441d639669a6bf56a860e0eb4" }
-
-source url: "https://github.com/asdf-vm/asdf/archive/#{version}.tar.gz"
+license :project_license
+skip_transitive_dependency_licensing true
build do
block do
- sync "#{project_dir}/bin", "#{install_dir}/bin"
- sync "#{project_dir}/lib", "#{install_dir}/lib"
- copy "#{project_dir}/LICENSE", "#{install_dir}/LICENSE"
- command "echo 'legacy_version_file = yes' > #{install_dir}/defaults"
- touch "#{install_dir}/installs/.keep"
- touch "#{install_dir}/plugins/.keep"
- #touch "#{install_dir}/embedded/lib/.gitkeep"
- #touch "#{install_dir}/embedded/bin/.gitkeep"
- #touch "#{install_dir}/bin/.gitkeep"
+ touch "#{install_dir}/embedded/lib/.keep"
+ touch "#{install_dir}/embedded/bin/.keep"
end
end