diff --git a/app-shells/nushell/Manifest b/app-shells/nushell/Manifest index 8c028371817bd..6cf4a1bee9e54 100644 --- a/app-shells/nushell/Manifest +++ b/app-shells/nushell/Manifest @@ -6,3 +6,5 @@ DIST nushell-0.112.1-crates.tar.xz 77893136 BLAKE2B 6e74e7b42c74f1d6fc1345e12460 DIST nushell-0.112.1.tar.gz 3942402 BLAKE2B b4b00f0210c300273a872e045cc5874fc161096f5ef3a8053a70a11e6594b5a59a620500fcc024f98d37fa23c550cf33d5af81cafec55dc40f333f82ac10a60f SHA512 913b3d0068f7939aeee7dba28980581626e10373825721a63270782ac446b92715179504016265652db3b71cfea1a8282a84d2ba85328b6b700cced436af4b7a DIST nushell-0.113.0-crates.tar.xz 78541236 BLAKE2B 70a5396c96cf53757ff307a601439cdb68b06d16ce8f61f1b36af8ace5cddd08a2330062ac840837e7d6927b0639d648e3d3d8c5436b5bed8813597830d2630b SHA512 e58721092f1b24c18d77e67c6e39ad4154e11cdbbbccb6b81f1382938d20b40e0e8543e788a49f754b9caa8efc609b64f58c073a2172f27b6c262f8562a55b5f DIST nushell-0.113.0.tar.gz 4020157 BLAKE2B 2ede2167e4294ef4cee4d4935c7243e2d0930a7bd57ffd1271327c6abb8affe6a41100fb1337a965b0368b9f25a7178e6b6f0e83f5056bce3e4711e5004eb6c0 SHA512 e2c10d6f10fc439a058502757e2c0461e56ba1b4b5479c986e2f0234bd06a266259a495eb9306767e871e3822f7a11b36d1d103b37f9715ff64413943dcd9ff1 +DIST nushell-0.114.0-crates.tar.xz 89175376 BLAKE2B 2f30402855b118f3f336eec5ef3bf0386184ba201ba36b2b0fa87334e0b0a78972bcaddbeda9fcc9bd1789bc198e217ca2e278ecc723bceaf5729e6221b3a841 SHA512 604f9a386ecd9b7a107d3bdfe4edf171b315ce26498287a7d5adde324d3ab1f664ae8648f44d02e0982f3208c6402fe15ec8deb34bd02d01d3c6410c718d032e +DIST nushell-0.114.0.tar.gz 4156736 BLAKE2B 0dcee05c4d9822d758402642d5db760cb4f5d4c202e8b6a83aa4d0e2f725a4488b0f25acaf704696725931a397859d53518f761ef621d52489b02230ccf147d3 SHA512 6e10907c58292551861af7efb5cea783fc77de7de17b982898ef32fa2f4154f0633eca2b346d425af3ecee122fe6dba89a4b5a276a264482251540609e44e45f diff --git a/app-shells/nushell/nushell-0.114.0.ebuild b/app-shells/nushell/nushell-0.114.0.ebuild new file mode 100644 index 0000000000000..f939ff602f1fc --- /dev/null +++ b/app-shells/nushell/nushell-0.114.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUST_MIN_VER="1.95.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) + native-tls + network + plugin + sqlite + $(usev system-clipboard) + trash-support + ) + + cargo_src_configure --no-default-features +} + +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 +}