1 |
|
# Copyright 2017-2021 Gentoo Authors
|
|
1 |
# Copyright 2017-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
CRATES="
|
7 |
|
aho-corasick-0.7.15
|
8 |
|
anyhow-1.0.39
|
9 |
|
arrayref-0.3.6
|
10 |
|
arrayvec-0.5.2
|
|
7 |
aho-corasick-0.7.18
|
|
8 |
anyhow-1.0.40
|
11 |
9 |
autocfg-1.0.1
|
12 |
10 |
base32-0.4.0
|
13 |
|
base64-0.13.0
|
14 |
11 |
bitflags-1.2.1
|
15 |
|
blake2b_simd-0.5.11
|
16 |
12 |
cc-1.0.67
|
17 |
13 |
cfg-if-1.0.0
|
18 |
14 |
clap-2.33.3
|
19 |
|
constant_time_eq-0.1.5
|
20 |
|
crossbeam-utils-0.8.3
|
21 |
|
directories-3.0.1
|
22 |
|
dirs-sys-0.3.5
|
|
15 |
directories-3.0.2
|
|
16 |
dirs-sys-0.3.6
|
23 |
17 |
envy-0.4.2
|
24 |
18 |
getrandom-0.1.16
|
25 |
19 |
getrandom-0.2.2
|
26 |
20 |
heck-0.3.2
|
27 |
21 |
lazy_static-1.4.0
|
28 |
|
libc-0.2.90
|
|
22 |
libc-0.2.94
|
29 |
23 |
log-0.4.14
|
30 |
|
memchr-2.3.4
|
|
24 |
memchr-2.4.0
|
31 |
25 |
merge-0.1.0
|
32 |
26 |
merge_derive-0.1.0
|
33 |
|
nitrocli-0.4.0
|
34 |
|
nitrokey-0.8.0
|
|
27 |
nitrocli-0.4.1
|
|
28 |
nitrokey-0.9.0
|
35 |
29 |
nitrokey-sys-3.6.0
|
36 |
30 |
nitrokey-test-0.5.0
|
37 |
31 |
nitrokey-test-state-0.1.0
|
... | ... | |
40 |
34 |
ppv-lite86-0.2.10
|
41 |
35 |
proc-macro-error-1.0.4
|
42 |
36 |
proc-macro-error-attr-1.0.4
|
43 |
|
proc-macro2-1.0.24
|
|
37 |
proc-macro2-1.0.26
|
44 |
38 |
progressing-3.0.2
|
45 |
39 |
quote-1.0.9
|
46 |
40 |
rand-0.8.3
|
... | ... | |
48 |
42 |
rand_core-0.5.1
|
49 |
43 |
rand_core-0.6.2
|
50 |
44 |
rand_hc-0.3.0
|
51 |
|
redox_syscall-0.1.57
|
52 |
|
redox_syscall-0.2.5
|
|
45 |
redox_syscall-0.2.8
|
53 |
46 |
redox_termios-0.1.2
|
54 |
|
redox_users-0.3.5
|
55 |
|
regex-1.4.5
|
56 |
|
regex-syntax-0.6.23
|
|
47 |
redox_users-0.4.0
|
|
48 |
regex-1.5.4
|
|
49 |
regex-syntax-0.6.25
|
57 |
50 |
remove_dir_all-0.5.3
|
58 |
|
rust-argon2-0.8.3
|
59 |
|
serde-1.0.124
|
60 |
|
serde_derive-1.0.124
|
|
51 |
serde-1.0.125
|
|
52 |
serde_derive-1.0.125
|
61 |
53 |
structopt-0.3.21
|
62 |
54 |
structopt-derive-0.4.14
|
63 |
|
syn-1.0.64
|
|
55 |
syn-1.0.72
|
64 |
56 |
tempfile-3.2.0
|
65 |
57 |
termion-1.5.6
|
66 |
58 |
textwrap-0.11.0
|
67 |
59 |
toml-0.5.8
|
68 |
60 |
unicode-segmentation-1.7.1
|
69 |
61 |
unicode-width-0.1.8
|
70 |
|
unicode-xid-0.2.1
|
|
62 |
unicode-xid-0.2.2
|
71 |
63 |
version_check-0.9.3
|
72 |
64 |
wasi-0.9.0+wasi-snapshot-preview1
|
73 |
65 |
wasi-0.10.2+wasi-snapshot-preview1
|
... | ... | |
79 |
71 |
inherit bash-completion-r1 cargo
|
80 |
72 |
|
81 |
73 |
DESCRIPTION="A command line tool for interacting with Nitrokey devices"
|
82 |
|
HOMEPAGE="https://github.com/d-e-s-o/nitrocli.git"
|
83 |
|
SRC_URI="$(cargo_crate_uris ${CRATES})"
|
|
74 |
HOMEPAGE="https://github.com/d-e-s-o/nitrocli"
|
|
75 |
SRC_URI="$(cargo_crate_uris)"
|
84 |
76 |
|
85 |
77 |
LICENSE="Apache-2.0 BSD-2 CC0-1.0 GPL-3+ LGPL-3 MIT"
|
86 |
78 |
SLOT="0"
|
87 |
79 |
KEYWORDS="amd64 ~ppc64 x86"
|
88 |
|
IUSE=""
|
89 |
80 |
|
90 |
81 |
DEPEND="
|
91 |
82 |
dev-libs/hidapi
|
... | ... | |
100 |
91 |
# pristine configuration and will modify the device's state. Not meant
|
101 |
92 |
# to be run as part of the installation.
|
102 |
93 |
RESTRICT="test"
|
103 |
|
QA_FLAGS_IGNORED="/usr/bin/nitrocli"
|
|
94 |
QA_FLAGS_IGNORED="usr/bin/nitrocli"
|
|
95 |
|
|
96 |
src_compile() {
|
|
97 |
cargo_src_compile --bin=nitrocli
|
|
98 |
# Install shell-complete binary into source directory to be able to
|
|
99 |
# use it later on.
|
|
100 |
cargo install --bin=shell-complete --path . --root "${S}" || die
|
|
101 |
}
|
104 |
102 |
|
105 |
103 |
src_install() {
|
106 |
104 |
cargo_src_install --bin=nitrocli
|
107 |
105 |
|
108 |
|
target/release/shell-complete bash > ${PN}.bash || die
|
|
106 |
"${S}"/bin/shell-complete bash > ${PN}.bash || die
|
109 |
107 |
newbashcomp ${PN}.bash ${PN}
|
110 |
108 |
|
111 |
|
target/release/shell-complete fish > ${PN}.fish || die
|
|
109 |
"${S}"/bin/shell-complete fish > ${PN}.fish || die
|
112 |
110 |
insinto /usr/share/fish/vendor_conf.d/
|
113 |
111 |
insopts -m0755
|
114 |
|
newins ${PN}.fish ${PN}.fish
|
|
112 |
doins ${PN}.fish
|
115 |
113 |
|
116 |
114 |
einstalldocs
|
117 |
|
doman "doc/nitrocli.1"
|
|
115 |
doman doc/${PN}.1
|
118 |
116 |
}
|