diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2022-04-19 07:12:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 14:12:05 +0200 |
commit | 1c13b3707cca69d474443d504576ce0e237ccb72 (patch) | |
tree | f42bbf36e8ba0be6bbc5a34ccfd2552bcb9eb16e | |
parent | bad6ebc9108c65f65f8e9a46b71a5527d2351b36 (diff) | |
download | spack-1c13b3707cca69d474443d504576ce0e237ccb72.tar.gz spack-1c13b3707cca69d474443d504576ce0e237ccb72.tar.bz2 spack-1c13b3707cca69d474443d504576ce0e237ccb72.tar.xz spack-1c13b3707cca69d474443d504576ce0e237ccb72.zip |
or-tools: add new package. (#29858)
-rw-r--r-- | var/spack/repos/builtin/packages/or-tools/package.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/or-tools/package.py b/var/spack/repos/builtin/packages/or-tools/package.py new file mode 100644 index 0000000000..b86747469e --- /dev/null +++ b/var/spack/repos/builtin/packages/or-tools/package.py @@ -0,0 +1,37 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +class OrTools(CMakePackage): + """This project hosts operations research tools developed at + Google and made available as open source under the Apache 2.0 + License.""" + + homepage = "https://developers.google.com/optimization/" + url = "https://github.com/google/or-tools/archive/v7.8.tar.gz" + maintainers = ['hyoklee'] + + version('7.8', sha256='d93a9502b18af51902abd130ff5f23768fcf47e266e6d1f34b3586387aa2de68') + variant('coin', default=False, description='Enable COIN-OR solvers.') + depends_on('cmake@3.14:', type='build') + depends_on('gflags@2.2.2:') + depends_on('glog@0.4.0:') + depends_on('protobuf@3.12.2:') + depends_on('abseil-cpp@20200225.2:') + depends_on('cbc@2.10.5:') + depends_on('cgl@0.60.3:') + depends_on('clp@1.17.4:') + depends_on('osi@0.108.6:') + depends_on('coinutils@2.11.4:', when='+coin') + + def cmake_args(self): + cmake_args = [] + cmake_args.append('-DBUILD_DEPS=OFF') + cmake_args.append('-DBUILD_PYTHON=OFF') + cmake_args.append(self.define_from_variant('USE_COINOR', 'coin')) + cmake_args.append('-DUSE_SCIP=ON') + cmake_args.append('-DBUILD_SCIP=ON') + cmake_args.append('-DBUILD_TESTING=OFF') + return cmake_args |