diff options
author | Alex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com> | 2023-04-01 12:12:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 21:12:00 +0200 |
commit | b9bde03df57b096951ef0358fd6d7a509e0f8b3b (patch) | |
tree | 74a995592703246197b7774572276a62e65ec364 | |
parent | 5c3bc36fdeb01b3044a8b3b00edd8048bb1622d4 (diff) | |
download | spack-b9bde03df57b096951ef0358fd6d7a509e0f8b3b.tar.gz spack-b9bde03df57b096951ef0358fd6d7a509e0f8b3b.tar.bz2 spack-b9bde03df57b096951ef0358fd6d7a509e0f8b3b.tar.xz spack-b9bde03df57b096951ef0358fd6d7a509e0f8b3b.zip |
yafyaml: Add fismahigh variant to comply with FISMA standards (#36471)
-rw-r--r-- | var/spack/repos/builtin/packages/yafyaml/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/yafyaml/package.py b/var/spack/repos/builtin/packages/yafyaml/package.py index c2c34750cc..53c57ed5f7 100644 --- a/var/spack/repos/builtin/packages/yafyaml/package.py +++ b/var/spack/repos/builtin/packages/yafyaml/package.py @@ -3,6 +3,8 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import os + from spack.package import * @@ -52,3 +54,9 @@ class Yafyaml(CMakePackage): description="The build type to build", values=("Debug", "Release"), ) + variant("fismahigh", default=False, description="Apply patching for FISMA-high compliance") + + @when("+fismahigh") + def patch(self): + if os.path.exists("tools/ci-install-gfe.bash"): + os.remove("tools/ci-install-gfe.bash") |