bat: add v0.24.0 and convert to CargoPackage (#41906)
This commit is contained in:
parent
5d48130cc6
commit
72ca7df9b2
1 changed files with 2 additions and 7 deletions
|
@ -6,7 +6,7 @@
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
class Bat(Package):
|
class Bat(CargoPackage):
|
||||||
"""A cat(1) clone with wings."""
|
"""A cat(1) clone with wings."""
|
||||||
|
|
||||||
homepage = "https://github.com/sharkdp/bat"
|
homepage = "https://github.com/sharkdp/bat"
|
||||||
|
@ -14,13 +14,8 @@ class Bat(Package):
|
||||||
|
|
||||||
license("Apache-2.0")
|
license("Apache-2.0")
|
||||||
|
|
||||||
|
version("0.24.0", sha256="907554a9eff239f256ee8fe05a922aad84febe4fe10a499def72a4557e9eedfb")
|
||||||
version("0.23.0", sha256="30b6256bea0143caebd08256e0a605280afbbc5eef7ce692f84621eb232a9b31")
|
version("0.23.0", sha256="30b6256bea0143caebd08256e0a605280afbbc5eef7ce692f84621eb232a9b31")
|
||||||
version("0.21.0", sha256="3dff1e52d577d0a105f4afe3fe7722a4a2b8bb2eb3e7a6a5284ac7add586a3ee")
|
version("0.21.0", sha256="3dff1e52d577d0a105f4afe3fe7722a4a2b8bb2eb3e7a6a5284ac7add586a3ee")
|
||||||
version("0.13.0", sha256="f4aee370013e2a3bc84c405738ed0ab6e334d3a9f22c18031a7ea008cd5abd2a")
|
version("0.13.0", sha256="f4aee370013e2a3bc84c405738ed0ab6e334d3a9f22c18031a7ea008cd5abd2a")
|
||||||
version("0.12.1", sha256="1dd184ddc9e5228ba94d19afc0b8b440bfc1819fef8133fe331e2c0ec9e3f8e2")
|
version("0.12.1", sha256="1dd184ddc9e5228ba94d19afc0b8b440bfc1819fef8133fe331e2c0ec9e3f8e2")
|
||||||
|
|
||||||
depends_on("rust")
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
|
||||||
cargo = which("cargo")
|
|
||||||
cargo("install", "--root", prefix, "--path", ".")
|
|
||||||
|
|
Loading…
Reference in a new issue