commit: 9b533bfca3921022e5d954eaf61cd40e80ab748c Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sat Jul 5 18:48:27 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sat Jul 5 21:21:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b533bfc
app-shells/pwsh-bin: bump to 7.5.2 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-shells/pwsh-bin/Manifest | 3 ++ app-shells/pwsh-bin/pwsh-bin-7.5.2.ebuild | 71 +++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/app-shells/pwsh-bin/Manifest b/app-shells/pwsh-bin/Manifest index ee8ba5c47b1b..33303d0c2796 100644 --- a/app-shells/pwsh-bin/Manifest +++ b/app-shells/pwsh-bin/Manifest @@ -1,3 +1,6 @@ DIST powershell-7.5.1-linux-arm32.tar.gz 73122631 BLAKE2B 952b777a57b718ba894fcc043b1400f085dcddfc47b264e8cf958b15cbea866057bf1c418b5021fdf59f7e0bf92f1d6dd771ec8cea5aec0b75202e3f32d5bba4 SHA512 388d5a7841af3245d3a85bf0cdfcbde08b4dddcaaa6f1216097fe14be6276451931ab01baa3599ae753e39f2ffdc0d28bd3b2a3afb35faf9b8531dbf593d1e8c DIST powershell-7.5.1-linux-arm64.tar.gz 72193995 BLAKE2B 81fea5409f5479d67cf13f33ff6109cfa731d4e4324a059b9b7eaf945c893ed6a2a9bec698afc0acd292145062ee1a40cab8362b3a48645fa9b8d98cf40528e6 SHA512 1195ae7c8573397b150b666ea0e77b3745d810519e114365a9cb910fef6b21dfaa26da328c5fe1ea6f156b7efd2ee71c3a7a897b7d47d25f52dde615d84668eb DIST powershell-7.5.1-linux-x64.tar.gz 75376756 BLAKE2B 55db55ddd2d91e32723e1fcc551234b796db22939b485977de6ca3642561cc2a3dbc08ac24384e8ee2546face204e98e1e22a66769dde005a439398c5da36972 SHA512 15c5b41888a72f7414ab81617c81c8b745ed25468c379ed0be0d068a77bb0ea76e785fd4ac57d3e1464a275ada1f086441b07d83a4cbf36725086713f436699b +DIST powershell-7.5.2-linux-arm32.tar.gz 73168663 BLAKE2B 4976060f2067f491dcb7a308e90b4fc05b295af1fbd26fe07e069031fa10543ccb7ec983190f40199efb66cd7b56704caec861cc6b07d07afab58095c53d46ea SHA512 895afc0f71b605b668f466b6b5f54219efb9ddc9078db25f068bf6f41fe2953e28778ccdaa62cfad071b21cc9b6065b5582418cea14ce0d6ee8134be6ee53921 +DIST powershell-7.5.2-linux-arm64.tar.gz 72201436 BLAKE2B e50a5be999ff511dc5733a72f40fe52464b0d4acc02191d768f9385a3f0eb6759a3c041a28f0d6bc66ab6eb6228b0521842029d9225a5e5ca7f0cd39d657133d SHA512 5775561d4a959d9b817b72f0a73d623dbe7f008fa218f0cbefe695aa9af1d7fec3fc5820d10bab265b29e4edc4c25badffd6c7d1154d074ce2c6b52c7da729fa +DIST powershell-7.5.2-linux-x64.tar.gz 75345318 BLAKE2B 2e8c8ea7d87a4f9aafca0b5e4fdba3b28e5b6d35d07597c74076d88d7fab4dad9dcba19decc5182b4cbe114c9de7cb25c51643e63bf79269dfed96fa79f4e04a SHA512 5d44f6632e8090a79c396d0b679c6a5ea8833df23d2ea2e3c1c74664b14cb9d748625870b4e8caa5ed99f47d93a5246dd30097c773ccc9090982ab470b446276 diff --git a/app-shells/pwsh-bin/pwsh-bin-7.5.2.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.5.2.ebuild new file mode 100644 index 000000000000..07a48bba2c9f --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.5.2.ebuild @@ -0,0 +1,71 @@ +# 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: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 +}