From d80b870c42fbe218389ffaf86f0f2a39404deca1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 24 Sep 2024 01:25:20 +0100 Subject: gentoo auto-resync : 24:09:2024 - 01:25:19 --- app-shells/pwsh/Manifest | 4 +- app-shells/pwsh/pwsh-7.4.1-r1.ebuild | 417 ++++++++++++++++++++++++++++++++++ app-shells/pwsh/pwsh-7.4.1.ebuild | 411 ---------------------------------- app-shells/pwsh/pwsh-7.4.5-r1.ebuild | 423 +++++++++++++++++++++++++++++++++++ app-shells/pwsh/pwsh-7.4.5.ebuild | 417 ---------------------------------- 5 files changed, 842 insertions(+), 830 deletions(-) create mode 100644 app-shells/pwsh/pwsh-7.4.1-r1.ebuild delete mode 100644 app-shells/pwsh/pwsh-7.4.1.ebuild create mode 100644 app-shells/pwsh/pwsh-7.4.5-r1.ebuild delete mode 100644 app-shells/pwsh/pwsh-7.4.5.ebuild (limited to 'app-shells/pwsh') diff --git a/app-shells/pwsh/Manifest b/app-shells/pwsh/Manifest index 8ae49386ff3d..a66112f3c379 100644 --- a/app-shells/pwsh/Manifest +++ b/app-shells/pwsh/Manifest @@ -250,6 +250,6 @@ DIST xunit.runner.visualstudio.2.5.8.nupkg 580504 BLAKE2B 5171e4104d3036f9f69a69 DIST xunit.skippablefact.1.4.13.nupkg 46061 BLAKE2B 1c362ebed9d8f88fb8f3728194b7b406f05aaac3776ea8b1167722b82799a6acd589771044aee37d045d45e7760cdde1a555b80cb8a92c5d55e0cc3ead6e66c5 SHA512 d3cf30ada4d447fd4737143554f9c9be1aabe502e1c5e2614e13100bda71f3ed9eab03805c7d3475936a9ed6730bf86ce2212f6da6ccf5306553fc1352bcd5ba DIST xunitxml.testlogger.3.1.17.nupkg 84249 BLAKE2B dc53293a4c910397d6ccab3cf32a9ec53503e3146b296efbea20aa32498bf5008355e784083202daa0ea494133eec02f81831dced153d2f2fb28070ffc1a54b0 SHA512 da05c84fe7a8417e1ef69aaed013ee0ac08f74ddbd67b00bc3736f9e1e2e4c6283c4fa1b7119eb73e61c87e0007d86937628db9ed256167cc47d1e0234c5defc DIST xunitxml.testlogger.3.1.20.nupkg 84750 BLAKE2B eac8b67452bbf2bbb8e084e471b025d541bfbb5895cee119ae192c07bac15b9fe9384dd8f4844f36e8fc15c0734e0afa778ef2725ea5a377b11437231c82d054 SHA512 ec5ef9b782bc14c1a7a3bc4f46bda295cf9de01cfd65566938c66cbe23b7eb84cffdf0f004322f4d704b265343157a05869e4b689a1680f6be275d36d9005e4a -EBUILD pwsh-7.4.1.ebuild 12697 BLAKE2B a60e6080e33ffe10d9190dff0312c8c21347f5cd85deb6dfa9d272d19aa3c3679297ec457ca4b11e63e5d22b56e811cf8131ca04ecec031b1126e8bb090cece3 SHA512 353d05a783b9550dc00d5441f85a0f2583ae9f179cf45a4eb9d951ec711f41afa89c4d3c678a50448060e1012f58f0bf33e79973f896a31b32f121355972d349 -EBUILD pwsh-7.4.5.ebuild 12926 BLAKE2B ba85e395bf5a9fbd9ddb1bab56bba09c2e315fe89f11fc71b0ba49d3dca4806bdf5adc1108e06b3451eaf6bef0f2d74060a2f2d7240629f436b68b7f6b9aba24 SHA512 153a01c0117ae1982b3b98e020dd12616a979a1daa2e00009c7d6cc5eba2a971c7cc93ee710de068be2565c7ae60c914ecff0beff98c204a374fc5510eb2223d +EBUILD pwsh-7.4.1-r1.ebuild 12945 BLAKE2B 7b52195a2ee7f0510ddfae10f5564c59cd3c07ce14537d9593098b2a27c6c6460d40bb5a61995ae2316d94d77800a847f47e8b0bf16420fb88d0a24962bc8f64 SHA512 f3904419f2af1cd11e65f60af80c3f0eeda7b991fd52a0394d2daf2a3fc8fa3c8ac1d0fb0f423ec544ca0bc77966d6a99b977dc32ef846fd43ec44ef6da850be +EBUILD pwsh-7.4.5-r1.ebuild 13174 BLAKE2B 8bb78a559987778e9a12da36cf6e846c544c3abb9b1bde66a12c37a7c0404c82712a84fd36db92853c70ce7ada6dfa3461fb83f14a8ffdf00a77b66cedf3fde9 SHA512 028b324df4d582e18b70d756b5d831cc95b5f2c881f630a67c750d7ed2df60dc020b80823b7d8b59b080237cabfb550d84a06e3470c7092aff46afdcaf8c96ab MISC metadata.xml 975 BLAKE2B 7829822b2adb78e5f231c4e2e40671b3df61ed90c5dc01267bb90a56a97758b0197ae523ed495d1099d5e51b4854cdf61c7f052584f1a4c08d353177dc3add5d SHA512 440546ebb8d93817d0dc48a11543c36f200c44a9f68ff394f0727d89c9af8f91127d5f76a1c0e88a61dbfd9f3c4c1711bf3dd75bcb91eed32052839eef01b564 diff --git a/app-shells/pwsh/pwsh-7.4.1-r1.ebuild b/app-shells/pwsh/pwsh-7.4.1-r1.ebuild new file mode 100644 index 000000000000..6953d1d14729 --- /dev/null +++ b/app-shells/pwsh/pwsh-7.4.1-r1.ebuild @@ -0,0 +1,417 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTICE: Before packaging we have to run "ResGen" and "GetDependencies". +# See: https://git.alpinelinux.org/aports/tree/community/powershell/APKBUILD +# The repackaged tarball contains the C# code generated by that subproject. + +EAPI=8 + +DOTNET_PKG_COMPAT=8.0 +NUGET_APIS=( + "https://api.nuget.org/v3-flatcontainer" + "https://www.powershellgallery.com/api/v2" +) +NUGETS=" +dotnetanalyzers.documentationanalyzers.unstable@1.0.0.59 +dotnetanalyzers.documentationanalyzers@1.0.0-beta.59 +jetbrains.annotations@2021.2.0 +json.more.net@1.9.3 +jsonpointer.net@3.0.3 +jsonschema.net@5.2.7 +markdig.signed@0.33.0 +microsoft.applicationinsights@2.21.0 +microsoft.bcl.asyncinterfaces@5.0.0 +microsoft.codeanalysis.analyzers@3.3.4 +microsoft.codeanalysis.common@4.8.0 +microsoft.codeanalysis.csharp@4.8.0 +microsoft.codecoverage@17.7.2 +microsoft.extensions.objectpool@5.0.17 +microsoft.management.infrastructure.runtime.unix@3.0.0 +microsoft.management.infrastructure.runtime.win@3.0.0 +microsoft.management.infrastructure@3.0.0 +microsoft.net.test.sdk@17.7.2 +microsoft.netcore.platforms@1.1.0 +microsoft.netcore.platforms@1.1.2 +microsoft.netcore.platforms@3.1.0 +microsoft.netcore.targets@1.1.0 +microsoft.powershell.markdownrender@7.2.1 +microsoft.powershell.native@7.4.0 +microsoft.security.extensions@1.2.0 +microsoft.testplatform.objectmodel@17.7.2 +microsoft.testplatform.testhost@17.7.2 +microsoft.win32.primitives@4.3.0 +microsoft.win32.registry.accesscontrol@8.0.0 +microsoft.win32.registry@4.7.0 +microsoft.win32.systemevents@8.0.0 +microsoft.windows.compatibility@8.0.1 +netstandard.library@1.6.1 +netstandard.library@2.0.3 +newtonsoft.json@13.0.1 +newtonsoft.json@13.0.3 +nuget.frameworks@6.5.0 +runtime.any.system.collections@4.3.0 +runtime.any.system.diagnostics.tools@4.3.0 +runtime.any.system.diagnostics.tracing@4.3.0 +runtime.any.system.globalization.calendars@4.3.0 +runtime.any.system.globalization@4.3.0 +runtime.any.system.io@4.3.0 +runtime.any.system.reflection.extensions@4.3.0 +runtime.any.system.reflection.primitives@4.3.0 +runtime.any.system.reflection@4.3.0 +runtime.any.system.resources.resourcemanager@4.3.0 +runtime.any.system.runtime.handles@4.3.0 +runtime.any.system.runtime.interopservices@4.3.0 +runtime.any.system.runtime@4.3.0 +runtime.any.system.text.encoding.extensions@4.3.0 +runtime.any.system.text.encoding@4.3.0 +runtime.any.system.threading.tasks@4.3.0 +runtime.any.system.threading.timer@4.3.0 +runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.linux-arm.runtime.native.system.io.ports@8.0.0 +runtime.linux-arm64.runtime.native.system.io.ports@8.0.0 +runtime.linux-x64.runtime.native.system.io.ports@8.0.0 +runtime.native.system.data.sqlclient.sni@4.7.0 +runtime.native.system.io.compression@4.3.0 +runtime.native.system.io.ports@8.0.0 +runtime.native.system.net.http@4.3.0 +runtime.native.system.security.cryptography.apple@4.3.0 +runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.native.system@4.3.0 +runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.osx-arm64.runtime.native.system.io.ports@8.0.0 +runtime.osx-x64.runtime.native.system.io.ports@8.0.0 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.unix.microsoft.win32.primitives@4.3.0 +runtime.unix.system.console@4.3.0 +runtime.unix.system.diagnostics.debug@4.3.0 +runtime.unix.system.io.filesystem@4.3.0 +runtime.unix.system.net.primitives@4.3.0 +runtime.unix.system.net.sockets@4.3.0 +runtime.unix.system.private.uri@4.3.0 +runtime.unix.system.runtime.extensions@4.3.0 +runtime.win-arm64.runtime.native.system.data.sqlclient.sni@4.4.0 +runtime.win-x64.runtime.native.system.data.sqlclient.sni@4.4.0 +runtime.win-x86.runtime.native.system.data.sqlclient.sni@4.4.0 +stylecop.analyzers.unstable@1.2.0.556 +stylecop.analyzers@1.2.0-beta.556 +system.appcontext@4.3.0 +system.buffers@4.3.0 +system.buffers@4.5.1 +system.codedom@8.0.0 +system.collections.concurrent@4.3.0 +system.collections.immutable@7.0.0 +system.collections@4.3.0 +system.componentmodel.composition.registration@8.0.0 +system.componentmodel.composition@8.0.0 +system.configuration.configurationmanager@8.0.0 +system.console@4.3.0 +system.data.odbc@8.0.0 +system.data.oledb@8.0.0 +system.data.sqlclient@4.8.6 +system.diagnostics.debug@4.3.0 +system.diagnostics.diagnosticsource@4.3.0 +system.diagnostics.diagnosticsource@8.0.0 +system.diagnostics.eventlog@8.0.0 +system.diagnostics.performancecounter@8.0.0 +system.diagnostics.tools@4.3.0 +system.diagnostics.tracing@4.3.0 +system.directoryservices.accountmanagement@8.0.0 +system.directoryservices.protocols@8.0.0 +system.directoryservices@8.0.0 +system.drawing.common@8.0.1 +system.formats.asn1@6.0.0 +system.formats.asn1@8.0.0 +system.globalization.calendars@4.3.0 +system.globalization.extensions@4.3.0 +system.globalization@4.3.0 +system.io.compression.zipfile@4.3.0 +system.io.compression@4.3.0 +system.io.filesystem.primitives@4.3.0 +system.io.filesystem@4.3.0 +system.io.packaging@8.0.0 +system.io.ports@8.0.0 +system.io@4.3.0 +system.linq.expressions@4.3.0 +system.linq@4.3.0 +system.management@8.0.0 +system.memory@4.5.5 +system.net.http.winhttphandler@8.0.0 +system.net.http@4.3.0 +system.net.nameresolution@4.3.0 +system.net.primitives@4.3.0 +system.net.sockets@4.3.0 +system.numerics.vectors@4.4.0 +system.numerics.vectors@4.5.0 +system.objectmodel@4.3.0 +system.private.servicemodel@4.10.3 +system.private.uri@4.3.0 +system.reflection.context@8.0.0 +system.reflection.dispatchproxy@4.7.1 +system.reflection.emit.ilgeneration@4.3.0 +system.reflection.emit.lightweight@4.3.0 +system.reflection.emit@4.3.0 +system.reflection.extensions@4.3.0 +system.reflection.metadata@1.6.0 +system.reflection.metadata@7.0.0 +system.reflection.primitives@4.3.0 +system.reflection.typeextensions@4.3.0 +system.reflection@4.3.0 +system.resources.resourcemanager@4.3.0 +system.runtime.caching@8.0.0 +system.runtime.compilerservices.unsafe@6.0.0 +system.runtime.extensions@4.3.0 +system.runtime.handles@4.3.0 +system.runtime.interopservices.runtimeinformation@4.3.0 +system.runtime.interopservices@4.3.0 +system.runtime.numerics@4.3.0 +system.runtime@4.3.0 +system.security.accesscontrol@4.7.0 +system.security.accesscontrol@6.0.0 +system.security.claims@4.3.0 +system.security.cryptography.algorithms@4.3.0 +system.security.cryptography.cng@4.3.0 +system.security.cryptography.csp@4.3.0 +system.security.cryptography.encoding@4.3.0 +system.security.cryptography.openssl@4.3.0 +system.security.cryptography.pkcs@6.0.1 +system.security.cryptography.pkcs@8.0.0 +system.security.cryptography.primitives@4.3.0 +system.security.cryptography.protecteddata@8.0.0 +system.security.cryptography.x509certificates@4.3.0 +system.security.cryptography.xml@6.0.1 +system.security.cryptography.xml@8.0.0 +system.security.permissions@8.0.0 +system.security.principal.windows@4.3.0 +system.security.principal.windows@4.7.0 +system.security.principal.windows@5.0.0 +system.security.principal@4.3.0 +system.servicemodel.duplex@4.10.3 +system.servicemodel.http@4.10.3 +system.servicemodel.nettcp@4.10.3 +system.servicemodel.primitives@4.10.3 +system.servicemodel.security@4.10.3 +system.servicemodel.syndication@8.0.0 +system.serviceprocess.servicecontroller@8.0.0 +system.speech@8.0.0 +system.text.encoding.codepages@7.0.0 +system.text.encoding.codepages@8.0.0 +system.text.encoding.extensions@4.3.0 +system.text.encoding@4.3.0 +system.text.encodings.web@6.0.0 +system.text.encodings.web@8.0.0 +system.text.json@6.0.9 +system.text.regularexpressions@4.3.0 +system.threading.accesscontrol@8.0.0 +system.threading.tasks.extensions@4.3.0 +system.threading.tasks.extensions@4.5.4 +system.threading.tasks@4.3.0 +system.threading.threadpool@4.3.0 +system.threading.timer@4.3.0 +system.threading@4.3.0 +system.web.services.description@4.10.3 +system.windows.extensions@8.0.0 +system.xml.readerwriter@4.3.0 +system.xml.xdocument@4.3.0 +validation@2.4.22 +xunit.abstractions@2.0.2 +xunit.abstractions@2.0.3 +xunit.analyzers@1.4.0 +xunit.assert@2.5.3 +xunit.core@2.5.3 +xunit.extensibility.core@2.4.0 +xunit.extensibility.core@2.5.3 +xunit.extensibility.execution@2.4.0 +xunit.extensibility.execution@2.5.3 +xunit.runner.visualstudio@2.5.6 +xunit.skippablefact@1.4.13 +xunit@2.5.3 +xunitxml.testlogger@3.1.17 +" + +# Additional PowerShell Gallery modules. +NUGETS+=" +microsoft.powershell.archive@1.2.5 +microsoft.powershell.psresourceget@1.0.1 +packagemanagement@1.4.8.1 +powershellget@2.2.5 +psreadline@2.3.4 +threadjob@2.0.3 +" + +inherit check-reqs desktop dotnet-pkg xdg-utils + +DESCRIPTION="Cross-platform automation and configuration tool" +HOMEPAGE="https://microsoft.com/powershell/ + https://github.com/PowerShell/PowerShell/" +SRC_URI=" + https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz + ${NUGET_URIS} +" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="amd64 arm arm64" +IUSE="gui" + +# TODO: "LibraryImports.g.cs", "PSVersionInfo.g.cs" not found. +RESTRICT="test" + +RDEPEND=" + >=dev-libs/libpsl-native-7.4.0:= + sys-libs/pam:0/0 + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:0/0 + ) + gui? ( + dev-util/desktop-file-utils + x11-misc/shared-mime-info + ) +" +DEPEND=" + ${RDEPEND} +" +IDEPEND=" + app-eselect/eselect-pwsh +" + +CHECKREQS_DISK_BUILD="2G" +DOTNET_PKG_PROJECTS=( + src/powershell-unix/powershell-unix.csproj + src/Modules/PSGalleryModules.csproj +) +PATCHES=( + "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" + "${FILESDIR}/pwsh-7.4.0-disable-telemetry.patch" +) + +DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) + +check_requirements_locale() { + if [[ "${MERGE_TYPE}" != binary ]] ; then + if use elibc_glibc ; then + local locales + locales="$(locale -a)" + + if has en_US.utf8 ${locales} ; then + LC_ALL=en_US.utf8 + elif has en_US.UTF-8 ${locales} ; then + LC_ALL=en_US.UTF-8 + else + eerror "The locale en_US.utf8 or en_US.UTF-8 is not available." + eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}." + + die "Could not switch to the en_US.UTF-8 locale." + fi + else + LC_ALL=en_US.UTF-8 + fi + + export LC_ALL + einfo "Successfully switched to the ${LC_ALL} locale." + fi +} + +gui_cache_update() { + if use gui ; then + xdg_icon_cache_update + xdg_desktop_database_update + fi +} + +pkg_pretend() { + check-reqs_pkg_pretend + + check_requirements_locale +} + +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup + + check_requirements_locale +} + +src_prepare() { + dotnet-pkg_src_prepare + + # This is guarded by "RegexGitVersion" in "PowerShell.Common.props". + local fake_describe="v${PV}-0-g0" + sed -i "s|git describe --abbrev=60 --long|echo ${fake_describe}|" \ + PowerShell.Common.props || die + + echo "v${PV}" > powershell.version || die +} + +src_compile() { + einfo 'Copying DLL files for the missing "ref" directory' + edotnet fsi "${FILESDIR}/pwsh-7.3.3-copy-ref.fsx" "${WORKDIR}/${P}_ref" + + dotnet-pkg_src_compile +} + +src_install() { + local dest_root="/usr/share/${PN}-${SLOT}" + + # Install additional PowerShell Gallery modules. + local -a psg_modules=( + Microsoft.PowerShell.Archive + Microsoft.PowerShell.PSResourceGet + PSReadLine + PackageManagement + PowerShellGet + ThreadJob + ) + local psg_module + for psg_module in "${psg_modules[@]}" ; do + insinto "${dest_root}/Modules/${psg_module}" + doins -r "${NUGET_PACKAGES}/${psg_module,,}"/* + done + + dotnet-pkg-base_append_launchervar \ + 'PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"' + dotnet-pkg-base_install "${dest_root}" + dotnet-pkg-base_dolauncher "${dest_root}/pwsh" "pwsh-${SLOT}" + + insinto "${dest_root}/ref" + doins "${WORKDIR}/${P}_ref"/* + + # Replace "libpsl-native.so" provided by "microsoft.powershell.native". + rm "${ED}/${dest_root}/libpsl-native.so" || die + dosym -r "/usr/$(get_libdir)/libpsl-native.so" "${dest_root}/libpsl-native.so" + + # On musl remove "libSystem.IO.Ports.Native.so" linked against glibc. + if ! use elibc_glibc ; then + ewarn "libSystem.IO.Ports.Native.so is available only for glibc, removing it" + rm "${ED}/${dest_root}/libSystem.IO.Ports.Native.so" || die + fi + + if use gui ; then + newicon assets/ps_black_128.svg "powershell-${SLOT}.svg" + make_desktop_entry "pwsh-${SLOT} -l" "PowerShell ${SLOT}" \ + "powershell-${SLOT}" "ConsoleOnly;System;" "Terminal=true" + fi + + einstalldocs +} + +pkg_postinst() { + gui_cache_update + + eselect pwsh update ifunset +} + +pkg_postrm() { + gui_cache_update + + eselect pwsh update ifunset +} diff --git a/app-shells/pwsh/pwsh-7.4.1.ebuild b/app-shells/pwsh/pwsh-7.4.1.ebuild deleted file mode 100644 index e2b5e1e380a4..000000000000 --- a/app-shells/pwsh/pwsh-7.4.1.ebuild +++ /dev/null @@ -1,411 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# NOTICE: Before packaging we have to run "ResGen" and "GetDependencies". -# See: https://git.alpinelinux.org/aports/tree/community/powershell/APKBUILD -# The repackaged tarball contains the C# code generated by that subproject. - -EAPI=8 - -DOTNET_PKG_COMPAT=8.0 -NUGET_APIS=( - "https://api.nuget.org/v3-flatcontainer" - "https://www.powershellgallery.com/api/v2" -) -NUGETS=" -dotnetanalyzers.documentationanalyzers.unstable@1.0.0.59 -dotnetanalyzers.documentationanalyzers@1.0.0-beta.59 -jetbrains.annotations@2021.2.0 -json.more.net@1.9.3 -jsonpointer.net@3.0.3 -jsonschema.net@5.2.7 -markdig.signed@0.33.0 -microsoft.applicationinsights@2.21.0 -microsoft.bcl.asyncinterfaces@5.0.0 -microsoft.codeanalysis.analyzers@3.3.4 -microsoft.codeanalysis.common@4.8.0 -microsoft.codeanalysis.csharp@4.8.0 -microsoft.codecoverage@17.7.2 -microsoft.extensions.objectpool@5.0.17 -microsoft.management.infrastructure.runtime.unix@3.0.0 -microsoft.management.infrastructure.runtime.win@3.0.0 -microsoft.management.infrastructure@3.0.0 -microsoft.net.test.sdk@17.7.2 -microsoft.netcore.platforms@1.1.0 -microsoft.netcore.platforms@1.1.2 -microsoft.netcore.platforms@3.1.0 -microsoft.netcore.targets@1.1.0 -microsoft.powershell.markdownrender@7.2.1 -microsoft.powershell.native@7.4.0 -microsoft.security.extensions@1.2.0 -microsoft.testplatform.objectmodel@17.7.2 -microsoft.testplatform.testhost@17.7.2 -microsoft.win32.primitives@4.3.0 -microsoft.win32.registry.accesscontrol@8.0.0 -microsoft.win32.registry@4.7.0 -microsoft.win32.systemevents@8.0.0 -microsoft.windows.compatibility@8.0.1 -netstandard.library@1.6.1 -netstandard.library@2.0.3 -newtonsoft.json@13.0.1 -newtonsoft.json@13.0.3 -nuget.frameworks@6.5.0 -runtime.any.system.collections@4.3.0 -runtime.any.system.diagnostics.tools@4.3.0 -runtime.any.system.diagnostics.tracing@4.3.0 -runtime.any.system.globalization.calendars@4.3.0 -runtime.any.system.globalization@4.3.0 -runtime.any.system.io@4.3.0 -runtime.any.system.reflection.extensions@4.3.0 -runtime.any.system.reflection.primitives@4.3.0 -runtime.any.system.reflection@4.3.0 -runtime.any.system.resources.resourcemanager@4.3.0 -runtime.any.system.runtime.handles@4.3.0 -runtime.any.system.runtime.interopservices@4.3.0 -runtime.any.system.runtime@4.3.0 -runtime.any.system.text.encoding.extensions@4.3.0 -runtime.any.system.text.encoding@4.3.0 -runtime.any.system.threading.tasks@4.3.0 -runtime.any.system.threading.timer@4.3.0 -runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.linux-arm.runtime.native.system.io.ports@8.0.0 -runtime.linux-arm64.runtime.native.system.io.ports@8.0.0 -runtime.linux-x64.runtime.native.system.io.ports@8.0.0 -runtime.native.system.data.sqlclient.sni@4.7.0 -runtime.native.system.io.compression@4.3.0 -runtime.native.system.io.ports@8.0.0 -runtime.native.system.net.http@4.3.0 -runtime.native.system.security.cryptography.apple@4.3.0 -runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.native.system@4.3.0 -runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.osx-arm64.runtime.native.system.io.ports@8.0.0 -runtime.osx-x64.runtime.native.system.io.ports@8.0.0 -runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0 -runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.unix.microsoft.win32.primitives@4.3.0 -runtime.unix.system.console@4.3.0 -runtime.unix.system.diagnostics.debug@4.3.0 -runtime.unix.system.io.filesystem@4.3.0 -runtime.unix.system.net.primitives@4.3.0 -runtime.unix.system.net.sockets@4.3.0 -runtime.unix.system.private.uri@4.3.0 -runtime.unix.system.runtime.extensions@4.3.0 -runtime.win-arm64.runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.win-x64.runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.win-x86.runtime.native.system.data.sqlclient.sni@4.4.0 -stylecop.analyzers.unstable@1.2.0.556 -stylecop.analyzers@1.2.0-beta.556 -system.appcontext@4.3.0 -system.buffers@4.3.0 -system.buffers@4.5.1 -system.codedom@8.0.0 -system.collections.concurrent@4.3.0 -system.collections.immutable@7.0.0 -system.collections@4.3.0 -system.componentmodel.composition.registration@8.0.0 -system.componentmodel.composition@8.0.0 -system.configuration.configurationmanager@8.0.0 -system.console@4.3.0 -system.data.odbc@8.0.0 -system.data.oledb@8.0.0 -system.data.sqlclient@4.8.6 -system.diagnostics.debug@4.3.0 -system.diagnostics.diagnosticsource@4.3.0 -system.diagnostics.diagnosticsource@8.0.0 -system.diagnostics.eventlog@8.0.0 -system.diagnostics.performancecounter@8.0.0 -system.diagnostics.tools@4.3.0 -system.diagnostics.tracing@4.3.0 -system.directoryservices.accountmanagement@8.0.0 -system.directoryservices.protocols@8.0.0 -system.directoryservices@8.0.0 -system.drawing.common@8.0.1 -system.formats.asn1@6.0.0 -system.formats.asn1@8.0.0 -system.globalization.calendars@4.3.0 -system.globalization.extensions@4.3.0 -system.globalization@4.3.0 -system.io.compression.zipfile@4.3.0 -system.io.compression@4.3.0 -system.io.filesystem.primitives@4.3.0 -system.io.filesystem@4.3.0 -system.io.packaging@8.0.0 -system.io.ports@8.0.0 -system.io@4.3.0 -system.linq.expressions@4.3.0 -system.linq@4.3.0 -system.management@8.0.0 -system.memory@4.5.5 -system.net.http.winhttphandler@8.0.0 -system.net.http@4.3.0 -system.net.nameresolution@4.3.0 -system.net.primitives@4.3.0 -system.net.sockets@4.3.0 -system.numerics.vectors@4.4.0 -system.numerics.vectors@4.5.0 -system.objectmodel@4.3.0 -system.private.servicemodel@4.10.3 -system.private.uri@4.3.0 -system.reflection.context@8.0.0 -system.reflection.dispatchproxy@4.7.1 -system.reflection.emit.ilgeneration@4.3.0 -system.reflection.emit.lightweight@4.3.0 -system.reflection.emit@4.3.0 -system.reflection.extensions@4.3.0 -system.reflection.metadata@1.6.0 -system.reflection.metadata@7.0.0 -system.reflection.primitives@4.3.0 -system.reflection.typeextensions@4.3.0 -system.reflection@4.3.0 -system.resources.resourcemanager@4.3.0 -system.runtime.caching@8.0.0 -system.runtime.compilerservices.unsafe@6.0.0 -system.runtime.extensions@4.3.0 -system.runtime.handles@4.3.0 -system.runtime.interopservices.runtimeinformation@4.3.0 -system.runtime.interopservices@4.3.0 -system.runtime.numerics@4.3.0 -system.runtime@4.3.0 -system.security.accesscontrol@4.7.0 -system.security.accesscontrol@6.0.0 -system.security.claims@4.3.0 -system.security.cryptography.algorithms@4.3.0 -system.security.cryptography.cng@4.3.0 -system.security.cryptography.csp@4.3.0 -system.security.cryptography.encoding@4.3.0 -system.security.cryptography.openssl@4.3.0 -system.security.cryptography.pkcs@6.0.1 -system.security.cryptography.pkcs@8.0.0 -system.security.cryptography.primitives@4.3.0 -system.security.cryptography.protecteddata@8.0.0 -system.security.cryptography.x509certificates@4.3.0 -system.security.cryptography.xml@6.0.1 -system.security.cryptography.xml@8.0.0 -system.security.permissions@8.0.0 -system.security.principal.windows@4.3.0 -system.security.principal.windows@4.7.0 -system.security.principal.windows@5.0.0 -system.security.principal@4.3.0 -system.servicemodel.duplex@4.10.3 -system.servicemodel.http@4.10.3 -system.servicemodel.nettcp@4.10.3 -system.servicemodel.primitives@4.10.3 -system.servicemodel.security@4.10.3 -system.servicemodel.syndication@8.0.0 -system.serviceprocess.servicecontroller@8.0.0 -system.speech@8.0.0 -system.text.encoding.codepages@7.0.0 -system.text.encoding.codepages@8.0.0 -system.text.encoding.extensions@4.3.0 -system.text.encoding@4.3.0 -system.text.encodings.web@6.0.0 -system.text.encodings.web@8.0.0 -system.text.json@6.0.9 -system.text.regularexpressions@4.3.0 -system.threading.accesscontrol@8.0.0 -system.threading.tasks.extensions@4.3.0 -system.threading.tasks.extensions@4.5.4 -system.threading.tasks@4.3.0 -system.threading.threadpool@4.3.0 -system.threading.timer@4.3.0 -system.threading@4.3.0 -system.web.services.description@4.10.3 -system.windows.extensions@8.0.0 -system.xml.readerwriter@4.3.0 -system.xml.xdocument@4.3.0 -validation@2.4.22 -xunit.abstractions@2.0.2 -xunit.abstractions@2.0.3 -xunit.analyzers@1.4.0 -xunit.assert@2.5.3 -xunit.core@2.5.3 -xunit.extensibility.core@2.4.0 -xunit.extensibility.core@2.5.3 -xunit.extensibility.execution@2.4.0 -xunit.extensibility.execution@2.5.3 -xunit.runner.visualstudio@2.5.6 -xunit.skippablefact@1.4.13 -xunit@2.5.3 -xunitxml.testlogger@3.1.17 -" - -# Additional PowerShell Gallery modules. -NUGETS+=" -microsoft.powershell.archive@1.2.5 -microsoft.powershell.psresourceget@1.0.1 -packagemanagement@1.4.8.1 -powershellget@2.2.5 -psreadline@2.3.4 -threadjob@2.0.3 -" - -inherit check-reqs desktop dotnet-pkg xdg-utils - -DESCRIPTION="Cross-platform automation and configuration tool" -HOMEPAGE="https://microsoft.com/powershell/ - https://github.com/PowerShell/PowerShell/" -SRC_URI=" - https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz - ${NUGET_URIS} -" - -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" -KEYWORDS="amd64 arm arm64" -IUSE="gui" - -# TODO: "LibraryImports.g.cs", "PSVersionInfo.g.cs" not found. -RESTRICT="test" - -RDEPEND=" - >=dev-libs/libpsl-native-7.4.0:= - sys-libs/pam:0/0 - || ( - dev-libs/openssl-compat:1.0.0 - =dev-libs/openssl-1.0*:0/0 - ) - gui? ( - dev-util/desktop-file-utils - x11-misc/shared-mime-info - ) -" -DEPEND=" - ${RDEPEND} -" -IDEPEND=" - app-eselect/eselect-pwsh -" - -CHECKREQS_DISK_BUILD="2G" -DOTNET_PKG_PROJECTS=( - src/powershell-unix/powershell-unix.csproj - src/Modules/PSGalleryModules.csproj -) -PATCHES=( - "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" - "${FILESDIR}/pwsh-7.4.0-disable-telemetry.patch" -) - -DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) - -check_requirements_locale() { - if [[ "${MERGE_TYPE}" != binary ]] ; then - if use elibc_glibc ; then - local locales - locales="$(locale -a)" - - if has en_US.utf8 ${locales} ; then - LC_ALL=en_US.utf8 - elif has en_US.UTF-8 ${locales} ; then - LC_ALL=en_US.UTF-8 - else - eerror "The locale en_US.utf8 or en_US.UTF-8 is not available." - eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}." - - die "Could not switch to the en_US.UTF-8 locale." - fi - else - LC_ALL=en_US.UTF-8 - fi - - export LC_ALL - einfo "Successfully switched to the ${LC_ALL} locale." - fi -} - -gui_cache_update() { - if use gui ; then - xdg_icon_cache_update - xdg_desktop_database_update - fi -} - -pkg_pretend() { - check-reqs_pkg_pretend - - check_requirements_locale -} - -pkg_setup() { - check-reqs_pkg_setup - dotnet-pkg_pkg_setup - - check_requirements_locale -} - -src_prepare() { - dotnet-pkg_src_prepare - - # This is guarded by "RegexGitVersion" in "PowerShell.Common.props". - local fake_describe="v${PV}-0-g0" - sed -i "s|git describe --abbrev=60 --long|echo ${fake_describe}|" \ - PowerShell.Common.props || die - - echo "v${PV}" > powershell.version || die -} - -src_compile() { - einfo 'Copying DLL files for the missing "ref" directory' - edotnet fsi "${FILESDIR}/pwsh-7.3.3-copy-ref.fsx" "${WORKDIR}/${P}_ref" - - dotnet-pkg_src_compile -} - -src_install() { - local dest_root="/usr/share/${PN}-${SLOT}" - - # Install additional PowerShell Gallery modules. - local -a psg_modules=( - Microsoft.PowerShell.Archive - Microsoft.PowerShell.PSResourceGet - PSReadLine - PackageManagement - PowerShellGet - ThreadJob - ) - local psg_module - for psg_module in "${psg_modules[@]}" ; do - insinto "${dest_root}/Modules/${psg_module}" - doins -r "${NUGET_PACKAGES}/${psg_module,,}"/* - done - - dotnet-pkg-base_append_launchervar \ - 'PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"' - dotnet-pkg-base_install "${dest_root}" - dotnet-pkg-base_dolauncher "${dest_root}/pwsh" "pwsh-${SLOT}" - - insinto "${dest_root}/ref" - doins "${WORKDIR}/${P}_ref"/* - - # Remove "libpsl-native.so" provided by "microsoft.powershell.native". - rm "${ED}/${dest_root}/libpsl-native.so" || die - dosym -r "/usr/$(get_libdir)/libpsl-native.so" "${dest_root}/libpsl-native.so" - - if use gui ; then - newicon assets/ps_black_128.svg "powershell-${SLOT}.svg" - make_desktop_entry "pwsh-${SLOT} -l" "PowerShell ${SLOT}" \ - "powershell-${SLOT}" "ConsoleOnly;System;" "Terminal=true" - fi - - einstalldocs -} - -pkg_postinst() { - gui_cache_update - - eselect pwsh update ifunset -} - -pkg_postrm() { - gui_cache_update - - eselect pwsh update ifunset -} diff --git a/app-shells/pwsh/pwsh-7.4.5-r1.ebuild b/app-shells/pwsh/pwsh-7.4.5-r1.ebuild new file mode 100644 index 000000000000..8cf2a585c24f --- /dev/null +++ b/app-shells/pwsh/pwsh-7.4.5-r1.ebuild @@ -0,0 +1,423 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTICE: Before packaging we have to run "ResGen" and "GetDependencies". +# See: https://git.alpinelinux.org/aports/tree/community/powershell/APKBUILD +# The repackaged tarball contains the C# code generated by that subproject. + +EAPI=8 + +DOTNET_PKG_COMPAT=8.0 +NUGET_APIS=( + "https://api.nuget.org/v3-flatcontainer" + "https://www.powershellgallery.com/api/v2" +) +NUGETS=" +dotnetanalyzers.documentationanalyzers.unstable@1.0.0.59 +dotnetanalyzers.documentationanalyzers@1.0.0-beta.59 +jetbrains.annotations@2021.2.0 +json.more.net@1.9.3 +jsonpointer.net@3.0.3 +jsonschema.net@5.2.7 +markdig.signed@0.33.0 +microsoft.applicationinsights@2.21.0 +microsoft.bcl.asyncinterfaces@8.0.0 +microsoft.codeanalysis.analyzers@3.3.4 +microsoft.codeanalysis.common@4.8.0 +microsoft.codeanalysis.common@4.9.2 +microsoft.codeanalysis.csharp@4.8.0 +microsoft.codeanalysis.csharp@4.9.2 +microsoft.codecoverage@17.7.2 +microsoft.extensions.objectpool@8.0.8 +microsoft.management.infrastructure.runtime.unix@3.0.0 +microsoft.management.infrastructure.runtime.win@3.0.0 +microsoft.management.infrastructure@3.0.0 +microsoft.net.test.sdk@17.7.2 +microsoft.netcore.platforms@1.1.0 +microsoft.netcore.platforms@1.1.2 +microsoft.netcore.platforms@3.1.0 +microsoft.netcore.targets@1.1.0 +microsoft.powershell.markdownrender@7.2.1 +microsoft.powershell.native@7.4.0 +microsoft.security.extensions@1.2.0 +microsoft.testplatform.objectmodel@17.7.2 +microsoft.testplatform.testhost@17.7.2 +microsoft.win32.primitives@4.3.0 +microsoft.win32.registry.accesscontrol@8.0.0 +microsoft.win32.registry@4.7.0 +microsoft.win32.systemevents@8.0.0 +microsoft.windows.compatibility@8.0.8 +netstandard.library@1.6.1 +netstandard.library@2.0.3 +newtonsoft.json@13.0.1 +newtonsoft.json@13.0.3 +nuget.frameworks@6.5.0 +runtime.any.system.collections@4.3.0 +runtime.any.system.diagnostics.tools@4.3.0 +runtime.any.system.diagnostics.tracing@4.3.0 +runtime.any.system.globalization.calendars@4.3.0 +runtime.any.system.globalization@4.3.0 +runtime.any.system.io@4.3.0 +runtime.any.system.reflection.extensions@4.3.0 +runtime.any.system.reflection.primitives@4.3.0 +runtime.any.system.reflection@4.3.0 +runtime.any.system.resources.resourcemanager@4.3.0 +runtime.any.system.runtime.handles@4.3.0 +runtime.any.system.runtime.interopservices@4.3.0 +runtime.any.system.runtime@4.3.0 +runtime.any.system.text.encoding.extensions@4.3.0 +runtime.any.system.text.encoding@4.3.0 +runtime.any.system.threading.tasks@4.3.0 +runtime.any.system.threading.timer@4.3.0 +runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.linux-arm.runtime.native.system.io.ports@8.0.0 +runtime.linux-arm64.runtime.native.system.io.ports@8.0.0 +runtime.linux-x64.runtime.native.system.io.ports@8.0.0 +runtime.native.system.data.sqlclient.sni@4.7.0 +runtime.native.system.io.compression@4.3.0 +runtime.native.system.io.ports@8.0.0 +runtime.native.system.net.http@4.3.0 +runtime.native.system.security.cryptography.apple@4.3.0 +runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.native.system@4.3.0 +runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.osx-arm64.runtime.native.system.io.ports@8.0.0 +runtime.osx-x64.runtime.native.system.io.ports@8.0.0 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.unix.microsoft.win32.primitives@4.3.0 +runtime.unix.system.console@4.3.0 +runtime.unix.system.diagnostics.debug@4.3.0 +runtime.unix.system.io.filesystem@4.3.0 +runtime.unix.system.net.primitives@4.3.0 +runtime.unix.system.net.sockets@4.3.0 +runtime.unix.system.private.uri@4.3.0 +runtime.unix.system.runtime.extensions@4.3.0 +runtime.win-arm64.runtime.native.system.data.sqlclient.sni@4.4.0 +runtime.win-x64.runtime.native.system.data.sqlclient.sni@4.4.0 +runtime.win-x86.runtime.native.system.data.sqlclient.sni@4.4.0 +stylecop.analyzers.unstable@1.2.0.556 +stylecop.analyzers@1.2.0-beta.556 +system.appcontext@4.3.0 +system.buffers@4.3.0 +system.buffers@4.5.1 +system.codedom@8.0.0 +system.collections.concurrent@4.3.0 +system.collections.immutable@7.0.0 +system.collections.immutable@8.0.0 +system.collections@4.3.0 +system.componentmodel.composition.registration@8.0.0 +system.componentmodel.composition@8.0.0 +system.configuration.configurationmanager@8.0.0 +system.console@4.3.0 +system.data.odbc@8.0.0 +system.data.oledb@8.0.0 +system.data.sqlclient@4.8.6 +system.diagnostics.debug@4.3.0 +system.diagnostics.diagnosticsource@4.3.0 +system.diagnostics.diagnosticsource@8.0.1 +system.diagnostics.eventlog@8.0.0 +system.diagnostics.performancecounter@8.0.0 +system.diagnostics.tools@4.3.0 +system.diagnostics.tracing@4.3.0 +system.directoryservices.accountmanagement@8.0.0 +system.directoryservices.protocols@8.0.0 +system.directoryservices@8.0.0 +system.drawing.common@8.0.8 +system.formats.asn1@6.0.0 +system.formats.asn1@8.0.0 +system.formats.asn1@8.0.1 +system.globalization.calendars@4.3.0 +system.globalization.extensions@4.3.0 +system.globalization@4.3.0 +system.io.compression.zipfile@4.3.0 +system.io.compression@4.3.0 +system.io.filesystem.primitives@4.3.0 +system.io.filesystem@4.3.0 +system.io.packaging@8.0.0 +system.io.ports@8.0.0 +system.io@4.3.0 +system.linq.expressions@4.3.0 +system.linq@4.3.0 +system.management@8.0.0 +system.memory@4.5.5 +system.net.http.winhttphandler@8.0.2 +system.net.http@4.3.0 +system.net.nameresolution@4.3.0 +system.net.primitives@4.3.0 +system.net.sockets@4.3.0 +system.numerics.vectors@4.4.0 +system.numerics.vectors@4.5.0 +system.objectmodel@4.3.0 +system.private.servicemodel@4.10.3 +system.private.uri@4.3.0 +system.reflection.context@8.0.0 +system.reflection.dispatchproxy@4.7.1 +system.reflection.emit.ilgeneration@4.3.0 +system.reflection.emit.lightweight@4.3.0 +system.reflection.emit@4.3.0 +system.reflection.extensions@4.3.0 +system.reflection.metadata@1.6.0 +system.reflection.metadata@7.0.0 +system.reflection.metadata@8.0.0 +system.reflection.primitives@4.3.0 +system.reflection.typeextensions@4.3.0 +system.reflection@4.3.0 +system.resources.resourcemanager@4.3.0 +system.runtime.caching@8.0.0 +system.runtime.compilerservices.unsafe@6.0.0 +system.runtime.extensions@4.3.0 +system.runtime.handles@4.3.0 +system.runtime.interopservices.runtimeinformation@4.3.0 +system.runtime.interopservices@4.3.0 +system.runtime.numerics@4.3.0 +system.runtime@4.3.0 +system.security.accesscontrol@4.7.0 +system.security.accesscontrol@6.0.0 +system.security.accesscontrol@6.0.1 +system.security.claims@4.3.0 +system.security.cryptography.algorithms@4.3.0 +system.security.cryptography.cng@4.3.0 +system.security.cryptography.csp@4.3.0 +system.security.cryptography.encoding@4.3.0 +system.security.cryptography.openssl@4.3.0 +system.security.cryptography.pkcs@6.0.1 +system.security.cryptography.pkcs@8.0.0 +system.security.cryptography.primitives@4.3.0 +system.security.cryptography.protecteddata@8.0.0 +system.security.cryptography.x509certificates@4.3.0 +system.security.cryptography.xml@6.0.1 +system.security.cryptography.xml@8.0.1 +system.security.permissions@8.0.0 +system.security.principal.windows@4.3.0 +system.security.principal.windows@4.7.0 +system.security.principal.windows@5.0.0 +system.security.principal@4.3.0 +system.servicemodel.duplex@4.10.3 +system.servicemodel.http@4.10.3 +system.servicemodel.nettcp@4.10.3 +system.servicemodel.primitives@4.10.3 +system.servicemodel.security@4.10.3 +system.servicemodel.syndication@8.0.0 +system.serviceprocess.servicecontroller@8.0.0 +system.speech@8.0.0 +system.text.encoding.codepages@7.0.0 +system.text.encoding.codepages@8.0.0 +system.text.encoding.extensions@4.3.0 +system.text.encoding@4.3.0 +system.text.encodings.web@8.0.0 +system.text.json@8.0.4 +system.text.regularexpressions@4.3.0 +system.threading.accesscontrol@8.0.0 +system.threading.tasks.extensions@4.3.0 +system.threading.tasks.extensions@4.5.4 +system.threading.tasks@4.3.0 +system.threading.threadpool@4.3.0 +system.threading.timer@4.3.0 +system.threading@4.3.0 +system.web.services.description@4.10.3 +system.windows.extensions@8.0.0 +system.xml.readerwriter@4.3.0 +system.xml.xdocument@4.3.0 +validation@2.4.22 +xunit.abstractions@2.0.2 +xunit.abstractions@2.0.3 +xunit.analyzers@1.4.0 +xunit.assert@2.5.3 +xunit.core@2.5.3 +xunit.extensibility.core@2.4.0 +xunit.extensibility.core@2.5.3 +xunit.extensibility.execution@2.4.0 +xunit.extensibility.execution@2.5.3 +xunit.runner.visualstudio@2.5.8 +xunit.skippablefact@1.4.13 +xunit@2.5.3 +xunitxml.testlogger@3.1.20 +" + +# Additional PowerShell Gallery modules. +NUGETS+=" +microsoft.powershell.archive@1.2.5 +microsoft.powershell.psresourceget@1.0.4.1 +packagemanagement@1.4.8.1 +powershellget@2.2.5 +psreadline@2.3.5 +threadjob@2.0.3 +" + +inherit check-reqs desktop dotnet-pkg xdg-utils + +DESCRIPTION="Cross-platform automation and configuration tool" +HOMEPAGE="https://microsoft.com/powershell/ + https://github.com/PowerShell/PowerShell/" +SRC_URI=" + https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz + ${NUGET_URIS} +" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="gui" + +# TODO: "LibraryImports.g.cs", "PSVersionInfo.g.cs" not found. +RESTRICT="test" + +RDEPEND=" + >=dev-libs/libpsl-native-7.4.0:= + sys-libs/pam:0/0 + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:0/0 + ) + gui? ( + dev-util/desktop-file-utils + x11-misc/shared-mime-info + ) +" +DEPEND=" + ${RDEPEND} +" +IDEPEND=" + app-eselect/eselect-pwsh +" + +CHECKREQS_DISK_BUILD="2G" +DOTNET_PKG_PROJECTS=( + src/powershell-unix/powershell-unix.csproj + src/Modules/PSGalleryModules.csproj +) +PATCHES=( + "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" + "${FILESDIR}/pwsh-7.4.0-disable-telemetry.patch" + "${FILESDIR}/pwsh-7.4.5-downgrade-codeanalysis.patch" +) + +DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) + +check_requirements_locale() { + if [[ "${MERGE_TYPE}" != binary ]] ; then + if use elibc_glibc ; then + local locales + locales="$(locale -a)" + + if has en_US.utf8 ${locales} ; then + LC_ALL=en_US.utf8 + elif has en_US.UTF-8 ${locales} ; then + LC_ALL=en_US.UTF-8 + else + eerror "The locale en_US.utf8 or en_US.UTF-8 is not available." + eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}." + + die "Could not switch to the en_US.UTF-8 locale." + fi + else + LC_ALL=en_US.UTF-8 + fi + + export LC_ALL + einfo "Successfully switched to the ${LC_ALL} locale." + fi +} + +gui_cache_update() { + if use gui ; then + xdg_icon_cache_update + xdg_desktop_database_update + fi +} + +pkg_pretend() { + check-reqs_pkg_pretend + + check_requirements_locale +} + +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup + + check_requirements_locale +} + +src_prepare() { + dotnet-pkg_src_prepare + + # This is guarded by "RegexGitVersion" in "PowerShell.Common.props". + local fake_describe="v${PV}-0-g0" + sed -i "s|git describe --abbrev=60 --long|echo ${fake_describe}|" \ + PowerShell.Common.props || die + + echo "v${PV}" > powershell.version || die +} + +src_compile() { + einfo 'Copying DLL files for the missing "ref" directory' + edotnet fsi "${FILESDIR}/pwsh-7.3.3-copy-ref.fsx" "${WORKDIR}/${P}_ref" + + dotnet-pkg_src_compile +} + +src_install() { + local dest_root="/usr/share/${PN}-${SLOT}" + + # Install additional PowerShell Gallery modules. + local -a psg_modules=( + Microsoft.PowerShell.Archive + Microsoft.PowerShell.PSResourceGet + PSReadLine + PackageManagement + PowerShellGet + ThreadJob + ) + local psg_module + for psg_module in "${psg_modules[@]}" ; do + insinto "${dest_root}/Modules/${psg_module}" + doins -r "${NUGET_PACKAGES}/${psg_module,,}"/* + done + + dotnet-pkg-base_append_launchervar \ + 'PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"' + dotnet-pkg-base_install "${dest_root}" + dotnet-pkg-base_dolauncher "${dest_root}/pwsh" "pwsh-${SLOT}" + + insinto "${dest_root}/ref" + doins "${WORKDIR}/${P}_ref"/* + + # Replace "libpsl-native.so" provided by "microsoft.powershell.native". + rm "${ED}/${dest_root}/libpsl-native.so" || die + dosym -r "/usr/$(get_libdir)/libpsl-native.so" "${dest_root}/libpsl-native.so" + + # On musl remove "libSystem.IO.Ports.Native.so" linked against glibc. + if ! use elibc_glibc ; then + ewarn "libSystem.IO.Ports.Native.so is available only for glibc, removing it" + rm "${ED}/${dest_root}/libSystem.IO.Ports.Native.so" || die + fi + + if use gui ; then + newicon assets/ps_black_128.svg "powershell-${SLOT}.svg" + make_desktop_entry "pwsh-${SLOT} -l" "PowerShell ${SLOT}" \ + "powershell-${SLOT}" "ConsoleOnly;System;" "Terminal=true" + fi + + einstalldocs +} + +pkg_postinst() { + gui_cache_update + + eselect pwsh update ifunset +} + +pkg_postrm() { + gui_cache_update + + eselect pwsh update ifunset +} diff --git a/app-shells/pwsh/pwsh-7.4.5.ebuild b/app-shells/pwsh/pwsh-7.4.5.ebuild deleted file mode 100644 index 8417ef5ac9f1..000000000000 --- a/app-shells/pwsh/pwsh-7.4.5.ebuild +++ /dev/null @@ -1,417 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# NOTICE: Before packaging we have to run "ResGen" and "GetDependencies". -# See: https://git.alpinelinux.org/aports/tree/community/powershell/APKBUILD -# The repackaged tarball contains the C# code generated by that subproject. - -EAPI=8 - -DOTNET_PKG_COMPAT=8.0 -NUGET_APIS=( - "https://api.nuget.org/v3-flatcontainer" - "https://www.powershellgallery.com/api/v2" -) -NUGETS=" -dotnetanalyzers.documentationanalyzers.unstable@1.0.0.59 -dotnetanalyzers.documentationanalyzers@1.0.0-beta.59 -jetbrains.annotations@2021.2.0 -json.more.net@1.9.3 -jsonpointer.net@3.0.3 -jsonschema.net@5.2.7 -markdig.signed@0.33.0 -microsoft.applicationinsights@2.21.0 -microsoft.bcl.asyncinterfaces@8.0.0 -microsoft.codeanalysis.analyzers@3.3.4 -microsoft.codeanalysis.common@4.8.0 -microsoft.codeanalysis.common@4.9.2 -microsoft.codeanalysis.csharp@4.8.0 -microsoft.codeanalysis.csharp@4.9.2 -microsoft.codecoverage@17.7.2 -microsoft.extensions.objectpool@8.0.8 -microsoft.management.infrastructure.runtime.unix@3.0.0 -microsoft.management.infrastructure.runtime.win@3.0.0 -microsoft.management.infrastructure@3.0.0 -microsoft.net.test.sdk@17.7.2 -microsoft.netcore.platforms@1.1.0 -microsoft.netcore.platforms@1.1.2 -microsoft.netcore.platforms@3.1.0 -microsoft.netcore.targets@1.1.0 -microsoft.powershell.markdownrender@7.2.1 -microsoft.powershell.native@7.4.0 -microsoft.security.extensions@1.2.0 -microsoft.testplatform.objectmodel@17.7.2 -microsoft.testplatform.testhost@17.7.2 -microsoft.win32.primitives@4.3.0 -microsoft.win32.registry.accesscontrol@8.0.0 -microsoft.win32.registry@4.7.0 -microsoft.win32.systemevents@8.0.0 -microsoft.windows.compatibility@8.0.8 -netstandard.library@1.6.1 -netstandard.library@2.0.3 -newtonsoft.json@13.0.1 -newtonsoft.json@13.0.3 -nuget.frameworks@6.5.0 -runtime.any.system.collections@4.3.0 -runtime.any.system.diagnostics.tools@4.3.0 -runtime.any.system.diagnostics.tracing@4.3.0 -runtime.any.system.globalization.calendars@4.3.0 -runtime.any.system.globalization@4.3.0 -runtime.any.system.io@4.3.0 -runtime.any.system.reflection.extensions@4.3.0 -runtime.any.system.reflection.primitives@4.3.0 -runtime.any.system.reflection@4.3.0 -runtime.any.system.resources.resourcemanager@4.3.0 -runtime.any.system.runtime.handles@4.3.0 -runtime.any.system.runtime.interopservices@4.3.0 -runtime.any.system.runtime@4.3.0 -runtime.any.system.text.encoding.extensions@4.3.0 -runtime.any.system.text.encoding@4.3.0 -runtime.any.system.threading.tasks@4.3.0 -runtime.any.system.threading.timer@4.3.0 -runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.linux-arm.runtime.native.system.io.ports@8.0.0 -runtime.linux-arm64.runtime.native.system.io.ports@8.0.0 -runtime.linux-x64.runtime.native.system.io.ports@8.0.0 -runtime.native.system.data.sqlclient.sni@4.7.0 -runtime.native.system.io.compression@4.3.0 -runtime.native.system.io.ports@8.0.0 -runtime.native.system.net.http@4.3.0 -runtime.native.system.security.cryptography.apple@4.3.0 -runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.native.system@4.3.0 -runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.osx-arm64.runtime.native.system.io.ports@8.0.0 -runtime.osx-x64.runtime.native.system.io.ports@8.0.0 -runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0 -runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 -runtime.unix.microsoft.win32.primitives@4.3.0 -runtime.unix.system.console@4.3.0 -runtime.unix.system.diagnostics.debug@4.3.0 -runtime.unix.system.io.filesystem@4.3.0 -runtime.unix.system.net.primitives@4.3.0 -runtime.unix.system.net.sockets@4.3.0 -runtime.unix.system.private.uri@4.3.0 -runtime.unix.system.runtime.extensions@4.3.0 -runtime.win-arm64.runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.win-x64.runtime.native.system.data.sqlclient.sni@4.4.0 -runtime.win-x86.runtime.native.system.data.sqlclient.sni@4.4.0 -stylecop.analyzers.unstable@1.2.0.556 -stylecop.analyzers@1.2.0-beta.556 -system.appcontext@4.3.0 -system.buffers@4.3.0 -system.buffers@4.5.1 -system.codedom@8.0.0 -system.collections.concurrent@4.3.0 -system.collections.immutable@7.0.0 -system.collections.immutable@8.0.0 -system.collections@4.3.0 -system.componentmodel.composition.registration@8.0.0 -system.componentmodel.composition@8.0.0 -system.configuration.configurationmanager@8.0.0 -system.console@4.3.0 -system.data.odbc@8.0.0 -system.data.oledb@8.0.0 -system.data.sqlclient@4.8.6 -system.diagnostics.debug@4.3.0 -system.diagnostics.diagnosticsource@4.3.0 -system.diagnostics.diagnosticsource@8.0.1 -system.diagnostics.eventlog@8.0.0 -system.diagnostics.performancecounter@8.0.0 -system.diagnostics.tools@4.3.0 -system.diagnostics.tracing@4.3.0 -system.directoryservices.accountmanagement@8.0.0 -system.directoryservices.protocols@8.0.0 -system.directoryservices@8.0.0 -system.drawing.common@8.0.8 -system.formats.asn1@6.0.0 -system.formats.asn1@8.0.0 -system.formats.asn1@8.0.1 -system.globalization.calendars@4.3.0 -system.globalization.extensions@4.3.0 -system.globalization@4.3.0 -system.io.compression.zipfile@4.3.0 -system.io.compression@4.3.0 -system.io.filesystem.primitives@4.3.0 -system.io.filesystem@4.3.0 -system.io.packaging@8.0.0 -system.io.ports@8.0.0 -system.io@4.3.0 -system.linq.expressions@4.3.0 -system.linq@4.3.0 -system.management@8.0.0 -system.memory@4.5.5 -system.net.http.winhttphandler@8.0.2 -system.net.http@4.3.0 -system.net.nameresolution@4.3.0 -system.net.primitives@4.3.0 -system.net.sockets@4.3.0 -system.numerics.vectors@4.4.0 -system.numerics.vectors@4.5.0 -system.objectmodel@4.3.0 -system.private.servicemodel@4.10.3 -system.private.uri@4.3.0 -system.reflection.context@8.0.0 -system.reflection.dispatchproxy@4.7.1 -system.reflection.emit.ilgeneration@4.3.0 -system.reflection.emit.lightweight@4.3.0 -system.reflection.emit@4.3.0 -system.reflection.extensions@4.3.0 -system.reflection.metadata@1.6.0 -system.reflection.metadata@7.0.0 -system.reflection.metadata@8.0.0 -system.reflection.primitives@4.3.0 -system.reflection.typeextensions@4.3.0 -system.reflection@4.3.0 -system.resources.resourcemanager@4.3.0 -system.runtime.caching@8.0.0 -system.runtime.compilerservices.unsafe@6.0.0 -system.runtime.extensions@4.3.0 -system.runtime.handles@4.3.0 -system.runtime.interopservices.runtimeinformation@4.3.0 -system.runtime.interopservices@4.3.0 -system.runtime.numerics@4.3.0 -system.runtime@4.3.0 -system.security.accesscontrol@4.7.0 -system.security.accesscontrol@6.0.0 -system.security.accesscontrol@6.0.1 -system.security.claims@4.3.0 -system.security.cryptography.algorithms@4.3.0 -system.security.cryptography.cng@4.3.0 -system.security.cryptography.csp@4.3.0 -system.security.cryptography.encoding@4.3.0 -system.security.cryptography.openssl@4.3.0 -system.security.cryptography.pkcs@6.0.1 -system.security.cryptography.pkcs@8.0.0 -system.security.cryptography.primitives@4.3.0 -system.security.cryptography.protecteddata@8.0.0 -system.security.cryptography.x509certificates@4.3.0 -system.security.cryptography.xml@6.0.1 -system.security.cryptography.xml@8.0.1 -system.security.permissions@8.0.0 -system.security.principal.windows@4.3.0 -system.security.principal.windows@4.7.0 -system.security.principal.windows@5.0.0 -system.security.principal@4.3.0 -system.servicemodel.duplex@4.10.3 -system.servicemodel.http@4.10.3 -system.servicemodel.nettcp@4.10.3 -system.servicemodel.primitives@4.10.3 -system.servicemodel.security@4.10.3 -system.servicemodel.syndication@8.0.0 -system.serviceprocess.servicecontroller@8.0.0 -system.speech@8.0.0 -system.text.encoding.codepages@7.0.0 -system.text.encoding.codepages@8.0.0 -system.text.encoding.extensions@4.3.0 -system.text.encoding@4.3.0 -system.text.encodings.web@8.0.0 -system.text.json@8.0.4 -system.text.regularexpressions@4.3.0 -system.threading.accesscontrol@8.0.0 -system.threading.tasks.extensions@4.3.0 -system.threading.tasks.extensions@4.5.4 -system.threading.tasks@4.3.0 -system.threading.threadpool@4.3.0 -system.threading.timer@4.3.0 -system.threading@4.3.0 -system.web.services.description@4.10.3 -system.windows.extensions@8.0.0 -system.xml.readerwriter@4.3.0 -system.xml.xdocument@4.3.0 -validation@2.4.22 -xunit.abstractions@2.0.2 -xunit.abstractions@2.0.3 -xunit.analyzers@1.4.0 -xunit.assert@2.5.3 -xunit.core@2.5.3 -xunit.extensibility.core@2.4.0 -xunit.extensibility.core@2.5.3 -xunit.extensibility.execution@2.4.0 -xunit.extensibility.execution@2.5.3 -xunit.runner.visualstudio@2.5.8 -xunit.skippablefact@1.4.13 -xunit@2.5.3 -xunitxml.testlogger@3.1.20 -" - -# Additional PowerShell Gallery modules. -NUGETS+=" -microsoft.powershell.archive@1.2.5 -microsoft.powershell.psresourceget@1.0.4.1 -packagemanagement@1.4.8.1 -powershellget@2.2.5 -psreadline@2.3.5 -threadjob@2.0.3 -" - -inherit check-reqs desktop dotnet-pkg xdg-utils - -DESCRIPTION="Cross-platform automation and configuration tool" -HOMEPAGE="https://microsoft.com/powershell/ - https://github.com/PowerShell/PowerShell/" -SRC_URI=" - https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz - ${NUGET_URIS} -" - -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~arm ~arm64" -IUSE="gui" - -# TODO: "LibraryImports.g.cs", "PSVersionInfo.g.cs" not found. -RESTRICT="test" - -RDEPEND=" - >=dev-libs/libpsl-native-7.4.0:= - sys-libs/pam:0/0 - || ( - dev-libs/openssl-compat:1.0.0 - =dev-libs/openssl-1.0*:0/0 - ) - gui? ( - dev-util/desktop-file-utils - x11-misc/shared-mime-info - ) -" -DEPEND=" - ${RDEPEND} -" -IDEPEND=" - app-eselect/eselect-pwsh -" - -CHECKREQS_DISK_BUILD="2G" -DOTNET_PKG_PROJECTS=( - src/powershell-unix/powershell-unix.csproj - src/Modules/PSGalleryModules.csproj -) -PATCHES=( - "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" - "${FILESDIR}/pwsh-7.4.0-disable-telemetry.patch" - "${FILESDIR}/pwsh-7.4.5-downgrade-codeanalysis.patch" -) - -DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) - -check_requirements_locale() { - if [[ "${MERGE_TYPE}" != binary ]] ; then - if use elibc_glibc ; then - local locales - locales="$(locale -a)" - - if has en_US.utf8 ${locales} ; then - LC_ALL=en_US.utf8 - elif has en_US.UTF-8 ${locales} ; then - LC_ALL=en_US.UTF-8 - else - eerror "The locale en_US.utf8 or en_US.UTF-8 is not available." - eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}." - - die "Could not switch to the en_US.UTF-8 locale." - fi - else - LC_ALL=en_US.UTF-8 - fi - - export LC_ALL - einfo "Successfully switched to the ${LC_ALL} locale." - fi -} - -gui_cache_update() { - if use gui ; then - xdg_icon_cache_update - xdg_desktop_database_update - fi -} - -pkg_pretend() { - check-reqs_pkg_pretend - - check_requirements_locale -} - -pkg_setup() { - check-reqs_pkg_setup - dotnet-pkg_pkg_setup - - check_requirements_locale -} - -src_prepare() { - dotnet-pkg_src_prepare - - # This is guarded by "RegexGitVersion" in "PowerShell.Common.props". - local fake_describe="v${PV}-0-g0" - sed -i "s|git describe --abbrev=60 --long|echo ${fake_describe}|" \ - PowerShell.Common.props || die - - echo "v${PV}" > powershell.version || die -} - -src_compile() { - einfo 'Copying DLL files for the missing "ref" directory' - edotnet fsi "${FILESDIR}/pwsh-7.3.3-copy-ref.fsx" "${WORKDIR}/${P}_ref" - - dotnet-pkg_src_compile -} - -src_install() { - local dest_root="/usr/share/${PN}-${SLOT}" - - # Install additional PowerShell Gallery modules. - local -a psg_modules=( - Microsoft.PowerShell.Archive - Microsoft.PowerShell.PSResourceGet - PSReadLine - PackageManagement - PowerShellGet - ThreadJob - ) - local psg_module - for psg_module in "${psg_modules[@]}" ; do - insinto "${dest_root}/Modules/${psg_module}" - doins -r "${NUGET_PACKAGES}/${psg_module,,}"/* - done - - dotnet-pkg-base_append_launchervar \ - 'PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"' - dotnet-pkg-base_install "${dest_root}" - dotnet-pkg-base_dolauncher "${dest_root}/pwsh" "pwsh-${SLOT}" - - insinto "${dest_root}/ref" - doins "${WORKDIR}/${P}_ref"/* - - # Remove "libpsl-native.so" provided by "microsoft.powershell.native". - rm "${ED}/${dest_root}/libpsl-native.so" || die - dosym -r "/usr/$(get_libdir)/libpsl-native.so" "${dest_root}/libpsl-native.so" - - if use gui ; then - newicon assets/ps_black_128.svg "powershell-${SLOT}.svg" - make_desktop_entry "pwsh-${SLOT} -l" "PowerShell ${SLOT}" \ - "powershell-${SLOT}" "ConsoleOnly;System;" "Terminal=true" - fi - - einstalldocs -} - -pkg_postinst() { - gui_cache_update - - eselect pwsh update ifunset -} - -pkg_postrm() { - gui_cache_update - - eselect pwsh update ifunset -} -- cgit v1.2.3