commit:     a1afe963d53f102babd8afd85999d325eb773960
Author:     Karl-Johan Karlsson <creideiki <AT> lysator <DOT> liu <DOT> se>
AuthorDate: Mon Sep  1 11:56:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 15:23:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1afe963

app-misc/broot: add 1.51.0

"trash" is now unconditionally enabled by upstream and no longer a
compile-time feature.

Signed-off-by: Karl-Johan Karlsson <creideiki <AT> lysator.liu.se>
Part-of: https://github.com/gentoo/gentoo/pull/43633
Closes: https://github.com/gentoo/gentoo/pull/43633
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/broot/Manifest            |  2 ++
 app-misc/broot/broot-1.51.0.ebuild | 64 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/app-misc/broot/Manifest b/app-misc/broot/Manifest
index ea03fc32dc7a..8c86f2a59a11 100644
--- a/app-misc/broot/Manifest
+++ b/app-misc/broot/Manifest
@@ -1,2 +1,4 @@
 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
+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

diff --git a/app-misc/broot/broot-1.51.0.ebuild 
b/app-misc/broot/broot-1.51.0.ebuild
new file mode 100644
index 000000000000..68a3d5c3de97
--- /dev/null
+++ b/app-misc/broot/broot-1.51.0.ebuild
@@ -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.82.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) )
+
+       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
+}

Reply via email to