commit: 34421e3e0430df1e586dc3e351c581a7ca911894 Author: Jonas Frei <freijon <AT> pm <DOT> me> AuthorDate: Thu Feb 6 04:40:32 2025 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Fri Feb 7 03:53:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34421e3e
app-shells/nushell: add 0.102.0 Signed-off-by: Jonas Frei <freijon <AT> pm.me> From: https://github.com/gentoo/gentoo/pull/40463 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> app-shells/nushell/Manifest | 2 + app-shells/nushell/nushell-0.102.0.ebuild | 104 ++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/app-shells/nushell/Manifest b/app-shells/nushell/Manifest index 2c85cebd612b..f42517974fa9 100644 --- a/app-shells/nushell/Manifest +++ b/app-shells/nushell/Manifest @@ -2,5 +2,7 @@ DIST nushell-0.100.0-deps.tar.xz 70214972 BLAKE2B e20e9136332e67f674d8e61bcd0436 DIST nushell-0.100.0.tar.gz 3218072 BLAKE2B 85dbe1f77585dde0e0613d5fa23c70b67c4b7be94f982ce3954e644a1b75f37501e5c22ffd1e4a16d2d36ca9ce8711223a6414c69e5e9178383b86e394bb7a64 SHA512 7b7e65952a957755fc43fad958669d7e4609045e17ae1a05bc5fb27273e828ff2bc7fad4b72f58a3d068899c97992bb8bf6e992000cf1a454848036e27a9d425 DIST nushell-0.101.0-deps.tar.xz 79707276 BLAKE2B 0981fa6cd3a3703ed746a5900af93fc9bbfb526fa364e584593bba1c85a5de983184f006cf322f1db7e3ea08598ce3d2e476f13d9836e7008326c9cba98b55eb SHA512 294c35c2ed1d449878cfa843de16c0766d9032670515186b755655818e9a0f59fd1fdc8b77fe981233af881453ba6fd9097dfdc88def8f2ba292e86c49f111e5 DIST nushell-0.101.0.tar.gz 3326793 BLAKE2B 23a2504806bea8dde38b2d3af4599b73d326f2334e588aacfefdef6bf0f2a3fd299e57d02c935ce0e3ca56408ce9b09c219c0bf8630be8f50222cb6edc522679 SHA512 ba5c406720e0ac7dff22fc59a0ae3542cfa9640b6c7169a3537d8be59c2bdb31830f117a59a5c91dcdd7ed7a2ca8fbff1fae7f09ce01a60bd27833cfbc44e05a +DIST nushell-0.102.0-crates.tar.xz 67788144 BLAKE2B 87ebc15f781ef60cf5c5f993613cacca7f2dc15c1daa081827c45a69df0750205cbcc4675f535ff72d2730ace06973276facfe6cf7457fe308e96c55d3e2383f SHA512 f6873367635c0bad5c50419b62b1257465de102f278ce43f6838ac42829efc5137f0ec51776df0d8a59c96f58de92223728e8e56c0fc313102d25cc5dbc92672 +DIST nushell-0.102.0.tar.gz 3375963 BLAKE2B ea6029d3fb910d1d0a0c84d4242a30204c7d75bec5f41b6d28f22e338b0b164d10d1cf2deea8fb4ace62f772e40f9bb3c6bb2caba160883b9df765efa642fe78 SHA512 ebe8c120686f2b5c89ac93d4cf26b1c4efa635e34b3dd06b05d3167ee02086fd4b0aa14b234575cdf83f91515b99dbfec05addeaa9c7428045322ca0eea139a4 DIST nushell-0.99.1-deps.tar.xz 89213172 BLAKE2B 4480710ae19c9711da06b45f9b247c05930cd30868a5d537eb7f7bdd2b0c9765314b5a02925fd4e4cfecd7cbc0eea22741342eeaa7b7234730b7417161133a9f SHA512 7576b1befa3758298793b80aabf9fa165b65a2af2e595dabc3873e8212b063e86294d80268094b7ff19b079c44fe296fd7e7bbf8df1b3aca4f028e3d9cb147cf DIST nushell-0.99.1.tar.gz 3195166 BLAKE2B 211fc7d0780e58ab328d0afefa41bc6886c4aa7548bdf05b50ade4635355adc6695697ed23959327bbf974a8d48b5a2964896a5a6052ff90d052d3ad9d6dff51 SHA512 9ea4982aba8dab3cb086af0c27c167b5796bec0edfe8d542e8ddaa4b1d934c53b6524ee2d63ac52ac57241f5baecfbd8f038fa8d0544ee6e5a7c7bbdcc117f27 diff --git a/app-shells/nushell/nushell-0.102.0.ebuild b/app-shells/nushell/nushell-0.102.0.ebuild new file mode 100644 index 000000000000..dc2f5f2eb639 --- /dev/null +++ b/app-shells/nushell/nushell-0.102.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" + +RUST_MIN_VER="1.82.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 +" +DEPS_URI="https://github.com/freijon/${PN}/releases/download/${PV}/${P}-crates.tar.xz" +SRC_URI+=" ${DEPS_URI}" + +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/libgit2-0.99:= + dev-libs/oniguruma:= + dev-libs/openssl:0= + net-libs/libssh2:= + net-libs/nghttp2:= + net-misc/curl + 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.patch}" + default +} + +src_configure() { + # high magic to allow system-libs + export OPENSSL_NO_VENDOR=true + export RUSTONIG_SYSTEM_LIBONIG=1 + export LIBGIT2_SYS_USE_PKG_CONFIG=1 + export LIBSSH2_SYS_USE_PKG_CONFIG=1 + 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 +}