app-misc/broot: add 1.54.0

Signed-off-by: Karl-Johan Karlsson <creideiki@lysator.liu.se>
Part-of: https://github.com/gentoo/gentoo/pull/44416
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Karl-Johan Karlsson
2026-01-10 12:46:19 +00:00
committed by Sam James
parent a521c8ed19
commit 75d19e8616
2 changed files with 66 additions and 0 deletions
+2
View File
@@ -2,3 +2,5 @@ DIST broot-1.47.0-crates.tar.xz 41052620 BLAKE2B e4be99247cef12846f24060bc5782a4
DIST broot-1.47.0.tar.gz 15301702 BLAKE2B 1a989e5b9bbdcf02905d6d26b93070f1e32870128e0c2352bc2ecdf950ef7914f256b25c7bf3b57b66b8a80c2f9b01b2d7ae304700463795d31a2a481f4693d5 SHA512 2c370d20481912c2d88722f7aa50d2b03be5afb4389362608bc1bdc83c65ad70a98513f5c6d51141bd75cef564a55ae7647bbfa629b3125fc046c21bf5ab7822
DIST broot-1.51.0-crates.tar.xz 41184028 BLAKE2B bb12493a425b85050e12b0725021ec2218f9c987c5a7fb5decc10e7f7b21dc5cc8ba719ea9f7c5de771ac8872577b7a851de61c0e7653b39baf18503c0560cca SHA512 b25a333a9a3e207183e3db2f25846560466e08e5ef6fc1fd2bdfeef5b780147575eefcafaf14a190aad5aad34c10f18641f7158688391a38de92dbc2dc784160
DIST broot-1.51.0.tar.gz 15378188 BLAKE2B ba1dcf3c735d8053a3a0bb98b73a18718990e63bf8d7a0d75571cd29970ebe5779e9efe728bdfd1fd75862eb6c1413b87551fc96d170eeb787a8c7277a03a6a5 SHA512 b349077e07deefc06c9ee8215cc7d8b7f9e342bbb5376910bdfc0322e84aa1112406dc7729015c18b0f13765e268e3c452d0331f5e9e0ea6ab84f8185035739c
DIST broot-1.54.0-crates.tar.xz 47278612 BLAKE2B e180773a2f48f7d6b1977e2b05a8a0bc864261e7a1c3dd2aab9a140176a656f89b0c6ed634737d007b51a4af416eaae766ce7b8c373f031bc3e5f2d1404bd475 SHA512 767ef36150875d15621178514549ec64501dcc379add3c57dee837651e6826347ab3c7fd8bca1d02d9dc4d345cc756520d32cfad3ee61f8277d4311579460ae0
DIST broot-1.54.0.tar.gz 13736739 BLAKE2B 1ca1ebc4504d06c50ff5376c8bb1a17a6922e93092ca42a1e7498afd1c0fb1e6da84e57100c14bafb960d4153c7427c60e69f504d710909e66c17d8a2b0e32bc SHA512 3503446a30ed63471d703d68db136af22760c5bd4cd17af0fe207e083f3d7fa3672e9003de6ca87f0c2b418396a30cade791b4817c77c370403abc9a55a719b8
+64
View File
@@ -0,0 +1,64 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER="1.85.0"
inherit cargo shell-completion
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"
SRC_URI+=" https://github.com/gentoo-crate-dist/broot/releases/download/v${PV}/${P}-crates.tar.xz"
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
LGPL-3+ MIT MPL-2.0 UoI-NCSA Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
IUSE="X"
DEPEND="
dev-db/sqlite:3
dev-libs/libgit2:=
virtual/zlib:=
X? ( x11-libs/libxcb:= )
"
RDEPEND="${DEPEND}"
QA_FLAGS_IGNORED="usr/bin/${PN}"
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_configure() {
export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
export RUSTFLAGS="-Cstrip=none ${RUSTFLAGS}" #835400
local myfeatures=( $(usev X clipboard) )
cargo_src_configure --no-default-features
}
src_install() {
cargo_src_install
doman "${T}"/${PN}.1
local build_dir=( "$(cargo_target_dir)"/build/${PN}-*/out )
cd ${build_dir[0]} || die
newbashcomp ${PN}.bash ${PN}
newbashcomp br.bash br
dozshcomp _${PN} _br
dofishcomp ${PN}.fish br.fish
}