app-misc/broot: add 1.45.0

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-03-22 15:01:05 +02:00
parent a4a844c75a
commit 5f5c19f649
2 changed files with 66 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
DIST broot-1.44.6-crates.tar.xz 39940672 BLAKE2B a2ddb6b2fde1cb485d0efed044a6b1d0f24465994060d1bc830dd45ddecbd99c0847cecfbfffabb6f1508a1696359d458a093b015623e2c763b095fc5e9d2698 SHA512 0b4c33b0ffc09de59d2eb293e98efa4a3dab8885913cfb3eaada651979443a3f38d4246f58edb89eb5a00153730f511fb0b6a50caba0cc39d9b4b9294c462d6f
DIST broot-1.44.6.tar.gz 15295709 BLAKE2B 2ebfef9e9b2440d7f30a34664e81d13f86af7349a9ccf0c473247e43a56ece1e0082cd8c8b2a2114d92cbddf75ead89cff509b105b88e5ead87e144ad6b79c88 SHA512 36735c1c206c4bd92069e08628ed1111e24c2faa9128fad182e4cba6906c47eb1d72ff376f066cbb22f70ef071a3703bed00554e1c1ef9cfe78541edbb1a570a
DIST broot-1.44.7.tar.gz 15295328 BLAKE2B d1dce9d823db2c52d0d2326cdcabb346ff597c99015e0935c4756aa144c2237fdde3f9720f7da4a76f418f520abe209012080bc605412744706dde999037f3c6 SHA512 e302f00fc8f4170469bb783a021bdc6e81788d1c98739e847082910755e351707388fe00b5dda3960ca4199518856d0117ed6c53eec75bd44b341de41101cdeb
DIST broot-1.45.0-crates.tar.xz 39582336 BLAKE2B 89ae02cd9c7e9c3b6c59b047f31937c47dfc7c4ac78142e5450c7344f31befbe6b06ebd0fd46862fd999ff5d7f0e44f05fb14b74124f8161b357911247efac6a SHA512 4c38004278753a0acfb1335849fe933c1b1bf58edc90b8669d49f1d8fe9e972382575f8ba67fb6d4f936da0957c4208ca98a7adc09618fc55d5a1ec0fafd829b
DIST broot-1.45.0.tar.gz 15295901 BLAKE2B 3fa45087a128e12dc62b4bd359d4513d96148e0bbd1b12244799d73dd724889d91a6707b64861d6d527288474d99491098fc3015c453357df8430c627cc7b5a6 SHA512 aaa1b5fa26fcb29939e74e37f9eb831d4d3f26399e91d84a1e8c1b346ccfed7d4726b209a881c6ba734817b6dc7dffebf5d2d4636bd145dff7ecd5ca47a6025c
DIST broot-v1.44.7-crates.tar.xz 39582336 BLAKE2B 89ae02cd9c7e9c3b6c59b047f31937c47dfc7c4ac78142e5450c7344f31befbe6b06ebd0fd46862fd999ff5d7f0e44f05fb14b74124f8161b357911247efac6a SHA512 4c38004278753a0acfb1335849fe933c1b1bf58edc90b8669d49f1d8fe9e972382575f8ba67fb6d4f936da0957c4208ca98a7adc09618fc55d5a1ec0fafd829b

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
}