summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Scott <hi@alecbcs.com>2023-07-24 15:50:27 -0700
committerGitHub <noreply@github.com>2023-07-24 15:50:27 -0700
commite3b2e5b2cd7a0bf9fc0c2a77ee13697f46a887a0 (patch)
tree99826fdb4ae1f2741c81c40c2c0764095d93c748
parentb2ed10dd837677cb98d15a0a483b489b24922c59 (diff)
downloadspack-e3b2e5b2cd7a0bf9fc0c2a77ee13697f46a887a0.tar.gz
spack-e3b2e5b2cd7a0bf9fc0c2a77ee13697f46a887a0.tar.bz2
spack-e3b2e5b2cd7a0bf9fc0c2a77ee13697f46a887a0.tar.xz
spack-e3b2e5b2cd7a0bf9fc0c2a77ee13697f46a887a0.zip
bfs: add new package (#39057)
* bfs: add new package * Remove redundant set to PREFIX during build
-rw-r--r--var/spack/repos/builtin/packages/bfs/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bfs/package.py b/var/spack/repos/builtin/packages/bfs/package.py
new file mode 100644
index 0000000000..df2205f5e8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/bfs/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2023 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 *
+
+
+class Bfs(MakefilePackage):
+ """A breadth-first version of the UNIX find command."""
+
+ homepage = "https://github.com/tavianator/bfs"
+ url = "https://github.com/tavianator/bfs/archive/refs/tags/3.0.1.tar.gz"
+
+ maintainers("alecbcs")
+
+ version("3.0.1", sha256="a38bb704201ed29f4e0b989fb2ab3791ca51c3eff90acfc31fff424579bbf962")
+
+ depends_on("acl", when="platform=linux")
+ depends_on("attr", when="platform=linux")
+ depends_on("libcap", when="platform=linux")
+ depends_on("oniguruma")
+
+ def install(self, spec, prefix):
+ make("install", f"PREFIX={prefix}")