commit:     9d6b06a7b2ec474a51bc0fcc09d36cf09a124a23
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sat Jun 14 05:34:35 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Jun 15 16:49:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d6b06a7

app-shells/nushell: add 0.105.1

Also, removed most of the dependencies because they are not needed.
Specifically, OpenSSL was removed as a dependency by upstream, see
https://www.nushell.sh/blog/2025-06-10-nushell_0_105_0.html#no-more-openssl-toc

Signed-off-by: Jonas Frei <freijon <AT> pm.me>
From: https://github.com/gentoo/gentoo/pull/42592
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-shells/nushell/Manifest               |  2 +
 app-shells/nushell/nushell-0.105.1.ebuild | 90 +++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/app-shells/nushell/Manifest b/app-shells/nushell/Manifest
index f3be84259be0..b240b5b80468 100644
--- a/app-shells/nushell/Manifest
+++ b/app-shells/nushell/Manifest
@@ -4,3 +4,5 @@ DIST nushell-0.104.0-crates.tar.xz 65932312 BLAKE2B 
5aa7e4b4870454bf52033084fbaf
 DIST nushell-0.104.0.tar.gz 3477814 BLAKE2B 
ce7515f4650cb2e86c5bc59bcd903ef2ec95f39abb7a8f00e3a15afde9d0fb61118c7c6ae02630c8da22412216b2dd075125ad43f693f6b37dffd0f7e9aa01cb
 SHA512 
c21ae55be6db83f98545197a4049bc7d6b50533e9b106cc4c01a03c8793a9dd0b4ea2c0bf691041bb329da871061b39137613cf71dc20f2d4e4e0dd4dd1383d7
 DIST nushell-0.104.1-crates.tar.xz 65912192 BLAKE2B 
b96b2e4b705f9082696ad0b8401ca0f2a90585accdc69489e3d5cf9b46af98afedcf4f1d09a37e1aa464c6edecb300f03d1e92c0bf956685e679b16acb1f6265
 SHA512 
ffeecdd630f53b7987992bef247f398418d3deb6f6119c0d9ee3d41f1fa5b8746b79f812a209766f9f9ff0c8a70b92b727c09c3668929cb12ac58b82e34f272e
 DIST nushell-0.104.1.tar.gz 3486074 BLAKE2B 
2278b8a862f0a2ece0824028fc8e00e48ee027552441f78d112fecff111ffa8875c9b48a44def5864e792e256f16ab35c700a13cd2cf1707b1dd14bcb5a36c84
 SHA512 
963efb959385d28839a1505111a3841c08cad7c1941c7c5a3dfc941d34cbd0d2a46d1602cd72f8b5920d86a03b2c157da9893f8ea2b25bbab81c12651a2e91c9
+DIST nushell-0.105.1-crates.tar.xz 65131560 BLAKE2B 
ee3ba245cd6cfe75d80411ddfbea4def29c6c1839e3542010f13107766cadec9e2a9c4b334555eeb4c5023cd85028f68be5e16db9733d41b21d263cf1ab44d3e
 SHA512 
428fe75c79ac3e8ae003d6609242dae79cab507de9b935e5b6cefc9d4054a767861b9d0d4329d7689614ada5859f37623d1d902288da4b09caf4199d2ca03b9c
+DIST nushell-0.105.1.tar.gz 3527094 BLAKE2B 
ea2ca2d6d090ab1a0fbfb64b19ac90fb26330e5e4cfea23dad381f79465cdef42211b94c1b647c9f1a7a898247d61e677fff7be6a28aa4a97f638819cb9380bb
 SHA512 
5027c8997524be6514460fb72f164e3609deb6abecc1302c5dd6b824e8c47334b56ca8c612bc7c5556075973e209935b09a07fb19ad96aa8aa7e2d6de9c6c7c2

diff --git a/app-shells/nushell/nushell-0.105.1.ebuild 
b/app-shells/nushell/nushell-0.105.1.ebuild
new file mode 100644
index 000000000000..7ff1b0b203c1
--- /dev/null
+++ b/app-shells/nushell/nushell-0.105.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+
+RUST_MIN_VER="1.85.1"
+
+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="plugins system-clipboard X"
+
+DEPEND="
+       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.patch}"
+       default
+}
+
+src_configure() {
+       # high magic to allow system-libs
+       export PKG_CONFIG_ALLOW_CROSS=1
+
+       local myfeatures=(
+               $(usev system-clipboard)
+       )
+
+       cargo_src_configure
+}
+
+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