blob: 802d167d6c458562ef9090e7bf6dedd8a4d4c9e6 (
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
143
144
145
146
147
148
149
150
151
152
153
154
155
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.4
EAPI=8
CRATES="
anstream@0.6.13
anstyle-parse@0.2.3
anstyle-query@1.0.2
anstyle-wincon@3.0.2
anstyle@1.0.6
anyhow@1.0.81
bitflags@1.3.2
bitflags@2.5.0
cc@1.0.90
cfg-if@1.0.0
clap@4.5.3
clap_builder@4.5.2
clap_complete@4.5.1
clap_complete_nushell@4.5.1
clap_derive@4.5.3
clap_lex@0.7.0
colorchoice@1.0.0
deranged@0.3.11
dirs-next@2.0.0
dirs-sys-next@0.1.2
errno@0.3.8
fastrand@2.0.1
form_urlencoded@1.2.1
getrandom@0.2.12
git2@0.20.0
heck@0.5.0
hermit-abi@0.3.9
idna@0.5.0
is-terminal@0.4.12
itoa@1.0.10
jobserver@0.1.28
libc@0.2.155
libgit2-sys@0.18.0+1.9.0
libredox@0.0.1
libz-sys@1.1.16
linux-raw-sys@0.4.13
log@0.4.21
memchr@2.7.1
num-conv@0.1.0
once_cell@1.19.0
percent-encoding@2.3.1
pkg-config@0.3.30
powerfmt@0.2.0
proc-macro2@1.0.79
quote@1.0.35
redox_syscall@0.4.1
redox_users@0.4.4
rustix@0.38.32
rustversion@1.0.14
serde@1.0.197
serde_derive@1.0.197
slog-term@2.9.1
slog@2.7.0
strsim@0.11.0
syn@2.0.53
tempfile@3.10.1
term@0.7.0
terminal_size@0.3.0
thiserror-impl@1.0.58
thiserror@1.0.58
thread_local@1.1.8
time-core@0.1.2
time-macros@0.2.18
time@0.3.36
tinyvec@1.6.0
tinyvec_macros@0.1.1
unicode-bidi@0.3.15
unicode-ident@1.0.12
unicode-normalization@0.1.23
url@2.5.0
utf8parse@0.2.1
vcpkg@0.2.15
wasi@0.11.0+wasi-snapshot-preview1
winapi-i686-pc-windows-gnu@0.4.0
winapi-x86_64-pc-windows-gnu@0.4.0
winapi@0.3.9
windows-sys@0.48.0
windows-sys@0.52.0
windows-targets@0.48.5
windows-targets@0.52.4
windows_aarch64_gnullvm@0.48.5
windows_aarch64_gnullvm@0.52.4
windows_aarch64_msvc@0.48.5
windows_aarch64_msvc@0.52.4
windows_i686_gnu@0.48.5
windows_i686_gnu@0.52.4
windows_i686_msvc@0.48.5
windows_i686_msvc@0.52.4
windows_x86_64_gnu@0.48.5
windows_x86_64_gnu@0.52.4
windows_x86_64_gnullvm@0.48.5
windows_x86_64_gnullvm@0.52.4
windows_x86_64_msvc@0.48.5
windows_x86_64_msvc@0.52.4
"
inherit cargo shell-completion
DESCRIPTION="Automatically absorb staged changes into git current branch"
HOMEPAGE="https://github.com/tummychow/git-absorb"
SRC_URI="${CARGO_CRATE_URIS}"
SRC_URI+=" https://github.com/tummychow/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
# Dependent crate licenses
LICENSE+=" MIT Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
>=dev-libs/libgit2-1.9:=
<dev-libs/libgit2-1.10
"
DEPEND="${RDEPEND}"
DOCS=( README.md )
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_compile() {
export LIBGIT2_NO_VENDOR=1
cargo_src_compile
GIT_ABSORB_BIN="$(cargo_target_dir)/${PN}"
# Prepare shell completion generation
mkdir completions || die
local shell
for shell in bash fish zsh; do
"${GIT_ABSORB_BIN}" --gen-completions \
${shell} \
> completions/${PN}.${shell} \
|| die
done
}
src_install() {
cargo_src_install
doman Documentation/${PN}.1
newbashcomp "completions/${PN}.bash" "${PN}"
dofishcomp "completions/${PN}.fish"
dozshcomp "completions/${PN}.zsh"
default
}
|