diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-03-31 10:17:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 10:17:35 +0200 |
commit | fa6e30c6a77e06a029f3e196166a83c5bd869e7b (patch) | |
tree | 7608b8f91efbb7e6202c668044c0ac02f60cceb3 | |
parent | 64d4ab85e75a5b53a70c24fbddde3747711e4f0d (diff) | |
download | spack-fa6e30c6a77e06a029f3e196166a83c5bd869e7b.tar.gz spack-fa6e30c6a77e06a029f3e196166a83c5bd869e7b.tar.bz2 spack-fa6e30c6a77e06a029f3e196166a83c5bd869e7b.tar.xz spack-fa6e30c6a77e06a029f3e196166a83c5bd869e7b.zip |
squashfuse: add v0.1.104 and variants (#22605)
-rw-r--r-- | var/spack/repos/builtin/packages/squashfuse/package.py | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/var/spack/repos/builtin/packages/squashfuse/package.py b/var/spack/repos/builtin/packages/squashfuse/package.py index c7e4c68aba..c30b3da7bf 100644 --- a/var/spack/repos/builtin/packages/squashfuse/package.py +++ b/var/spack/repos/builtin/packages/squashfuse/package.py @@ -10,22 +10,23 @@ class Squashfuse(AutotoolsPackage): """squashfuse - Mount SquashFS archives using FUSE""" homepage = "https://github.com/vasi/squashfuse" - url = "https://github.com/vasi/squashfuse/releases/download/0.1.103/squashfuse-0.1.103.tar.gz" + url = "https://github.com/vasi/squashfuse/releases/download/0.1.104/squashfuse-0.1.104.tar.gz" git = "https://github.com/vasi/squashfuse.git" maintainers = ['haampie'] - # there hasn't been a release for a while, and the master branch introduces - # support for fuse@3:, so we have our own spack version here (46 commits - # after 0.1.103) version('master', branch='master') - version('0.1.103-46', commit='e5dddbfc6e402c82f5fbba115b0eb3476684f50d', preferred=True) - - # official releases + version('0.1.104', sha256='aa52460559e0d0b1753f6b1af5c68cfb777ca5a13913285e93f4f9b7aa894b3a') version('0.1.103', sha256='42d4dfd17ed186745117cfd427023eb81effff3832bab09067823492b6b982e7') + variant('zlib', default=True, description='Enable zlib/gzip compression support') + variant('lz4', default=True, description='Enable LZ4 compression support') + variant('lzo', default=True, description='Enable LZO compression support') + variant('xz', default=True, description='Enable xz compression support') + variant('zstd', default=True, description='Enable Zstandard/zstd support') + depends_on('libfuse@2.5:') - depends_on('libfuse@:2.99', when='@0.1.103') + depends_on('libfuse@:2.99', when='@:0.1.103') # Note: typically libfuse is external, but this implies that you have to make # pkg-config external too, because spack's pkg-config doesn't know how to @@ -33,17 +34,22 @@ class Squashfuse(AutotoolsPackage): depends_on('pkg-config', type='build') # compression libs - depends_on('zlib') - depends_on('lz4') - depends_on('lzo') - depends_on('xz') - depends_on('zstd') - - # build deps for non-tarball versions - depends_on('m4', type='build', when='@master,0.1.103-46') - depends_on('autoconf', type='build', when='@master,0.1.103-46') - depends_on('automake', type='build', when='@master,0.1.103-46') - depends_on('libtool', type='build', when='@master,0.1.103-46') + depends_on('zlib', when='+zlib') + depends_on('lz4', when='+lz4') + depends_on('lzo', when='+lzo') + depends_on('xz', when='+xz') + depends_on('zstd', when='+zstd') + + depends_on('m4', type='build', when='master') + depends_on('autoconf', type='build', when='master') + depends_on('automake', type='build', when='master') + depends_on('libtool', type='build', when='master') def configure_args(self): - return ['--disable-demo'] + args = ['--disable-demo'] + args += self.with_or_without('zlib', activation_value='prefix') + args += self.with_or_without('lz4', activation_value='prefix') + args += self.with_or_without('lzo', activation_value='prefix') + args += self.with_or_without('xz', activation_value='prefix') + args += self.with_or_without('zstd', activation_value='prefix') + return args |