Add Lizard (LZ5) (#13456)

* Add Lizard (LZ5)

Add a new package for Lizard, formerly LZ5, a very fast compressor
and decompressor library.

* c-blosc2: use external lizard

Use an external Lizard (LZ5) dependency and add missing
"when="s for other compressor dependents.
This commit is contained in:
Axel Huebl
2019-10-27 20:24:27 -07:00
committed by Adam J. Stewart
parent 1d760e79a6
commit 7b86251bef
3 changed files with 109 additions and 8 deletions

View File

@@ -32,12 +32,11 @@ class CBlosc2(CMakePackage):
description='support for ZSTD')
depends_on('cmake@2.8.10:', type='build')
# TODO https://github.com/inikep/lizard/issues/21
# depends_on('lizard')
depends_on('lz4')
depends_on('snappy')
depends_on('zlib')
depends_on('zstd')
depends_on('lizard', when='+lizard')
depends_on('lz4', when='+lz4')
depends_on('snappy', when='+snappy')
depends_on('zlib', when='+zlib')
depends_on('zstd', when='+zstd')
def cmake_args(self):
spec = self.spec
@@ -53,8 +52,7 @@ def cmake_args(self):
'ON' if '~zlib' in spec else 'OFF'),
'-DDEACTIVATE_ZSTD={0}'.format(
'ON' if '~zstd' in spec else 'OFF'),
# TODO https://github.com/inikep/lizard/issues/21
'-DPREFER_EXTERNAL_LIZARD=OFF',
'-DPREFER_EXTERNAL_LIZARD=ON',
'-DPREFER_EXTERNAL_LZ4=ON',
# snappy is supported via external install only
'-DPREFER_EXTERNAL_ZLIB=ON',