summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bazel/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/bazel/package.py')
-rw-r--r--var/spack/repos/builtin/packages/bazel/package.py58
1 files changed, 28 insertions, 30 deletions
diff --git a/var/spack/repos/builtin/packages/bazel/package.py b/var/spack/repos/builtin/packages/bazel/package.py
index ff9817be97..9f34d3d52b 100644
--- a/var/spack/repos/builtin/packages/bazel/package.py
+++ b/var/spack/repos/builtin/packages/bazel/package.py
@@ -1,27 +1,8 @@
-##############################################################################
-# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
-# Produced at the Lawrence Livermore National Laboratory.
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
-# This file is part of Spack.
-# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
-# LLNL-CODE-647188
-#
-# For details, see https://github.com/spack/spack
-# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License (as
-# published by the Free Software Foundation) version 2.1, February 1999.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
-# conditions of the GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-##############################################################################
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
from spack import *
from multiprocessing import cpu_count
from spack.util.environment import env_flag
@@ -32,8 +13,19 @@ class Bazel(Package):
"""Bazel is Google's own build tool"""
homepage = "https://www.bazel.io"
- url = "https://github.com/bazelbuild/bazel/releases/download/0.5.0/bazel-0.5.0-dist.zip"
-
+ url = "https://github.com/bazelbuild/bazel/releases/download/0.11.1/bazel-0.11.1-dist.zip"
+
+ version('0.17.2', '9805c0593e781295126af6b8be8cc7a9')
+ version('0.16.1', 'c333d903c5275286e79316eb19dd742d')
+ version('0.15.0', 'fb6b928b62f068697bd66ad6d13aad53')
+ version('0.14.1', '841900316b3ec9b996babe1c5b0b92e1')
+ version('0.13.0', '64a5124025c1618b550faec64a9b6fa3')
+ version('0.12.0', 'b5d67564ceecfe2005a885fe2ffe0da3')
+ version('0.11.1', '80daac6b100b7f8e2b17d133150eba44')
+ version('0.11.0', 'e6caf93a805b45c33367028e575b91dd')
+ version('0.10.1', 'a7e5b9576993b752e31bd2d3259a14c5')
+ version('0.10.0', 'c2f15b34255099d25e94fce7283e5cd2')
+ version('0.9.0', '7fda74c163108f7c180bbc513bc8123b')
version('0.4.5', '2b737be42678900470ae9e48c975ac5b2296d9ae23c007bf118350dbe7c0552b')
version('0.4.4', '5e7c52b89071efc41277e2f0057d258f')
version('0.3.1', '5c959467484a7fc7dd2e5e4a1e8e866b')
@@ -42,12 +34,18 @@ class Bazel(Package):
version('0.2.2b', '75081804f073cbd194da1a07b16cba5f')
version('0.2.2', '644bc4ea7f429d835e74f255dc1054e6')
- depends_on('java@8:')
+ depends_on('java@8:', type=('build', 'link', 'run'))
depends_on('zip')
- patch('fix_env_handling.patch')
+ patch('fix_env_handling.patch', when='@:0.4.5')
+ patch('fix_env_handling-0.9.0.patch', when='@0.9.0:0.12.0')
+ patch('fix_env_handling-0.13.0.patch', when='@0.13.0:0.13.999')
+ patch('fix_env_handling-0.17.2.patch', when='@0.14.0:')
patch('link.patch')
- patch('cc_configure.patch')
+ patch('cc_configure.patch', when='@:0.4.5')
+ patch('unix_cc_configure.patch', when='@0.9.0')
+ patch('unix_cc_configure-0.10.0.patch', when='@0.10.0:0.14.999')
+ patch('unix_cc_configure-0.17.2.patch', when='@0.15.0:')
def url_for_version(self, version):
if version >= Version('0.4.1'):
@@ -80,8 +78,8 @@ class Bazel(Package):
def __call__(self, *args, **kwargs):
disable = env_flag(SPACK_NO_PARALLEL_MAKE)
- parallel = ((not disable) and
- kwargs.get('parallel', self.jobs > 1))
+ parallel = ((not disable) and kwargs.get('parallel',
+ self.jobs > 1))
jobs = "--jobs=1"
if parallel: