commit:     e234ea162fd85e23940d5631fb42a72829a585f6
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 16 06:55:39 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Sep 16 07:50:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e234ea16

app-shells/pwsh-bin: bump to 7.3.6

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

 app-shells/pwsh-bin/Manifest              |  3 ++
 app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild | 69 +++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/app-shells/pwsh-bin/Manifest b/app-shells/pwsh-bin/Manifest
index d901136a237c..200da61b50a1 100644
--- a/app-shells/pwsh-bin/Manifest
+++ b/app-shells/pwsh-bin/Manifest
@@ -7,3 +7,6 @@ DIST powershell-7.3.2-linux-x64.tar.gz 71500527 BLAKE2B 
10e6715f3e96de17b8d1bacc
 DIST powershell-7.3.3-linux-arm32.tar.gz 69047872 BLAKE2B 
864ff7619290cb509f46e635afd74043c488922a7fe26585a4221b6d9f9780a10c2abb221d8db1c93ca86119956f7bfa0aedcb64fa2bea37a87fa604692d30bd
 SHA512 
99b2eb2b6d420c84be24491b04b3f2aa2602b473187d55cf55e5fd826cbd34d6da5fa04ea28a026fe6eb852d88d2106ddab8ac24e29d539893daf91cc8a96eb6
 DIST powershell-7.3.3-linux-arm64.tar.gz 67958251 BLAKE2B 
86ad243deeabb7173ba61ea51e7b66b2201301c210a56dad5b72d2e389f1430b6a361c7cc895edcd8028034cefab61d8c00d2a90a2c6bf02ffd2b77ce19515de
 SHA512 
62ef16ac9d376af91d47b51d18bedd932ea7886c19b84d16657e9080f6b07e215057cf1588ad7816760b73395545e2f436d40b8a323d3c1b608ce056bb6c6ee0
 DIST powershell-7.3.3-linux-x64.tar.gz 71548865 BLAKE2B 
ab09580a57371fcbe1638b14d86531a74953c8d8093f2c88f2d13f0611459660ca41d05a92f2333f6086c9ed94fa5c865a066a4e17d195f034de77c75fd7e80b
 SHA512 
e53ebe4eb3dc2e4fcd63b997a819828a8234c37334aafff158af98bcaaef743bfe64c00247224c35ddc04a3d227c8cf859a3f1f261f3cf4f9f57257008f59b86
+DIST powershell-7.3.6-linux-arm32.tar.gz 66514877 BLAKE2B 
3ea314d0353e5688bcf51288271da472cc3120436779cfee6a248646e82b9730a6136da12daf1127777232b559d81306f50aac006e5c50fb0375a63f9c4f1de9
 SHA512 
a97f9a34d64d46664bca1c3963858bdcc84d6e6a67c81df8398faf134d86f459466f0b27f969ab18a1158c60eb7652a49106a654ff3ca5bb296e5d4093df771b
+DIST powershell-7.3.6-linux-arm64.tar.gz 65416423 BLAKE2B 
dd3855a9e092092930761ef1db9b5fdad523ced69943c57827980e483b61b21229043638c3e620f76827167905d61f23f240a8b128a294197e457ed4a478ace4
 SHA512 
7a2c1c7ead3cbda7edf6672a241c7f8368ca58b44d1baa634b28a278c154a75bc1f0bc14a0945fcc3dadfe21c1518577901dc765659476856be3575768a161a8
+DIST powershell-7.3.6-linux-x64.tar.gz 68984703 BLAKE2B 
36df952abcf1bc116a4a0734313877ae432120b77fe36e6fe68d6db164f6a73809a6f494169e3a4515594356f1d2812379524c6b6c1d90ba4429d87b570ee95c
 SHA512 
da2d19fef2dc056f5012c1e8e3a027f0c3b6fb35f1d5d4bb0a17dc8ddbc015c38269c5b4459a56280bf3191d85bf4513b53d51ea3202bf071df439374a5a5870

diff --git a/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild 
b/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild
new file mode 100644
index 000000000000..187d91e3a723
--- /dev/null
+++ b/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 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"
+REQUIRED_USE="elibc_glibc"
+
+RDEPEND="
+       app-crypt/mit-krb5:0/0
+       dev-libs/icu
+       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}:/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