commit:     7c4bb1cf2c3d92424904889820642e5228380286
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sun Nov 30 13:15:07 2025 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 02:36:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c4bb1cf

app-shells/nushell: add 0.109.0

Signed-off-by: Jonas Frei <freijon <AT> pm.me>
Part-of: https://github.com/gentoo/gentoo/pull/44829
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 app-shells/nushell/Manifest               |  2 +
 app-shells/nushell/nushell-0.109.0.ebuild | 96 +++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

diff --git a/app-shells/nushell/Manifest b/app-shells/nushell/Manifest
index bf7cd2d335f8..4f7fde3a9bae 100644
--- a/app-shells/nushell/Manifest
+++ b/app-shells/nushell/Manifest
@@ -4,3 +4,5 @@ DIST nushell-0.107.0-crates.tar.xz 66575964 BLAKE2B 
744bbaa91e99640e4276dfec6453
 DIST nushell-0.107.0.tar.gz 3582761 BLAKE2B 
19b8e11980aa4e26ae9694bdb1e15a638dd7dd5e6df545eceab458e42b9a607c75e1d18dcd4a4464beeda5b809296642100e3e6d374793b3fa5f97b3761bb4a9
 SHA512 
ec54aeb4eff74b858bd87528ff0ea99f60a3b327a48de504d04b5956a79972ba6109db56b0e49e89895baa55dfdba61ade34b2b4af5a1178be1f6c0a5db899c0
 DIST nushell-0.108.0-crates.tar.xz 74196744 BLAKE2B 
563ab1d8cebb210f30b7e21fb9ce6fe371a98fce9e222864473ab6189a417faab47742b0be16acbba7dd41da6c47fdb31d2951b13f9c397e29459e375fef85bc
 SHA512 
538bac24ed47e8d02c9fa7f6f749b4fafbf38c2bcdb63dfe81aecc46f137f4f5fb54f28d1bb64a6b414910f1e0b3463f68eabd750f4b38338654e9e5a8758e43
 DIST nushell-0.108.0.tar.gz 3632436 BLAKE2B 
0af8dcd1a9f5bd6cfc243efcbe17fa6611d6eebbc4defea1b0269e758e03756ca66f6f91ab6786d7b03091417c25792af937dca0280c30c543f36cfa820f1f03
 SHA512 
9b411b521f06ee5391ec7a7462e03cd4b85d815dff10879214c4fcc11625662143466d76efb6a9cb7fad6f5b46e2d5fdef31bdd28ab8befd42065b95bf795cc3
+DIST nushell-0.109.0-crates.tar.xz 75891132 BLAKE2B 
1fc61f47bdcc15ee624ecdc2e7f3d80289b160c17953bddaace898ec9856044086f123ef998be94297ffdb335cc2392bce3db24fa1af7128289cc552c53a56d9
 SHA512 
4b94e87db61fab2781f24e27989e8f55d47f238391ecb5be1680c00ea99488bdc884a00236d92f8b2959d3e1e6d7c5e0b3ece70e8b110afc56ac6bcfdd726c3d
+DIST nushell-0.109.0.tar.gz 3669862 BLAKE2B 
7627b14d45aa04b2ce61660f22877c82dd44eed891c282d8ee2b43fd0b70276b0123ecadda25a8647d9bc9a6c0c3424739e43d6fd56c2cbcebdff717c9467c80
 SHA512 
36d750d2b5dbb13f9a3c85c3c62b8518c9d3798f06a5e3bc57814e1261668eab7fab5831d26968db01c3935509f37346581a6c746e4473ee7dcc9bc005a05627

diff --git a/app-shells/nushell/nushell-0.109.0.ebuild 
b/app-shells/nushell/nushell-0.109.0.ebuild
new file mode 100644
index 000000000000..319a08da2cf9
--- /dev/null
+++ b/app-shells/nushell/nushell-0.109.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.89.0"
+
+inherit cargo
+
+DESCRIPTION="A new type of shell, written in Rust"
+HOMEPAGE="https://www.nushell.sh";
+SRC_URI="https://github.com/nushell/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" 
https://github.com/gentoo-crate-dist/nushell/releases/download/${PV}/${P}-crates.tar.xz";
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+="
+       0BSD Apache-2.0 BSD Boost-1.0 CC-PD CC0-1.0 ISC MIT MPL-2.0 MPL-2.0
+       Unicode-DFS-2016 ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
+IUSE="mcp plugins system-clipboard X"
+
+DEPEND="
+       dev-libs/openssl:0=
+       dev-db/sqlite:3=
+       system-clipboard? (
+               X? (
+                       x11-libs/libX11
+                       x11-libs/libxcb
+               )
+       )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+RESTRICT+=" test"
+
+QA_FLAGS_IGNORED="usr/bin/nu.*"
+
+src_prepare() {
+       use plugins || eapply 
"${FILESDIR}/${PN}-dont-build-plugins-from-106.patch"
+       default
+}
+
+src_configure() {
+       # high magic to allow system-libs
+       export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+       export OPENSSL_NO_VENDOR=true
+       export PKG_CONFIG_ALLOW_CROSS=1
+
+       local myfeatures=(
+               $(usev mcp)
+               network
+               plugin
+               native-tls
+               sqlite
+               $(usev system-clipboard)
+               trash-support
+       )
+
+       cargo_src_configure --no-default-features
+}
+
+src_compile() {
+       cargo_src_compile --workspace
+}
+
+src_install() {
+       cargo_src_install
+       if use plugins ; then
+               # Clear features to compile plugins
+               local myfeatures=()
+               cargo_src_configure
+
+               cargo_src_install --path crates/nu_plugin_custom_values
+               cargo_src_install --path crates/nu_plugin_example
+               cargo_src_install --path crates/nu_plugin_formats
+               cargo_src_install --path crates/nu_plugin_gstat
+               cargo_src_install --path crates/nu_plugin_inc
+               cargo_src_install --path crates/nu_plugin_polars
+               cargo_src_install --path crates/nu_plugin_query
+               cargo_src_install --path crates/nu_plugin_stress_internals
+       fi
+       local DOCS=( README.md )
+       einstalldocs
+}
+
+pkg_postinst() {
+       if use plugins ; then
+               einfo "The plugins are installed alongside the main 'nu' 
binary."
+               einfo "Visit 
https://www.nushell.sh/book/plugins.html#adding-a-plugin";
+               einfo "for more information on how to use plugins."
+       fi
+}

Reply via email to