Add genf90 resource for cprnc to allow offline builds (#42015)

* Add genf90 resource for cprnc to allow offline builds
* Update package.py
* Update package.py style fix
This commit is contained in:
Alex Richert 2024-01-09 21:53:50 -05:00 committed by GitHub
parent d978d7ee0d
commit f552dbd199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,3 +22,17 @@ class Cprnc(CMakePackage):
depends_on("netcdf-fortran") depends_on("netcdf-fortran")
depends_on("cmake@3:", type="build") depends_on("cmake@3:", type="build")
resource(
name="genf90",
git="https://github.com/PARALLELIO/genf90",
tag="genf90_200608",
destination="genf90-resource",
)
def cmake_args(self):
args = [
self.define("GENF90_PATH", join_path(self.stage.source_path, "genf90-resource/genf90"))
]
return args