blob: 8fd23086ef48093244fb41519db0bfe3bdcd622d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2013-2024 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 W3nco(CMakePackage):
"""This library contains Fortran 90 decoder/encoder routines for GRIB
edition 1 with NCO changes. This library is deprecated; all
functionality has been moved to the w3emc library.
This is part of the NCEPLIBS project."""
homepage = "https://noaa-emc.github.io/NCEPLIBS/NCEPLIBS-w3nco/"
url = "https://github.com/NOAA-EMC/NCEPLIBS-w3nco/archive/refs/tags/v2.4.1.tar.gz"
maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")
version("2.4.1", sha256="48b06e0ea21d3d0fd5d5c4e7eb50b081402567c1bff6c4abf4fd4f3669070139")
def flag_handler(self, name, flags):
if name == "cflags":
if (
self.spec.satisfies("%oneapi")
or self.spec.satisfies("%apple-clang")
or self.spec.satisfies("%clang")
):
flags.append("-Wno-error=implicit-function-declaration")
return (flags, None, None)
|