summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorEdward Hartnett <38856240+edwardhartnett@users.noreply.github.com>2021-09-27 12:03:54 -0600
committerGitHub <noreply@github.com>2021-09-27 11:03:54 -0700
commitc592e17d49118f253b552ef6165745ded8ac0ea5 (patch)
treea9e8c842bc94fb7c480e8bcd81083e181d959ac1 /var
parent27c0b4a0f704dab4283a82334d278cf714f84abc (diff)
downloadspack-c592e17d49118f253b552ef6165745ded8ac0ea5.tar.gz
spack-c592e17d49118f253b552ef6165745ded8ac0ea5.tar.bz2
spack-c592e17d49118f253b552ef6165745ded8ac0ea5.tar.xz
spack-c592e17d49118f253b552ef6165745ded8ac0ea5.zip
added package g2c from NOAAs NCEPLIBS project (#26190)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/g2c/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/g2c/package.py b/var/spack/repos/builtin/packages/g2c/package.py
new file mode 100644
index 0000000000..14c5cabfc7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/g2c/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2021 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 import *
+
+
+class G2c(CMakePackage):
+ """This library contains C decoder/encoder routines for GRIB edition 2.
+
+ This is part of NOAA's NCEPLIBS project."""
+
+ homepage = "https://github.com/NOAA-EMC/NCEPLIBS-g2c"
+ url = "https://github.com/NOAA-EMC/NCEPLIBS-g2c/archive/refs/tags/v1.6.4.tar.gz"
+
+ maintainers = ['kgerheiser', 'Hang-Lei-NOAA', 'edwardhartnett']
+
+ variant('png', default=True)
+ variant('jasper', default=True)
+ variant('openjpeg', default=False)
+
+ version('1.6.4', sha256='5129a772572a358296b05fbe846bd390c6a501254588c6a223623649aefacb9d')
+ version('1.6.2', sha256='b5384b48e108293d7f764cdad458ac8ce436f26be330b02c69c2a75bb7eb9a2c')
+
+ depends_on('libpng', when='+png')
+ depends_on('jasper', when='+jasper')
+ depends_on('openjpeg', when='+openjpeg')