Files
guru/app-shells/zoxide/zoxide-0.8.3-r1.ebuild
Leonardo Hernández Hernández 74d1ad6e9f app-shells/zoxide: fix pre-stripped files + fix LICENSE
Closes: https://bugs.gentoo.org/856529
Signed-off-by: Leonardo Hernández Hernández <leohdz172@outlook.com>
2022-09-22 00:40:13 -05:00

145 lines
2.8 KiB
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.2
EAPI=8
CRATES="
aho-corasick-0.7.18
anyhow-1.0.61
askama-0.11.1
askama_derive-0.11.2
askama_escape-0.10.3
askama_shared-0.12.2
assert_cmd-2.0.4
atty-0.2.14
autocfg-1.1.0
bincode-1.3.3
bitflags-1.3.2
bstr-0.2.17
cfg-if-1.0.0
clap-3.2.16
clap_complete-3.2.3
clap_complete_fig-3.2.4
clap_derive-3.2.15
clap_lex-0.2.4
crossbeam-utils-0.8.11
difflib-0.4.0
dirs-4.0.0
dirs-sys-0.3.7
doc-comment-0.3.3
dunce-1.0.2
either-1.7.0
fastrand-1.8.0
fnv-1.0.7
getrandom-0.2.7
glob-0.3.0
globset-0.4.9
hashbrown-0.12.3
heck-0.4.0
hermit-abi-0.1.19
ignore-0.4.18
indexmap-1.9.1
instant-0.1.12
itertools-0.10.3
lazy_static-1.4.0
libc-0.2.131
log-0.4.17
memchr-2.5.0
mime-0.3.16
mime_guess-2.0.4
minimal-lexical-0.2.1
nix-0.24.2
nom-7.1.1
once_cell-1.13.0
os_str_bytes-6.2.0
predicates-2.1.1
predicates-core-1.0.3
predicates-tree-1.0.5
proc-macro-error-1.0.4
proc-macro-error-attr-1.0.4
proc-macro2-1.0.43
quote-1.0.21
redox_syscall-0.2.16
redox_users-0.4.3
regex-1.6.0
regex-automata-0.1.10
regex-syntax-0.6.27
remove_dir_all-0.5.3
rstest-0.15.0
rstest_macros-0.14.0
rstest_reuse-0.4.0
rustc_version-0.4.0
same-file-1.0.6
semver-1.0.13
serde-1.0.143
serde_derive-1.0.143
shell-words-1.1.0
strsim-0.10.0
syn-1.0.99
tempfile-3.3.0
termcolor-1.1.3
termtree-0.2.4
textwrap-0.15.0
thiserror-1.0.32
thiserror-impl-1.0.32
thread_local-1.1.4
unicase-2.6.0
unicode-ident-1.0.3
version_check-0.9.4
wait-timeout-0.2.0
walkdir-2.3.2
wasi-0.11.0+wasi-snapshot-preview1
which-4.2.5
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
winapi-util-0.1.5
winapi-x86_64-pc-windows-gnu-0.4.0
"
inherit cargo bash-completion-r1
DESCRIPTION="A smarter cd command for your terminal"
# Double check the homepage as the cargo_metadata crate
# does not provide this value so instead repository is used
HOMEPAGE="https://github.com/ajeetdsouza/zoxide"
SRC_URI="
https://github.com/ajeetdsouza/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)
"
LICENSE="BSD CC0-1.0 MIT Unicode-DFS-2016
|| ( Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT )
|| ( Apache-2.0 MIT )
|| ( MIT Unlicense )
"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/bin/zoxide"
src_prepare() {
sed -i 's:strip = true:strip = false:g' Cargo.toml || die
default
}
src_install() {
cargo_src_install
doman man/man1/*
dodoc README.md CHANGELOG.md
newbashcomp contrib/completions/"${PN}".bash "${PN}"
insinto /usr/share/zsh/site-functions
doins contrib/completions/_"${PN}"
insinto /usr/share/fish/vendor_completions.d
doins contrib/completions/"${PN}".fish
insinto /usr/share/"${PN}"
doins init.fish
doins zoxide.plugin.zsh
}