blob: 9c23d1a34a705ff679ef319c95395b1136d8bdab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
# 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 shell-completion
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}"
dozshcomp contrib/completions/_"${PN}"
dofishcomp contrib/completions/"${PN}".fish
insinto /usr/share/"${PN}"
doins init.fish
doins zoxide.plugin.zsh
}
|