# @author: Robert Schmidt (OHRI) # @author: Guilherme Peretti-Pezzi (CSCS) easyblock = "CmdCp" name = 'Bazel' version = '0.5.4' homepage = 'http://bazel.io/' description = """Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google's software.""" toolchain = {'name': 'GCC', 'version': '7.1.0-2.28'} sources = ['%(namelower)s-%(version)s-dist.zip'] source_urls = [ 'https://github.com/bazelbuild/bazel/releases/download/%(version)s'] patches = [ ('cc_configure.patch'), ('CROSSTOOL.patch'), ] prebuildopts = "export EXTRA_BAZEL_ARGS='--ignore_unsupported_sandboxing --genrule_strategy=standalone --spawn_strategy=standalone --jobs=24' && " dependencies = [ ('Java', '1.8.0_121', '', True), ] cmds_map = [('.*', "./local_compile.sh")] files_to_copy = [(['output/bazel'], 'bin')] sanity_check_paths = { 'files': ['bin/bazel'], 'dirs': [], } moduleclass = 'devel'