commit:     bf31ecd37951697ee09513c869e98761c96862d5
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 20 19:41:34 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Oct 20 20:31:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf31ecd3

app-shells/pwsh-bin: bump to 7.5.4

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-shells/pwsh-bin/Manifest              |  3 ++
 app-shells/pwsh-bin/pwsh-bin-7.5.4.ebuild | 74 +++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/app-shells/pwsh-bin/Manifest b/app-shells/pwsh-bin/Manifest
index 67d203e1ac68..e8c9d2f7134b 100644
--- a/app-shells/pwsh-bin/Manifest
+++ b/app-shells/pwsh-bin/Manifest
@@ -4,3 +4,6 @@ DIST powershell-7.5.2-linux-x64.tar.gz 75345318 BLAKE2B 
2e8c8ea7d87a4f9aafca0b5e
 DIST powershell-7.5.3-linux-arm32.tar.gz 73184831 BLAKE2B 
b80b9fdad9d16c86ba1d833e47087c0026920e3a82c5f9b6c21b994a2574414cc20c288d0d3d726df67e38f402d091bcf677fe7483aa78600bc63504b32276b4
 SHA512 
766cf8a6e1840b19de9ebf1a082a8c1e39766fb293a1ea48a824e304810bc57f3355b0ad2b3f85f5fe899a2c37b68c3bb280ec040ceb0ebbcebf92f557cb4479
 DIST powershell-7.5.3-linux-arm64.tar.gz 72238753 BLAKE2B 
9fb83ae4f39c08e98c38214f48961709d788036585e0f0c461247278bd9e5ee4f54c8c9beea00b95af051c488ad09c9f447b5a98a4723c4fb8491ab911936a17
 SHA512 
1f24a7c8ef6627d71cea2afd9321ba791eb09ff74875d79ce582148301bd4e9d78a5688bd27f99fee61bf09784eb14866bd482d5af39bb197f506853b533e552
 DIST powershell-7.5.3-linux-x64.tar.gz 75413418 BLAKE2B 
49b028a3223d409460aeb8f4fe562baefd0f1f73e2fec2ee5850fbe331640998f92880873ee8b8727716d56176823e344dc71037a4ce2775bb9bc2ed5777a968
 SHA512 
4c931c256ae292df44ea15f851aaa2977f851d7c3994c3160d7c4eed63d568b30c61c85c440b95a8b0ec7bf36f84baaa4b7d6ea4e34ec792cfe52c4e307d4523
+DIST powershell-7.5.4-linux-arm32.tar.gz 73167349 BLAKE2B 
f12a82c4e61a618a2b4445941f2bb23e00837c9f5274bbb587e45eff9e574e671ece9208d027aea1104fc076d1b71600953faca15b86e4825a9a1c3c58e9f36a
 SHA512 
78ceeef2d8ce28568d5421a423006941895df64cd797f9200ded8e75569e0375809013a376f3ecfbdc86f2fd7bebbd5f764f4104110ce6b2aedba48b211d666f
+DIST powershell-7.5.4-linux-arm64.tar.gz 72216296 BLAKE2B 
c82a2ea732a56acd6e84da63b1908ae8e8d266675f074175cb337e11582e090b4184e03fa42ef78e2d95e8a0087c69e27ba2da4c87629208b35d0eab67eaf48a
 SHA512 
ef721f209842f13a560a21373744ab953ee8af41a60a0ed2f434131f85f4cd1b11565e3615df538a7d78cb5dd2096e9e2ccb42f4ffda79208c80f5206bb40cad
+DIST powershell-7.5.4-linux-x64.tar.gz 75396784 BLAKE2B 
8f49bdbe6c5910cd90e6804803c26374708ebb943a90ccddc5e985202d74eb7d2540affd3f6cc35d43b99c3c1ff327968a3af4d2382deb67e9da04c1ab5e4bec
 SHA512 
6ff028cee3b23c71136de736ae5a93beb7b625215db3398b034fbdb0dd7b034ebf53da32cc47880982f7506054514e9af3cc5defcb4d69a7dd4a08a766469f0b

diff --git a/app-shells/pwsh-bin/pwsh-bin-7.5.4.ebuild 
b/app-shells/pwsh-bin/pwsh-bin-7.5.4.ebuild
new file mode 100644
index 000000000000..e6d1198cfee5
--- /dev/null
+++ b/app-shells/pwsh-bin/pwsh-bin-7.5.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit wrapper
+
+DESCRIPTION="Cross-platform automation and configuration tool (binary package)"
+HOMEPAGE="https://microsoft.com/powershell/
+       https://github.com/PowerShell/PowerShell/";
+
+BASE_URI="https://github.com/PowerShell/PowerShell/releases/download/";
+SRC_URI="
+       amd64? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-x64.tar.gz )
+       arm64? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm64.tar.gz )
+       arm?   ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm32.tar.gz )
+"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64"
+REQUIRED_USE="elibc_glibc"
+
+RDEPEND="
+       app-crypt/mit-krb5:0/0
+       dev-libs/icu
+       || (
+               dev-util/lttng-ust-compat:0/2.12
+               dev-util/lttng-ust:0/2.12
+       )
+       sys-libs/pam:0/0
+       sys-libs/zlib:0/1
+       || (
+               dev-libs/openssl-compat:1.0.0
+               =dev-libs/openssl-1.0*:0/0
+       )
+"
+IDEPEND="
+       app-eselect/eselect-pwsh
+"
+
+QA_PREBUILT="*"
+
+src_install() {
+       local -a broken_symlinks
+       broken_symlinks=( libcrypto.so.1.0.0 libssl.so.1.0.0 )
+
+       local symlink
+       for symlink in "${broken_symlinks[@]}" ; do
+               if [[ -L "${symlink}" ]] ; then
+                       rm "${symlink}" || die "failed to remove ${symlink}"
+               fi
+       done
+
+       local dest="opt/${PN}-${SLOT}"
+       local dest_root="/${dest}"
+
+       insinto "${dest_root}"
+       doins -r .
+
+       fperms 0755 "${dest_root}/pwsh"
+
+       local 
gentoo_path='PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"'
+       make_wrapper "${PN}-${SLOT}" "env ${gentoo_path} ${dest_root}/pwsh"
+}
+
+pkg_postinst() {
+       eselect pwsh update ifunset
+}
+
+pkg_postrm() {
+       eselect pwsh update ifunset
+}

Reply via email to