From a00951137f39805869ef6a1d0c54dddb9b63872d Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 7 Aug 2022 23:50:49 -0700 Subject: libheif: add new package (#31982) --- var/spack/repos/builtin/packages/gdal/package.py | 3 +-- var/spack/repos/builtin/packages/libheif/package.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 var/spack/repos/builtin/packages/libheif/package.py (limited to 'var') 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") -- cgit v1.2.3-60-g2f50