Skip to content

Commit

Permalink
access-generic-tracers: create an SPD for ACCESS-NRI's fork (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshula authored Nov 15, 2024
1 parent 279851d commit ff94cda
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions packages/access-generic-tracers/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 find_libraries

class AccessGenericTracers(CMakePackage):
"""This is a fork of the NOAA-GFDL/ocean_BGC repo managed by NOAA-GFDL.
It contains a collection of tracers and associated code for use with
the MOM and GOLD ocean models. This fork includes generic tracer
implementations of the suite of WOMBAT models used in ACCESS earth-system
models."""

homepage = "https://github.com/ACCESS-NRI/GFDL-generic-tracers"
git = "https://github.com/ACCESS-NRI/GFDL-generic-tracers.git"

maintainers("harshula")

version("master", branch="master")
# TODO: Needs to be changed once changes to build system enter master.
version("development", branch="development", preferred=True)

depends_on("access-mocsy")
depends_on("access-fms")
depends_on("mpi")

def url_for_version(self, version):
return "https://github.com/ACCESS-NRI/GFDL-generic-tracers/tarball/{0}".format(version)

@property
def libs(self):
libraries = find_libraries(
"libgtracers", root=self.prefix, shared=False, recursive=True
)
# mocsy is an internal lib dependency of this static library.
# Hence we need to propagate it.
return libraries + self.spec["access-mocsy"].libs

0 comments on commit ff94cda

Please sign in to comment.