summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-03-05 13:14:18 -0500
committerGitHub <noreply@github.com>2020-03-05 10:14:18 -0800
commit3a8800b6b46ce23bbb688c63918b3d814a9e44a8 (patch)
treec8cca7742ece61b546767ae5712fddcbde20d385 /var
parent9940392c2b9fde3598f2f36936ab69e27b71bdd2 (diff)
downloadspack-3a8800b6b46ce23bbb688c63918b3d814a9e44a8.tar.gz
spack-3a8800b6b46ce23bbb688c63918b3d814a9e44a8.tar.bz2
spack-3a8800b6b46ce23bbb688c63918b3d814a9e44a8.tar.xz
spack-3a8800b6b46ce23bbb688c63918b3d814a9e44a8.zip
New package: ripgrep (#15343)
Add package for ripgrep: ripgrep is a line-oriented search tool that recursively searches your current directory for a regex pattern. ripgrep is similar to other popular search tools like The Silver Searcher, ack and grep.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ripgrep/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ripgrep/package.py b/var/spack/repos/builtin/packages/ripgrep/package.py
new file mode 100644
index 0000000000..eadaa6df79
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ripgrep/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2020 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 import *
+
+
+class Ripgrep(Package):
+ """ripgrep is a line-oriented search tool that recursively searches
+ your current directory for a regex pattern. ripgrep is similar to
+ other popular search tools like The Silver Searcher, ack and grep.
+ """
+
+ homepage = "https://github.com/BurntSushi/ripgrep"
+ url = "https://github.com/BurntSushi/ripgrep/archive/11.0.2.tar.gz"
+
+ version('11.0.2', sha256='0983861279936ada8bc7a6d5d663d590ad34eb44a44c75c2d6ccd0ab33490055')
+
+ depends_on('rust')
+
+ def install(self, spec, prefix):
+ cargo = which('cargo')
+ cargo('install', '--root', prefix, '--path', '.')
+
+ # needed for onig_sys
+ def setup_build_environment(self, env):
+ env.append_flags('LLVM_CONFIG_PATH',
+ join_path(self.spec['llvm'].prefix.libexec.llvm,
+ 'llvm-config'))
+ env.append_flags('LIBCLANG_PATH', self.spec['llvm'].prefix.lib)