zlib-ng: new package (#22346)

This commit is contained in:
Michael Kuhn 2021-03-20 13:43:04 +01:00 committed by GitHub
parent f8ea3c5285
commit dfb0da2c85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,28 @@
# Copyright 2013-2021 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 ZlibNg(CMakePackage):
"""zlib replacement with optimizations for next generation systems."""
homepage = "https://github.com/zlib-ng/zlib-ng"
url = "https://github.com/zlib-ng/zlib-ng/archive/2.0.0.tar.gz"
version('2.0.0', sha256='86993903527d9b12fc543335c19c1d33a93797b3d4d37648b5addae83679ecd8')
variant('compat', default=False, description='Enable compatibility API')
variant('opt', default=True, description='Enable optimizations')
depends_on('cmake@3.5.1:', type='build')
def cmake_args(self):
args = [
self.define_from_variant('ZLIB_COMPAT', 'compat'),
self.define_from_variant('WITH_OPTIM', 'opt'),
]
return args