Skip to content

Commit

Permalink
fre-nctools: add new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dougiesquire committed Feb 4, 2025
1 parent b8ebfbc commit c7cd5fd
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions packages/fre-nctools/package.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# Copyright 2025 ACCESS-NRI
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

Expand All @@ -14,14 +15,20 @@ class FreNctools(AutotoolsPackage):
use in the Flexible Modeling System (FMS) Runtime Environment (FRE)
supporting the work of the Geophysical Fluid Dynamics Laboratory (GFDL)."""

# FIXME: Add a proper url for your package's homepage here.
homepage = "https://github.com/NOAA-GFDL/FRE-NCtools"
url = "https://github.com/NOAA-GFDL/FRE-NCtools/archive/2022.02.tar.gz"

# FIXME: Add a list of GitHub accounts to
# notify when the package is updated.
# maintainers = ["github_user1", "github_user2"]

maintainers("dougiesquire")

version("2024.05.01", sha256="bb8effba374b68dde892c1dc16611119181ad4f77cf2e64c18f28141315893c7")
version("2024.05", sha256="61cec52aa03e066b64bed794ef9dc3eb28654c3d1b872aef1b69ce99ef7a9c65")
version("2024.04", sha256="e27346d7ade1b67af163bb7f327a47a288d5e475fe797323bd7cee3a46385de0")
version("2024.03", sha256="2835199359c7d1dba6e70c8656f34cfc1ccae3a6a258b5359321024d03def861")
version("2024.02", sha256="90d52abc1b467d635dd648185b0046efcc6d58a232143b0ccaf9a0bff23d2f5d")
version("2024.01", sha256="98068a7b16687092af161998351bc16d7117d05098857c34b9fc89d708aa9837")
version("2023.01.02", sha256="16f75086ed36bfcee00d366c4504c20d97a436223f5250137c35a7c661b1f3f6")
version("2023.01.01", sha256="7a5eb6fcea996a03287bddeabeedcea2f3fa65f0633d281bd3ab295227b85968")
version("2023.01", sha256="930119b72e20e72e08cc37ab1422d780a8aba24b2ed84682af9db0c311c449b3")
version("2022.02", sha256="bd90c9c3becdb19ff408c0915e61141376e81c12651a5c1b054c75ced9a73ad2")

variant("mpi", default=False, description="Builds with MPI support")
Expand All @@ -31,11 +38,17 @@ class FreNctools(AutotoolsPackage):
depends_on("libtool", type="build")
depends_on("netcdf-c")
depends_on("netcdf-fortran")
depends_on("mpi", when="+mpi")

def configure_args(self):
spec = self.spec
args = []

# ocean_model_grid_generator subproject removed in 2023.01
if spec.version <= Version("2022.02"):
args.append("--disable-ocean-model-grid-generator")

args = ["--disable-ocean-model-grid-generator"]
if "+mpi" in spec:
args.append("--with-mpi")

return args

0 comments on commit c7cd5fd

Please sign in to comment.