summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-08-07 23:50:49 -0700
committerGitHub <noreply@github.com>2022-08-08 08:50:49 +0200
commita00951137f39805869ef6a1d0c54dddb9b63872d (patch)
treec1bbd9d0cc3450051a1a4a57e4b90d926f3dc2a9 /var
parent67154a1088a5ff962fe094e7e180cd8c24e920d4 (diff)
downloadspack-a00951137f39805869ef6a1d0c54dddb9b63872d.tar.gz
spack-a00951137f39805869ef6a1d0c54dddb9b63872d.tar.bz2
spack-a00951137f39805869ef6a1d0c54dddb9b63872d.tar.xz
spack-a00951137f39805869ef6a1d0c54dddb9b63872d.zip
libheif: add new package (#31982)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gdal/package.py3
-rw-r--r--var/spack/repos/builtin/packages/libheif/package.py17
2 files changed, 18 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py
index 0eb8c25d7f..404ae9c02c 100644
--- a/var/spack/repos/builtin/packages/gdal/package.py
+++ b/var/spack/repos/builtin/packages/gdal/package.py
@@ -241,7 +241,7 @@ class Gdal(CMakePackage):
depends_on("grass@5.7:", when="+grass")
depends_on("grib-api", when="+grib")
# depends_on('gta', when='+gta')
- # depends_on('heif@1.1:', when='+heif')
+ depends_on("libheif@1.1:", when="+heif")
depends_on("hdf", when="+hdf4")
depends_on("hdf5+cxx", when="+hdf5")
depends_on("hdf5@:1.12", when="@:3.4.1 +hdf5")
@@ -362,7 +362,6 @@ class Gdal(CMakePackage):
conflicts("+filegdb")
conflicts("+fme")
conflicts("+gta")
- conflicts("+heif")
conflicts("+idb")
conflicts("+ingres")
conflicts("+jxl")
diff --git a/var/spack/repos/builtin/packages/libheif/package.py b/var/spack/repos/builtin/packages/libheif/package.py
new file mode 100644
index 0000000000..6d407040e2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libheif/package.py
@@ -0,0 +1,17 @@
+# 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 Libheif(CMakePackage):
+ """libheif is an HEIF and AVIF file format decoder and encoder."""
+
+ homepage = "https://github.com/strukturag/libheif"
+ url = "https://github.com/strukturag/libheif/archive/refs/tags/v1.12.0.tar.gz"
+
+ version("1.12.0", sha256="086145b0d990182a033b0011caadb1b642da84f39ab83aa66d005610650b3c65")
+
+ depends_on("cmake@3.13:", type="build")