libgta: add new package (#31981)

This commit is contained in:
Adam J. Stewart 2022-08-10 02:04:56 -07:00 committed by GitHub
parent 5d6ab9a76c
commit 47b1138ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View File

@ -240,7 +240,7 @@ class Gdal(CMakePackage):
depends_on("giflib", when="+gif")
depends_on("grass@5.7:", when="+grass")
depends_on("grib-api", when="+grib")
# depends_on('gta', when='+gta')
depends_on("libgta", when="+gta")
depends_on("libheif@1.1:", when="+heif")
depends_on("hdf", when="+hdf4")
depends_on("hdf5+cxx", when="+hdf5")
@ -361,7 +361,6 @@ class Gdal(CMakePackage):
conflicts("+epsilon")
conflicts("+filegdb")
conflicts("+fme")
conflicts("+gta")
conflicts("+idb")
conflicts("+ingres")
conflicts("+kdu")

View File

@ -0,0 +1,20 @@
# 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 Libgta(CMakePackage):
"""Library that reads and writes Generic Tagged Arrays (GTA) files."""
homepage = "https://marlam.de/gta/"
url = "https://marlam.de/gta/releases/libgta-1.2.1.tar.xz"
version("1.2.1", sha256="d445667e145f755f0bc34ac89b63a6bfdce1eea943f87ee7a3f23dc0dcede8b1")
depends_on("cmake@3.5:", type="build")
def cmake_args(self):
return [self.define("GTA_BUILD_DOCUMENTATION", False)]