app-misc/broot: add 1.47.0

Signed-off-by: Karl-Johan Karlsson <creideiki@lysator.liu.se>
Closes: https://github.com/gentoo/gentoo/pull/42790
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Karl-Johan Karlsson 2025-06-28 19:45:52 +02:00 committed by Arthur Zamarin
parent bd5833a0ba
commit 5854ca9284
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
2 changed files with 66 additions and 0 deletions

View File

@ -2,3 +2,5 @@ DIST broot-1.46.0-crates.tar.xz 39940716 BLAKE2B 6386475dd222b2d8e55dad5f209e93e
DIST broot-1.46.0.tar.gz 15296432 BLAKE2B afcaadd0978dd7ed03f1f8daf7abd3df0cb996b960addd63f854495db94ebee658890d9cdfc187d59fbb959c89fce9c89c236a29543fe21e0d7da69fae9a8972 SHA512 0adc37d03ddeda845b3ddfc7b8bf9bd2da3b75b6bdaf73c9c20ef5487bc573b72447b6857056010ae67bdff6017a7afad2c99ef0b390d02e62ac6daed537d5a6
DIST broot-1.46.5-crates.tar.xz 40169900 BLAKE2B eaf869ad2a0ba6f9017fab09ae856c2607fb5619da0240c86b1d5bb5de60d8f62b753af3a8977f10443978948116dc314947f28a5c89425e7f9856cc0f951cf4 SHA512 7b283fb9e5440568873b0cbedca15de3715d61287841e6bab03d6731f925dedd4f0be2a0699a77b90a66fe89bff503910d6089eb2cee53f86b3761688a0ec8be
DIST broot-1.46.5.tar.gz 15296155 BLAKE2B 4c4d5bf41ada96f260b604042eeab0099f8f094305b5d885dbbe973d772feb20c726d5582e93a30eab4b1a112c46bdea35f6dcd05a11f431d8898d22085e8803 SHA512 30b61a8e258d77dbe209d06fe2a4bf7b8766a65c7fc14ceb58806da0cff5863ed5f1a89c6ceafd2d8138e31b8944c51777e0cef264e07ac793fe2268ec90bc75
DIST broot-1.47.0-crates.tar.xz 41052620 BLAKE2B e4be99247cef12846f24060bc5782a47c61856adf7734a872637afde42c8086b6aff8d752074c91bc557d6eac8653212ff3ae4ef3b6ea07b144cbca081cc68d7 SHA512 2783cb2555e50cb9b89119e5840fb45b17c5e5a62b97016828466cf05386d5774e79e36ed58d24dba382ef5a18e75762e8e427fba2f873e406dbf57e54fc2290
DIST broot-1.47.0.tar.gz 15301702 BLAKE2B 1a989e5b9bbdcf02905d6d26b93070f1e32870128e0c2352bc2ecdf950ef7914f256b25c7bf3b57b66b8a80c2f9b01b2d7ae304700463795d31a2a481f4693d5 SHA512 2c370d20481912c2d88722f7aa50d2b03be5afb4389362608bc1bdc83c65ad70a98513f5c6d51141bd75cef564a55ae7647bbfa629b3125fc046c21bf5ab7822

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.79.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:=
sys-libs/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) trash )
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
}