| 87 |
87 |
zeroize_derive@1.4.2
|
| 88 |
88 |
"
|
| 89 |
89 |
|
| 90 |
|
LLVM_COMPAT=( {17..19} )
|
| 91 |
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
90 |
LLVM_COMPAT=( {17..20} )
|
|
91 |
PYTHON_COMPAT=( python3_{11..14} )
|
|
92 |
RUST_MIN_VER="1.77.0"
|
| 92 |
93 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kentoverstreet.asc
|
| 93 |
|
|
| 94 |
94 |
inherit cargo flag-o-matic llvm-r1 python-any-r1 shell-completion toolchain-funcs unpacker verify-sig
|
| 95 |
95 |
|
| 96 |
96 |
DESCRIPTION="Tools for bcachefs"
|
| ... | ... | |
| 100 |
100 |
EGIT_REPO_URI="https://evilpiepirate.org/git/bcachefs-tools.git"
|
| 101 |
101 |
else
|
| 102 |
102 |
SRC_URI="https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-${PV}.tar.zst
|
| 103 |
|
${CARGO_CRATE_URIS}
|
| 104 |
|
https://github.com/koverstreet/bcachefs-tools/commit/67c9b378c7e7820b91033004b032e236a8069b4a.patch
|
| 105 |
|
-> ${P}-fix-fuse-build.patch
|
| 106 |
|
"
|
|
103 |
${CARGO_CRATE_URIS}"
|
| 107 |
104 |
SRC_URI+=" verify-sig? ( https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-${PV}.tar.sign )"
|
| 108 |
105 |
S="${WORKDIR}/${P}"
|
| 109 |
|
KEYWORDS="amd64 arm64"
|
|
106 |
KEYWORDS="~amd64 ~arm64"
|
| 110 |
107 |
fi
|
| 111 |
108 |
|
| 112 |
|
LICENSE="Apache-2.0 BSD GPL-2 MIT"
|
|
109 |
LICENSE="GPL-2"
|
|
110 |
# Dependent crate licenses
|
|
111 |
LICENSE+=" Apache-2.0 BSD ISC MIT Unicode-DFS-2016"
|
| 113 |
112 |
SLOT="0"
|
| 114 |
113 |
IUSE="fuse verify-sig"
|
| 115 |
114 |
RESTRICT="test"
|
| ... | ... | |
| 146 |
145 |
|
| 147 |
146 |
QA_FLAGS_IGNORED="/sbin/bcachefs"
|
| 148 |
147 |
|
| 149 |
|
PATCHES=(
|
| 150 |
|
"${DISTDIR}/bcachefs-tools-1.20.0-fix-fuse-build.patch"
|
| 151 |
|
)
|
| 152 |
|
|
| 153 |
148 |
python_check_deps() {
|
| 154 |
149 |
python_has_version "dev-python/docutils[${PYTHON_USEDEP}]"
|
| 155 |
150 |
}
|
| 156 |
151 |
|
| 157 |
152 |
pkg_setup() {
|
|
153 |
rust_pkg_setup
|
| 158 |
154 |
llvm-r1_pkg_setup
|
| 159 |
155 |
python-any-r1_pkg_setup
|
| 160 |
156 |
}
|
| 161 |
157 |
|
| 162 |
158 |
src_unpack() {
|
| 163 |
|
# Upstream signs the uncompressed tarball
|
| 164 |
|
if use verify-sig; then
|
| 165 |
|
einfo "Unpacking ${P}.tar.zst ..."
|
| 166 |
|
verify-sig_verify_detached - "${DISTDIR}"/${P}.tar.sign \
|
| 167 |
|
< <(zstd -fdc "${DISTDIR}"/${P}.tar.zst | tee >(tar -xf -))
|
| 168 |
|
assert "Unpack failed"
|
| 169 |
|
fi
|
| 170 |
|
|
| 171 |
159 |
if [[ ${PV} == "9999" ]]; then
|
| 172 |
160 |
git-r3_src_unpack
|
| 173 |
161 |
S="${S}/rust-src" cargo_live_src_unpack
|
| ... | ... | |
| 175 |
163 |
unpacker ${P}.tar.zst
|
| 176 |
164 |
cargo_src_unpack
|
| 177 |
165 |
fi
|
| 178 |
|
|
| 179 |
166 |
}
|
| 180 |
167 |
|
| 181 |
168 |
src_prepare() {
|
| ... | ... | |
| 196 |
183 |
|
| 197 |
184 |
default
|
| 198 |
185 |
|
| 199 |
|
# This version mangles the symbolic link,
|
| 200 |
|
# please check if this can be removed before bumping
|
| 201 |
|
rm "${S}"/bcachefs
|
| 202 |
|
ln -s "${S}"/target/release/bcachefs bcachefs
|
| 203 |
|
|
| 204 |
186 |
local shell
|
| 205 |
187 |
for shell in bash fish zsh; do
|
| 206 |
188 |
./bcachefs completions ${shell} > ${shell}.completion || die
|