-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
access-generic-tracers: create an SPD for ACCESS-NRI's fork
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |