diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-08-22 11:05:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 18:05:06 +0000 |
commit | 1039caabed335c08309760f7489f674d3424c2c3 (patch) | |
tree | 69d43462c1616b794144d24840a06f428277be2c | |
parent | 5edb0fe96ae1cc984f5b3cf765a3c4131dfa2961 (diff) | |
download | spack-1039caabed335c08309760f7489f674d3424c2c3.tar.gz spack-1039caabed335c08309760f7489f674d3424c2c3.tar.bz2 spack-1039caabed335c08309760f7489f674d3424c2c3.tar.xz spack-1039caabed335c08309760f7489f674d3424c2c3.zip |
crunch: add new package (#31980)
-rw-r--r-- | var/spack/repos/builtin/packages/crunch/package.py | 24 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/gdal/package.py | 5 |
2 files changed, 26 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/crunch/package.py b/var/spack/repos/builtin/packages/crunch/package.py new file mode 100644 index 0000000000..fb29221fa8 --- /dev/null +++ b/var/spack/repos/builtin/packages/crunch/package.py @@ -0,0 +1,24 @@ +# 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) + +from spack.package import * + + +class Crunch(CMakePackage): + """Advanced DXTc texture compression and transcoding library.""" + + homepage = "https://github.com/BinomialLLC/crunch" + # The original repo does not have any build system or installation instructions. This package + # was added primarily as a possible dependency of GDAL. The following fork was created by the + # maintainer of GDAL and includes several additional commits to add a CMake build system and + # fix compilation bugs. If these commits are ever merged into upstream, we can switch to that. + git = "https://github.com/rouault/crunch.git" + + # No stable releases since 2012 + version("master", branch="build_fixes") + + depends_on("cmake@3.5:", type="build") + + conflicts("platform=darwin") diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py index 36f86d2eef..f52e9d4501 100644 --- a/var/spack/repos/builtin/packages/gdal/package.py +++ b/var/spack/repos/builtin/packages/gdal/package.py @@ -222,9 +222,9 @@ class Gdal(CMakePackage): depends_on("arrow", when="+arrow") depends_on("c-blosc", when="+blosc") depends_on("brunsli", when="+brunsli") - # depends_on('bsb', when='+bdb') + # depends_on('bsb', when='+bsb') depends_on("cfitsio", when="+cfitsio") - # depends_on('crunch', when='+crnlib') + depends_on("crunch", when="+crnlib") depends_on("curl", when="+curl") depends_on("cryptopp", when="+cryptopp") depends_on("libdeflate", when="+deflate") @@ -355,7 +355,6 @@ class Gdal(CMakePackage): # TODO: add packages for the following dependencies conflicts("+bsb") - conflicts("+crnlib") conflicts("+dods") conflicts("+ecw") conflicts("+epsilon") |