summaryrefslogtreecommitdiff
path: root/app-shells/nushell/nushell-0.107.0.ebuild
diff options
context:
space:
mode:
authorJonas Frei <freijon@pm.me>2025-09-05 20:10:23 +0200
committerZac Medico <zmedico@gentoo.org>2025-09-08 18:47:10 -0700
commit8772ec239aa24681a8bfa3c8862804538434f7b2 (patch)
tree96c2f75452238d78c06dd3a0e57f590250bc3d6e /app-shells/nushell/nushell-0.107.0.ebuild
parent6d08a22e07cda2d2ac7b7b1074aba56a3c7fef45 (diff)
downloadgentoo-8772ec239aa24681a8bfa3c8862804538434f7b2.tar.gz
gentoo-8772ec239aa24681a8bfa3c8862804538434f7b2.tar.bz2
gentoo-8772ec239aa24681a8bfa3c8862804538434f7b2.zip
app-shells/nushell: add 0.107.0
Signed-off-by: Jonas Frei <freijon@pm.me> From: https://github.com/gentoo/gentoo/pull/43676 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-shells/nushell/nushell-0.107.0.ebuild')
-rw-r--r--app-shells/nushell/nushell-0.107.0.ebuild94
1 files changed, 94 insertions, 0 deletions
diff --git a/app-shells/nushell/nushell-0.107.0.ebuild b/app-shells/nushell/nushell-0.107.0.ebuild
new file mode 100644
index 000000000000..4448ff3eee6b
--- /dev/null
+++ b/app-shells/nushell/nushell-0.107.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.87.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="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=(
+ 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
+}