diff options
author | Alec Scott <hi@alecbcs.com> | 2024-08-27 06:15:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 08:15:38 -0500 |
commit | 229cf49c71c7461f06d0b5a5a07976935c9da37d (patch) | |
tree | 26e1fdff6f2b1eca2711a702ab05c34ee42977b3 /var | |
parent | 394e6159d676eb37fc9eccc59201136889e4aa9c (diff) | |
download | spack-229cf49c71c7461f06d0b5a5a07976935c9da37d.tar.gz spack-229cf49c71c7461f06d0b5a5a07976935c9da37d.tar.bz2 spack-229cf49c71c7461f06d0b5a5a07976935c9da37d.tar.xz spack-229cf49c71c7461f06d0b5a5a07976935c9da37d.zip |
bfs: add v4.0.1 (#46044)
* bfs: add v4.0.1
* fix style
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/bfs/package.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/bfs/package.py b/var/spack/repos/builtin/packages/bfs/package.py index 36476092bb..add324f8d4 100644 --- a/var/spack/repos/builtin/packages/bfs/package.py +++ b/var/spack/repos/builtin/packages/bfs/package.py @@ -16,13 +16,14 @@ class Bfs(MakefilePackage): license("0BSD") + version("4.0.1", sha256="8117b76b0a967887278a11470cbfa9e7aeae98f11a7eeb136f456ac462e5ba23") version("3.1.1", sha256="d73f345c1021e0630e0db930a3fa68dd1f968833037d8471ee1096e5040bf91b") version("3.1", sha256="aa6a94231915d3d37e5dd62d194cb58a575a8f45270020f2bdd5ab41e31d1492") version("3.0.4", sha256="7196f5a624871c91ad051752ea21043c198a875189e08c70ab3167567a72889d") version("3.0.2", sha256="d3456a9aeecc031064db0dbe012e55a11eb97be88d0ab33a90e570fe66457f92") version("3.0.1", sha256="a38bb704201ed29f4e0b989fb2ab3791ca51c3eff90acfc31fff424579bbf962") - depends_on("c", type="build") # generated + depends_on("c", type="build") depends_on("acl", when="platform=linux") depends_on("attr", when="platform=linux") @@ -30,5 +31,15 @@ class Bfs(MakefilePackage): depends_on("liburing", when="platform=linux @3.1:") depends_on("oniguruma") + @run_before("build", when="@4:") + def configure(self): + args = ["--enable-release", f"--prefix={self.prefix}"] + + configure_exe = Executable("./configure") + configure_exe(*args) + def install(self, spec, prefix): - make("install", f"PREFIX={prefix}") + if spec.satisfies("@:3"): + make("install", f"PREFIX={prefix}") + else: + make("install") |