diff options
author | Federico Ficarelli <federico.ficarelli@gmail.com> | 2019-10-05 01:42:09 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-10-04 18:42:09 -0500 |
commit | a362cf5ff6dcea353560409b9430ca82150b5918 (patch) | |
tree | 8109a193a1be5ee4a0b96e2497eec47949b5d5ec | |
parent | e366f6ba3996f815be01fc8ef92ad4ef5e134c67 (diff) | |
download | spack-a362cf5ff6dcea353560409b9430ca82150b5918.tar.gz spack-a362cf5ff6dcea353560409b9430ca82150b5918.tar.bz2 spack-a362cf5ff6dcea353560409b9430ca82150b5918.tar.xz spack-a362cf5ff6dcea353560409b9430ca82150b5918.zip |
grpc: new package (#13054)
* Add grpc@1.23.1
* Let version in url match actual one
-rw-r--r-- | var/spack/repos/builtin/packages/grpc/package.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/grpc/package.py b/var/spack/repos/builtin/packages/grpc/package.py new file mode 100644 index 0000000000..20d09541ff --- /dev/null +++ b/var/spack/repos/builtin/packages/grpc/package.py @@ -0,0 +1,43 @@ +# Copyright 2013-2019 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) +from spack import * + + +class Grpc(CMakePackage): + """A high performance, open-source universal RPC framework.""" + + homepage = "https://grpc.io" + url = "https://github.com/grpc/grpc/archive/v1.23.1.tar.gz" + + version('1.23.1', sha256='dd7da002b15641e4841f20a1f3eb1e359edb69d5ccf8ac64c362823b05f523d9') + + variant('codegen', default=True, + description='Builds code generation plugins for protobuf ' + 'compiler (protoc)') + + depends_on('protobuf') + depends_on('openssl') + depends_on('zlib') + depends_on('cares') + + def cmake_args(self): + args = [ + '-DgRPC_BUILD_CODEGEN:Bool={0}'.format( + 'ON' if '+codegen' in self.spec else 'OFF'), + '-DgRPC_BUILD_CSHARP_EXT:Bool=OFF', + '-DgRPC_INSTALL:Bool=ON', + # Tell grpc to skip vendoring and look for deps via find_package: + '-DgRPC_CARES_PROVIDER:String=package', + '-DgRPC_ZLIB_PROVIDER:String=package', + '-DgRPC_SSL_PROVIDER:String=package', + '-DgRPC_PROTOBUF_PROVIDER:String=package', + '-DgRPC_USE_PROTO_LITE:Bool=OFF', + '-DgRPC_PROTOBUF_PACKAGE_TYPE:String=CONFIG', + # Disable tests: + '-DgRPC_BUILD_TESTS:BOOL=OFF', + '-DgRPC_GFLAGS_PROVIDER:String=none', + '-DgRPC_BENCHMARK_PROVIDER:String=none', + ] + return args |