app-misc/broot: add 1.56.2

Signed-off-by: Karl-Johan Karlsson <creideiki@lysator.liu.se>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/381
Merges: https://codeberg.org/gentoo/gentoo/pulls/381
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Karl-Johan Karlsson
2026-03-20 21:01:00 +01:00
committed by Sam James
parent 53e8210fdf
commit 5a0706e888
2 changed files with 66 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST broot-1.54.0-crates.tar.xz 47278612 BLAKE2B e180773a2f48f7d6b1977e2b05a8a0b
DIST broot-1.54.0.tar.gz 13736739 BLAKE2B 1ca1ebc4504d06c50ff5376c8bb1a17a6922e93092ca42a1e7498afd1c0fb1e6da84e57100c14bafb960d4153c7427c60e69f504d710909e66c17d8a2b0e32bc SHA512 3503446a30ed63471d703d68db136af22760c5bd4cd17af0fe207e083f3d7fa3672e9003de6ca87f0c2b418396a30cade791b4817c77c370403abc9a55a719b8
DIST broot-1.55.0-crates.tar.xz 47044428 BLAKE2B 560dad07c679b87f0a6708770bde9fe4257ba45dc87d2f0ad2548fffc3d325cb31c14cec14d1554b1df9c4465d83c57aef2bb594c6ba174a03b2298d0ad92441 SHA512 3da317bffc5134b0099d07635838691caa1a38de5672fd6bbffee6eda1739528948afc13320928fb6d826669b3addbe9dc2a3490b8ca9d5b9d432182518ea71b
DIST broot-1.55.0.tar.gz 14593279 BLAKE2B c14624dd5a12436a12bdb17b37fcb58e9b0983eae5cf81dd2de422058def43d342c5b27260e2cfb48c49f6a00e7a531ef8962a1108b965491665e355e6e95edc SHA512 a4157b5322f2904139fec09962131a3581e899934830f05eb03516032c6aaba1aa19f177ecdd8f676957cc85255b0b36fe2826a733fe096aef01f79ad513d966
DIST broot-1.56.2-crates.tar.xz 47044428 BLAKE2B 560dad07c679b87f0a6708770bde9fe4257ba45dc87d2f0ad2548fffc3d325cb31c14cec14d1554b1df9c4465d83c57aef2bb594c6ba174a03b2298d0ad92441 SHA512 3da317bffc5134b0099d07635838691caa1a38de5672fd6bbffee6eda1739528948afc13320928fb6d826669b3addbe9dc2a3490b8ca9d5b9d432182518ea71b
DIST broot-1.56.2.tar.gz 14601624 BLAKE2B 7e98a6e4aaa87b7cb9da226aa18029acbe4d09df1f9d0ffd709e0c36dca6ddfd75aed5f22ffbbed603da3d999be45ecb0b4f686a530d28fd1a76a334ddfd7565 SHA512 a37bb2350b7ada896040b8e93daad70ed1b41bdacde925147113fa32a5bbb46d8e242f35aa447cc9d2434cab5fa2241b31cf7fee1b55342cc741ba3c878b1d6b

View File

@@ -0,0 +1,64 @@
# Copyright 2021-2026 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
}