diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/ecbuild/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ecbuild/package.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ecbuild/package.py b/var/spack/repos/builtin/packages/ecbuild/package.py index a4a6656bed..66664ea6e3 100644 --- a/var/spack/repos/builtin/packages/ecbuild/package.py +++ b/var/spack/repos/builtin/packages/ecbuild/package.py @@ -13,8 +13,9 @@ class Ecbuild(CMakePackage): homepage = "https://github.com/ecmwf/ecbuild" url = "https://github.com/ecmwf/ecbuild/archive/refs/tags/3.6.1.tar.gz" - maintainers("skosukhin") + maintainers("skosukhin", "climbfuji") + version("3.7.2", sha256="7a2d192cef1e53dc5431a688b2e316251b017d25808190faed485903594a3fb9") version("3.6.5", sha256="98bff3d3c269f973f4bfbe29b4de834cd1d43f15b1c8d1941ee2bfe15e3d4f7f") version("3.6.1", sha256="796ccceeb7af01938c2f74eab0724b228e9bf1978e32484aa3e227510f69ac59") @@ -25,3 +26,16 @@ class Ecbuild(CMakePackage): # Some of the installed scripts require running Perl: depends_on("perl", type=("build", "run")) + + variant("fismahigh", default=False, description="Apply patching for FISMA-high compliance") + + @when("+fismahigh") + def patch(self): + filter_file('ssh://[^"]+', "", "cmake/compat/ecmwf_git.cmake") + filter_file('https?://[^"]+', "", "cmake/compat/ecmwf_git.cmake") + filter_file( + "https?://.*test-data", "DISABLED_BY_DEFAULT", "cmake/ecbuild_check_urls.cmake" + ) + filter_file( + "https?://.*test-data", "DISABLED_BY_DEFAULT", "cmake/ecbuild_get_test_data.cmake" + ) |