ripgrep: add v14.0.3 and convert to CargoPackage (#41905)

This commit is contained in:
Alec Scott 2024-01-03 01:56:46 -07:00 committed by GitHub
parent 72ca7df9b2
commit 1bd502d785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
from spack.package import *
class Ripgrep(Package):
class Ripgrep(CargoPackage):
"""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.
@ -15,13 +15,10 @@ class Ripgrep(Package):
homepage = "https://github.com/BurntSushi/ripgrep"
url = "https://github.com/BurntSushi/ripgrep/archive/11.0.2.tar.gz"
maintainers("alecbcs")
license("MIT OR Unlicense")
version("14.0.3", sha256="f5794364ddfda1e0411ab6cad6dd63abe3a6b421d658d9fee017540ea4c31a0e")
version("13.0.0", sha256="0fb17aaf285b3eee8ddab17b833af1e190d73de317ff9648751ab0660d763ed2")
version("11.0.2", sha256="0983861279936ada8bc7a6d5d663d590ad34eb44a44c75c2d6ccd0ab33490055")
depends_on("rust")
def install(self, spec, prefix):
cargo = which("cargo")
cargo("install", "--root", prefix, "--path", ".")