You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
378 lines
6.6 KiB
378 lines
6.6 KiB
# Copyright 2021-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CRATES="
|
|
adler-1.0.2
|
|
ahash-0.4.7
|
|
ahash-0.8.3
|
|
aho-corasick-1.0.2
|
|
android-tzdata-0.1.1
|
|
android_system_properties-0.1.5
|
|
ansi_colours-1.2.1
|
|
anstream-0.3.2
|
|
anstyle-1.0.1
|
|
anstyle-parse-0.2.1
|
|
anstyle-query-1.0.0
|
|
anstyle-wincon-1.0.1
|
|
anyhow-1.0.71
|
|
argh-0.1.10
|
|
argh_derive-0.1.10
|
|
argh_shared-0.1.10
|
|
arrayref-0.3.7
|
|
arrayvec-0.7.4
|
|
autocfg-1.1.0
|
|
base64-0.13.1
|
|
base64-0.21.2
|
|
bet-1.0.2
|
|
bincode-1.3.3
|
|
bit_field-0.10.2
|
|
bitflags-1.3.2
|
|
bitflags-2.3.3
|
|
block-0.1.6
|
|
bstr-1.6.0
|
|
bumpalo-3.13.0
|
|
bytemuck-1.13.1
|
|
byteorder-1.4.3
|
|
cc-1.0.79
|
|
cfg-if-1.0.0
|
|
char_reader-0.1.1
|
|
chrono-0.4.26
|
|
clap-4.3.11
|
|
clap-help-0.4.0
|
|
clap_builder-4.3.11
|
|
clap_complete-4.3.2
|
|
clap_derive-4.3.2
|
|
clap_lex-0.5.0
|
|
clap_mangen-0.2.12
|
|
cli-log-2.0.0
|
|
clipboard-win-4.5.0
|
|
clipboard_macos-0.1.0
|
|
color_quant-1.1.0
|
|
colorchoice-1.0.0
|
|
coolor-0.5.0
|
|
core-foundation-sys-0.8.4
|
|
crc32fast-1.3.2
|
|
crokey-0.4.3
|
|
crokey-proc_macros-0.4.0
|
|
crossbeam-0.8.2
|
|
crossbeam-channel-0.5.8
|
|
crossbeam-deque-0.8.3
|
|
crossbeam-epoch-0.9.15
|
|
crossbeam-queue-0.3.8
|
|
crossbeam-utils-0.8.16
|
|
crossterm-0.23.2
|
|
crossterm_winapi-0.9.1
|
|
crunchy-0.2.2
|
|
csv-1.2.2
|
|
csv-core-0.1.10
|
|
csv2svg-0.1.9
|
|
custom_error-1.9.2
|
|
data-url-0.2.0
|
|
deser-hjson-2.0.0
|
|
directories-4.0.1
|
|
directories-next-2.0.0
|
|
dirs-sys-0.3.7
|
|
dirs-sys-next-0.1.2
|
|
doc-comment-0.3.3
|
|
either-1.8.1
|
|
equivalent-1.0.0
|
|
errno-0.3.1
|
|
errno-dragonfly-0.1.2
|
|
error-code-2.3.1
|
|
exr-1.7.0
|
|
fallible-iterator-0.2.0
|
|
fallible-streaming-iterator-0.1.9
|
|
fastrand-1.9.0
|
|
fdeflate-0.3.0
|
|
file-size-1.0.3
|
|
flate2-1.0.26
|
|
float-cmp-0.9.0
|
|
flume-0.10.14
|
|
fnv-1.0.7
|
|
fontconfig-parser-0.5.2
|
|
fontdb-0.14.1
|
|
form_urlencoded-1.2.0
|
|
futures-core-0.3.28
|
|
futures-sink-0.3.28
|
|
getrandom-0.2.10
|
|
gif-0.12.0
|
|
git2-0.14.4
|
|
glassbench-0.3.5
|
|
glob-0.3.1
|
|
half-2.2.1
|
|
hashbrown-0.9.1
|
|
hashbrown-0.12.3
|
|
hashbrown-0.14.0
|
|
hashlink-0.6.0
|
|
heck-0.4.1
|
|
hermit-abi-0.3.2
|
|
iana-time-zone-0.1.57
|
|
iana-time-zone-haiku-0.1.2
|
|
id-arena-2.2.1
|
|
idna-0.4.0
|
|
image-0.24.6
|
|
imagesize-0.12.0
|
|
include_dir-0.7.3
|
|
include_dir_macros-0.7.3
|
|
indexmap-1.9.3
|
|
indexmap-2.0.0
|
|
instant-0.1.12
|
|
io-lifetimes-1.0.11
|
|
is-terminal-0.4.9
|
|
is_executable-1.0.1
|
|
itoa-1.0.8
|
|
jobserver-0.1.26
|
|
jpeg-decoder-0.3.0
|
|
js-sys-0.3.64
|
|
kurbo-0.9.5
|
|
lazy-regex-2.5.0
|
|
lazy-regex-3.0.0
|
|
lazy-regex-proc_macros-2.4.1
|
|
lazy-regex-proc_macros-3.0.0
|
|
lazy_static-1.4.0
|
|
lebe-0.5.2
|
|
lfs-core-0.11.1
|
|
libc-0.2.147
|
|
libgit2-sys-0.13.5+1.4.5
|
|
libsqlite3-sys-0.20.1
|
|
libz-sys-1.1.9
|
|
line-wrap-0.1.1
|
|
linked-hash-map-0.5.6
|
|
linux-raw-sys-0.3.8
|
|
linux-raw-sys-0.4.3
|
|
lock_api-0.4.10
|
|
log-0.4.19
|
|
malloc_buf-0.0.6
|
|
memchr-2.5.0
|
|
memmap2-0.6.2
|
|
memoffset-0.6.5
|
|
memoffset-0.9.0
|
|
minimad-0.9.1
|
|
minimad-0.12.0
|
|
miniz_oxide-0.7.1
|
|
mio-0.8.8
|
|
nanorand-0.7.0
|
|
nix-0.22.3
|
|
num-integer-0.1.45
|
|
num-rational-0.4.1
|
|
num-traits-0.2.15
|
|
num_cpus-1.16.0
|
|
objc-0.2.7
|
|
objc-foundation-0.1.1
|
|
objc_id-0.1.1
|
|
once_cell-1.18.0
|
|
onig-6.4.0
|
|
onig_sys-69.8.1
|
|
open-1.7.1
|
|
opener-0.5.2
|
|
parking_lot-0.12.1
|
|
parking_lot_core-0.9.8
|
|
pathdiff-0.2.1
|
|
percent-encoding-2.3.0
|
|
phf-0.10.1
|
|
phf_generator-0.10.0
|
|
phf_macros-0.10.0
|
|
phf_shared-0.10.0
|
|
pico-args-0.5.0
|
|
pin-project-1.1.2
|
|
pin-project-internal-1.1.2
|
|
pkg-config-0.3.27
|
|
plist-1.5.0
|
|
png-0.17.9
|
|
ppv-lite86-0.2.17
|
|
proc-macro-hack-0.5.20+deprecated
|
|
proc-macro2-1.0.64
|
|
proc-status-0.1.1
|
|
qoi-0.4.1
|
|
quick-xml-0.22.0
|
|
quick-xml-0.29.0
|
|
quote-1.0.29
|
|
rand-0.8.5
|
|
rand_chacha-0.3.1
|
|
rand_core-0.6.4
|
|
rayon-1.7.0
|
|
rayon-core-1.11.0
|
|
rctree-0.5.0
|
|
redox_syscall-0.2.16
|
|
redox_syscall-0.3.5
|
|
redox_users-0.4.3
|
|
regex-1.9.1
|
|
regex-automata-0.3.2
|
|
regex-syntax-0.6.29
|
|
regex-syntax-0.7.3
|
|
resvg-0.33.0
|
|
rgb-0.8.36
|
|
roff-0.2.1
|
|
rosvgtree-0.3.0
|
|
roxmltree-0.18.0
|
|
rusqlite-0.24.2
|
|
rustix-0.37.23
|
|
rustix-0.38.4
|
|
rustybuzz-0.7.0
|
|
ryu-1.0.14
|
|
safemem-0.3.3
|
|
same-file-1.0.6
|
|
scopeguard-1.1.0
|
|
secular-1.0.1
|
|
serde-1.0.171
|
|
serde_derive-1.0.171
|
|
serde_json-1.0.100
|
|
serde_spanned-0.6.3
|
|
signal-hook-0.3.15
|
|
signal-hook-mio-0.2.3
|
|
signal-hook-registry-1.4.1
|
|
simd-adler32-0.3.5
|
|
simplecss-0.2.1
|
|
siphasher-0.3.10
|
|
slotmap-1.0.6
|
|
smallvec-1.11.0
|
|
snafu-0.7.5
|
|
snafu-derive-0.7.5
|
|
spin-0.9.8
|
|
splitty-1.0.1
|
|
str-buf-1.0.6
|
|
strict-0.1.4
|
|
strict-num-0.1.1
|
|
strsim-0.10.0
|
|
svg-0.13.1
|
|
svgfilters-0.4.0
|
|
svgtypes-0.11.0
|
|
syn-1.0.109
|
|
syn-2.0.25
|
|
syntect-no-panic-4.6.1
|
|
tempfile-3.6.0
|
|
termimad-0.20.6
|
|
termimad-0.23.1
|
|
terminal-clipboard-0.4.0
|
|
terminal-light-1.1.1
|
|
termux-clipboard-0.1.0
|
|
thiserror-1.0.43
|
|
thiserror-impl-1.0.43
|
|
tiff-0.8.1
|
|
time-0.1.45
|
|
time-0.3.23
|
|
time-core-0.1.1
|
|
time-macros-0.2.10
|
|
tiny-skia-0.9.1
|
|
tiny-skia-path-0.9.0
|
|
tinyvec-1.6.0
|
|
tinyvec_macros-0.1.1
|
|
toml-0.7.6
|
|
toml_datetime-0.6.3
|
|
toml_edit-0.19.12
|
|
ttf-parser-0.18.1
|
|
ttf-parser-0.19.1
|
|
umask-2.1.0
|
|
unicode-bidi-0.3.13
|
|
unicode-bidi-mirroring-0.1.0
|
|
unicode-ccc-0.1.2
|
|
unicode-general-category-0.6.0
|
|
unicode-ident-1.0.10
|
|
unicode-normalization-0.1.22
|
|
unicode-script-0.5.5
|
|
unicode-vo-0.1.0
|
|
unicode-width-0.1.10
|
|
url-2.4.0
|
|
users-0.11.0
|
|
usvg-0.33.0
|
|
usvg-parser-0.33.0
|
|
usvg-text-layout-0.33.0
|
|
usvg-tree-0.33.0
|
|
utf8parse-0.2.1
|
|
vcpkg-0.2.15
|
|
version_check-0.9.4
|
|
walkdir-2.3.3
|
|
wasi-0.10.0+wasi-snapshot-preview1
|
|
wasi-0.11.0+wasi-snapshot-preview1
|
|
wasm-bindgen-0.2.87
|
|
wasm-bindgen-backend-0.2.87
|
|
wasm-bindgen-macro-0.2.87
|
|
wasm-bindgen-macro-support-0.2.87
|
|
wasm-bindgen-shared-0.2.87
|
|
weezl-0.1.7
|
|
which-4.4.0
|
|
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
|
|
windows-0.48.0
|
|
windows-sys-0.48.0
|
|
windows-targets-0.48.1
|
|
windows_aarch64_gnullvm-0.48.0
|
|
windows_aarch64_msvc-0.48.0
|
|
windows_i686_gnu-0.48.0
|
|
windows_i686_msvc-0.48.0
|
|
windows_x86_64_gnu-0.48.0
|
|
windows_x86_64_gnullvm-0.48.0
|
|
windows_x86_64_msvc-0.48.0
|
|
winnow-0.4.9
|
|
x11-clipboard-0.5.3
|
|
xcb-0.10.1
|
|
xmlparser-0.13.5
|
|
xmlwriter-0.1.0
|
|
xterm-query-0.1.0
|
|
xterm-query-0.2.0
|
|
yaml-rust-0.4.5
|
|
zune-inflate-0.2.54
|
|
"
|
|
|
|
inherit bash-completion-r1 cargo
|
|
|
|
DESCRIPTION="A new way to see and navigate directory trees"
|
|
HOMEPAGE="https://dystroy.org/broot/ https://github.com/Canop/broot"
|
|
SRC_URI="https://github.com/Canop/broot/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
$(cargo_crate_uris)"
|
|
|
|
LICENSE="Apache-2.0 BSD-2 BSD LGPL-3+ MIT ZLIB"
|
|
SLOT="0"
|
|
KEYWORDS="amd64"
|
|
IUSE="X"
|
|
|
|
RDEPEND="
|
|
dev-libs/libgit2:=
|
|
sys-libs/zlib
|
|
X? ( x11-libs/libxcb:= )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND=">=virtual/rust-1.65"
|
|
|
|
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
|
|
|
src_configure() {
|
|
export RUSTFLAGS="-Cstrip=none ${RUSTFLAGS}" #835400
|
|
local myfeatures=( $(usev X clipboard) )
|
|
|
|
cargo_src_configure --no-default-features
|
|
}
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
local mandate=$(date -r man/page +'%Y/%m/%d' || die)
|
|
sed -e "s|#version|${PV}|" \
|
|
-e "s|#date|${mandate}|" \
|
|
man/page > "${T}"/${PN}.1 || die
|
|
}
|
|
|
|
src_install() {
|
|
cargo_src_install
|
|
|
|
doman "${T}"/${PN}.1
|
|
|
|
local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
|
|
cd ${build_dir[0]} || die
|
|
|
|
newbashcomp ${PN}.bash ${PN}
|
|
newbashcomp br.bash br
|
|
|
|
insinto /usr/share/zsh/site-functions
|
|
doins _${PN}
|
|
doins _br
|
|
|
|
insinto /usr/share/fish/vendor_completions.d
|
|
doins ${PN}.fish
|
|
doins br.fish
|
|
}
|