diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/eza/package.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/eza/package.py b/var/spack/repos/builtin/packages/eza/package.py index 98e1582ff6..321b4aab22 100644 --- a/var/spack/repos/builtin/packages/eza/package.py +++ b/var/spack/repos/builtin/packages/eza/package.py @@ -14,6 +14,23 @@ class Eza(CargoPackage): maintainers("trws") - license("MIT") + license("EUPL-1.2", when="@0.20:", checked_by="pranav-sivaraman") + license("MIT", when="@:0.19", checked_by="pranav-sivaraman") + version("0.20.4", sha256="5f25e866521c310d9530b9bbabeb288ad8d9cd208adee79582dde79bdd51c470") version("0.15.3", sha256="09093e565913104acb7a8eba974f8067c95566b6fbedf31138c9923a8cfde42f") + + depends_on("rust@1.70:", when="@0.15.3:") + + @run_after("install") + def install_completions(self): + package_completions_path = f"{self.stage.source_path}/completions" + + mkdirp(bash_completion_path(self.prefix)) + copy(f"{package_completions_path}/bash/eza", bash_completion_path(self.prefix)) + + mkdirp(zsh_completion_path(self.prefix)) + copy(f"{package_completions_path}/zsh/_eza", zsh_completion_path(self.prefix)) + + mkdirp(fish_completion_path(self.prefix)) + copy(f"{package_completions_path}/fish/eza.fish", fish_completion_path(self.prefix)) |