summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-08-10 02:04:56 -0700
committerGitHub <noreply@github.com>2022-08-10 11:04:56 +0200
commit47b1138ef22609d1b2277c666df598cc15e9fd5d (patch)
tree7b3e663513cfd97743200fed78b28b88d26ad2fa /var
parent5d6ab9a76c75a5f260d92b592d55ed5a424e0d09 (diff)
downloadspack-47b1138ef22609d1b2277c666df598cc15e9fd5d.tar.gz
spack-47b1138ef22609d1b2277c666df598cc15e9fd5d.tar.bz2
spack-47b1138ef22609d1b2277c666df598cc15e9fd5d.tar.xz
spack-47b1138ef22609d1b2277c666df598cc15e9fd5d.zip
libgta: add new package (#31981)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gdal/package.py3
-rw-r--r--var/spack/repos/builtin/packages/libgta/package.py20
2 files changed, 21 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py
index 5db5883f65..36f86d2eef 100644
--- a/var/spack/repos/builtin/packages/gdal/package.py
+++ b/var/spack/repos/builtin/packages/gdal/package.py
@@ -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")
diff --git a/var/spack/repos/builtin/packages/libgta/package.py b/var/spack/repos/builtin/packages/libgta/package.py
new file mode 100644
index 0000000000..3e24a988af
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libgta/package.py
@@ -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)]