mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-shells/pwsh: bump to 7.6.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -67,6 +67,7 @@ DIST psreadline.2.3.6.nupkg 247102 BLAKE2B 7505783d075c47d4a700e0e820600c35ca143
|
||||
DIST psreadline.2.4.5.nupkg 234360 BLAKE2B 660472d53b20afbcc4058588b56ae562a0b09adead904cbcbc439ab6e82a06b0525faf6933c41d00b41af2681f22b82630721714cf700a5f9000f68598addcdd SHA512 240d7487d21f9cef419fd4e04b613ade1c5c86ade37b357d5acbab8ec63d0c0b6bad1676aac11fd168abd0cfd0f4de4d1fdc1de3c1c48289b57b5a3f05d7222c
|
||||
DIST pwsh-7.5.5.repackaged.tar.xz 9388544 BLAKE2B fb1a5a74a58000d5be7ebfa59ebbcb222f662ea68cd701f79493b2fe51198286aad657114beddbfded35e6f8b2753ca21b6139f86721aca72418e30a15f0ded1 SHA512 a27c1e23950ec58965294654682bc27404a08bac9eb31804ade459242b846012222c5857d752254b837beec61d5fbda0923cd119b99f32a1dabb52e50f8916ce
|
||||
DIST pwsh-7.6.0.repackaged.tar.xz 9442772 BLAKE2B 814da0f09d549833e51a854db56803630aed1e10b5e38436ff94db74e0870efbdb48c081c23927c743f17b65a8eb3c1cd4716611deccb39e3709127ec4f645db SHA512 56ab8ab8f777d4380fd398f88e2a6f2e9dbdde018128fc1e488c388068447ca14b8ca14a3a9d34ad7fce9904d3d4f47f7aad65d1ab79d5243f55d21eeffa7900
|
||||
DIST pwsh-7.6.1.repackaged.tar.xz 8915972 BLAKE2B 45fa6f2dd7652d3c94108c0c45ef0f1e1563363bb3fb81835774b361767827935ad8eda50fee60a084382d104f7276e069a6efe9ac6fd067a5c4a4b47c728b60 SHA512 10650bb95d3ce974e5e4f9a7dcdbbbc2b47eaaddd0bcfae98e75f268890103a3630db1377ec3ff454f10113ea53d9bc1eb46827a81a29db6358d4ee76d1cabe9
|
||||
DIST runtime.android-arm.runtime.native.system.io.ports.10.0.5.nupkg 51511 BLAKE2B 19f6bd3cd5b91987563e8fbaa12833cf981695e336efc104ed1cb327ed3e249f1cefa4579cb51908013f3df1c99d3ac94732cf26e9e327a1f3e46d5d7a28924c SHA512 200a765734a674784add2d3f92c44085736128d98e4ba39152a219200dc382e7a091d23329146f0177d927d4beb0c05427eee479bfaf9812d916958e6d16bceb
|
||||
DIST runtime.android-arm.runtime.native.system.io.ports.9.0.14.nupkg 51364 BLAKE2B 0664a78832b649690f057b865a96aa8e445d0f09987715b091bd06a66196a70a8c424eba19603a628b7279f7ae7666ffd8d81a983a8c54d6f01e45703f974c7e SHA512 38da124aa9b85c6230200c73dfda5810d17135861e0da839f728ebe3a7eeba5db78aae94d39e38e6d66fd333304dce1b0f71fa9f8728376092755a362565a36d
|
||||
DIST runtime.android-arm64.runtime.native.system.io.ports.10.0.5.nupkg 52574 BLAKE2B 754896848b2460694bda7d6e3c9e4878152c5a0545c92025be74e50fae48c500a3fa94efa773546e72d91c1a4a9938db484745a286ccf3beeb7543d5aef1e242 SHA512 d448f6d942a97497c700b157f44c941b72d1525f3048d99b43a4528ecd8703fe836175ed09e46e0766f25a725898289ee871ddd96229a17be1c634996bb6cd84
|
||||
@@ -166,11 +167,13 @@ DIST system.runtime.compilerservices.unsafe.6.0.0.nupkg 84343 BLAKE2B aea2f833d6
|
||||
DIST system.runtime.compilerservices.unsafe.6.1.2.nupkg 75106 BLAKE2B 642dc72840391f9171189db5cd020df5d0e6efd5bf54c30793baedc669ae6473bc197f02c035f81cdb4da2bf5d191ab9f93480b9a2c6affda7b64ae9aa3b55f5 SHA512 b76697589641900911ad33a7c37d4e0442ca1154830f962f0b73b975768716c47aebf9d14ca9b5cb722ae8dc05239bb92252ab5987dd6a7eba57e18a2a463c85
|
||||
DIST system.security.accesscontrol.6.0.1.nupkg 235270 BLAKE2B 8a328939b21aa92654796bf83e83753ce26f1938bbe9c9c0dcd19028647d8c5dfd3a837a941379f23f4ac6962e100d787083072d5e9ecff2e779f51b8d123c68 SHA512 e1beba70b45f8cc5ae06fdecf365f0bb5b58b9af6d7c79accfef15b5a7c7bbef65e10cf9f299418eb413aac86ffefaa0eab9d91650ce77cc398d390f0597ed42
|
||||
DIST system.security.cryptography.pkcs.10.0.5.nupkg 1145315 BLAKE2B 419c3cb00959253037764e6b343621584232cbd60196f9196f29f2b1f0ce0774fc59226508b79008e8e9e3bc6faddbfbd1c2defac5e9f0269eaeefeb1d56e64a SHA512 809a939e862dac6ad77986023af01b512a4b8aa572d4b6635cd02eab1d7607cb73854a54799f7254fcd98309890bf9f3a39733d920845abcb92c8d66d292fc98
|
||||
DIST system.security.cryptography.pkcs.10.0.6.nupkg 1145339 BLAKE2B f5d32571c7dd3cfe2cdf5de422f5bac44f9993dd15d84e007c732be9ae7cd4a8e75a67c329bbe09a358eaa370c400501a52da4540f848449e25dc952b5908ad5 SHA512 982f8f651d31021e8f32c6c0b396c4974885d66a7d5301f883ecfd148f199c0fd645f67c52ad1e153cd8c9850cc878b52e9fc431d95581662d315fa2a7031378
|
||||
DIST system.security.cryptography.pkcs.9.0.14.nupkg 821165 BLAKE2B 7b4443f65ec965a3231110ba787c383d0ae256072537b6d9d77a0ac3a0853bdb52bed5c4075c03b18497392641f4cd6b02bd440f498b9feee93d5abc5a5b406a SHA512 d15a4927e6f7324b622a766d3bef8a04350c087a97dd94c2a7c694eef65815768c2458a5f6cf21c0e6f4a173339f4ab365cd82fd57488daa0293080b9803c624
|
||||
DIST system.security.cryptography.protecteddata.10.0.5.nupkg 155386 BLAKE2B 74afe1244ae359f59065f1b4dc82eaae4d302671dedc5c1976a99cdc83f41b0f92347e22dd3ac4d9e520d92d8bfbd905c05b5c33ab03367cb16567ad5b471f8a SHA512 6cfb9a9366bdd46bab92335172c0539370d298b52e98bd41e8f9ab030b2013a208b2090abb1e93c5659c179e1f4ff2dec04d84cd728cd01abc42935535074322
|
||||
DIST system.security.cryptography.protecteddata.9.0.14.nupkg 127230 BLAKE2B b8bf33681bf86ff4e5175b36f11de97da3ce3b67ffac482118dd9a2ca39aa1d4b348faf781b5914ff176a40f84c2994e7791bfd24f9e8e54b1f465b900240a0e SHA512 89dbd0d45c1e55346c5d9d5c360de7190502ac66471009e66f85ab08fc21c8d55ddc9814e23bae334644310813330171ec0ca3bbb29ddb469be8cafceacf42c6
|
||||
DIST system.security.cryptography.xml.10.0.0.nupkg 470932 BLAKE2B cf29123982cbe44835b5a83f10e4e76bfe871fb6268828a05c69bdbd031afd1089531f662da92b6bbedfe6e22a9395a179d4f12d53438f8106556cb592f66316 SHA512 63d3ea1903ece621d7ec5c026e9721cdecbe50067c92a9318b334e6290f03bdb443cd9908e934ac65ce0e8056679b01a623c8943140da685008da9c8a4ca1765
|
||||
DIST system.security.cryptography.xml.10.0.5.nupkg 470942 BLAKE2B d1ae33d10b95ad2e5e5e76bbcfea2bdcc24c284e8dc545e62d0426ca7a7e5366e9ae6df6f931657338a5e5c422a36ced2eed35723dc55eaa1aaf4324f8fbc75e SHA512 cc54a78bca6663303a9d16121d0de0273ff26664a4b3bd9010ceb5654271df6fc6e73d5bee5c53a3e6f09e76f2e4a121a7c717cea91508900624360aa701faf7
|
||||
DIST system.security.cryptography.xml.10.0.6.nupkg 475488 BLAKE2B 1541dd08bf78bafa5508d2ad533913c56df1f8e319d7670f452dfaec8e1b41e88ab2fb18b826fe0170d3c1059f993b88cbb8a11775b9b7f0f73d1ad03b17176a SHA512 a2b43b29443b86b136e210d23a2f65193be26a0f657676012e167ac9ab501827dcb6675b0eff05df0a0baab7312a8f55609dd15273f70cf4ace8caee0bdf9552
|
||||
DIST system.security.cryptography.xml.6.0.1.nupkg 231247 BLAKE2B 8720dea2d6ba2d116d5455213f8faaa26667a1b2b75e993434f95b7a01c8914d9bb5861df02e7da6761f726cdb8fbfb8da294033fbad674e7b84b182d382146c SHA512 17f9e598d455c5ab883398f83affd8dd6879a332fea70f876265ef38517c7977764ba31b1b237c9cb72dffb3d486a24642148eacd63a2893e0714c92e679deb2
|
||||
DIST system.security.cryptography.xml.9.0.14.nupkg 370182 BLAKE2B 954c203ca40bb376f1aeb1d65cd5dc4a72f736d583c1ef0a977b9eb7382fafc4f5e501ba4240e0b76929ebe13200aa6c6e575601e2f993e1cdafe8f80578eccb SHA512 0d3151c66240cab530278e4b811e05094954d254306464c03a57527b2735785b6be816c12bc7cbdd76da48424b94b6bedbf22da077891a5a4dd1e2c8d9e8d0d1
|
||||
DIST system.security.permissions.10.0.5.nupkg 544212 BLAKE2B 2d2f681a9e8df0d3bab0152e1d9f83d93c698acdeb080ce97737b34d2b6cbb73d45775c3444fa5a7326bd03cbb58dd4833eecf74c61f40eac41854f18ee1d71c SHA512 97a81bc32810239423c41f372d323f60858024cddf54c0e5fd6be36fc14ee7a705a200c06704ebcb3a1633457cc863d966db1894e4ad20831e836ca12bea71ce
|
||||
|
||||
337
app-shells/pwsh/pwsh-7.6.1.ebuild
Normal file
337
app-shells/pwsh/pwsh-7.6.1.ebuild
Normal file
@@ -0,0 +1,337 @@
|
||||
# Copyright 1999-2026 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 some C# code generated by that subproject.
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOTNET_PKG_COMPAT="10.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
|
||||
humanizer.core@2.14.1
|
||||
json.more.net@2.1.1
|
||||
jsonpointer.net@5.3.1
|
||||
jsonschema.net@7.4.0
|
||||
markdig.signed@0.31.0
|
||||
markdig.signed@0.44.0
|
||||
microsoft.applicationinsights@2.23.0
|
||||
microsoft.bcl.asyncinterfaces@10.0.5
|
||||
microsoft.codeanalysis.analyzers@3.11.0
|
||||
microsoft.codeanalysis.analyzers@5.3.0
|
||||
microsoft.codeanalysis.common@5.0.0
|
||||
microsoft.codeanalysis.csharp@5.0.0
|
||||
microsoft.codecoverage@18.0.1
|
||||
microsoft.extensions.objectpool@10.0.0
|
||||
microsoft.extensions.objectpool@10.0.5
|
||||
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@18.0.1
|
||||
microsoft.netcore.platforms@1.1.2
|
||||
microsoft.powershell.markdownrender@7.2.1
|
||||
microsoft.powershell.native@700.0.0-rc.1
|
||||
microsoft.security.extensions@1.4.0
|
||||
microsoft.testplatform.objectmodel@18.0.1
|
||||
microsoft.testplatform.testhost@18.0.1
|
||||
microsoft.win32.registry.accesscontrol@10.0.5
|
||||
microsoft.win32.systemevents@10.0.5
|
||||
microsoft.windows.compatibility@10.0.5
|
||||
netstandard.library@2.0.3
|
||||
newtonsoft.json@13.0.3
|
||||
newtonsoft.json@13.0.4
|
||||
runtime.android-arm.runtime.native.system.io.ports@10.0.5
|
||||
runtime.android-arm64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.android-x64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.android-x86.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-arm.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-arm64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-bionic-arm64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-bionic-x64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-musl-arm.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-musl-arm64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-musl-x64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.linux-x64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.maccatalyst-arm64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.maccatalyst-x64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.native.system.data.sqlclient.sni@4.4.0
|
||||
runtime.native.system.io.ports@10.0.5
|
||||
runtime.osx-arm64.runtime.native.system.io.ports@10.0.5
|
||||
runtime.osx-x64.runtime.native.system.io.ports@10.0.5
|
||||
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.buffers@4.6.1
|
||||
system.codedom@10.0.5
|
||||
system.collections.immutable@9.0.14
|
||||
system.componentmodel.composition.registration@10.0.5
|
||||
system.componentmodel.composition@10.0.5
|
||||
system.configuration.configurationmanager@10.0.5
|
||||
system.data.odbc@10.0.5
|
||||
system.data.oledb@10.0.5
|
||||
system.data.sqlclient@4.9.0
|
||||
system.data.sqlclient@4.9.1
|
||||
system.diagnostics.eventlog@10.0.5
|
||||
system.diagnostics.performancecounter@10.0.5
|
||||
system.directoryservices.accountmanagement@10.0.5
|
||||
system.directoryservices.protocols@10.0.5
|
||||
system.directoryservices@10.0.5
|
||||
system.drawing.common@10.0.5
|
||||
system.io.packaging@10.0.5
|
||||
system.io.ports@10.0.5
|
||||
system.management@10.0.5
|
||||
system.memory@4.6.3
|
||||
system.net.http.winhttphandler@10.0.5
|
||||
system.numerics.vectors@4.6.1
|
||||
system.reflection.context@10.0.5
|
||||
system.reflection.metadata@9.0.14
|
||||
system.runtime.caching@10.0.5
|
||||
system.runtime.compilerservices.unsafe@6.1.2
|
||||
system.security.cryptography.pkcs@10.0.5
|
||||
system.security.cryptography.pkcs@10.0.6
|
||||
system.security.cryptography.protecteddata@10.0.5
|
||||
system.security.cryptography.xml@10.0.0
|
||||
system.security.cryptography.xml@10.0.5
|
||||
system.security.cryptography.xml@10.0.6
|
||||
system.security.permissions@10.0.5
|
||||
system.servicemodel.http@10.0.652802
|
||||
system.servicemodel.http@8.1.2
|
||||
system.servicemodel.netframingbase@10.0.652802
|
||||
system.servicemodel.nettcp@10.0.652802
|
||||
system.servicemodel.nettcp@8.1.2
|
||||
system.servicemodel.primitives@10.0.652802
|
||||
system.servicemodel.primitives@8.1.2
|
||||
system.servicemodel.syndication@10.0.5
|
||||
system.serviceprocess.servicecontroller@10.0.5
|
||||
system.speech@10.0.5
|
||||
system.text.encoding.codepages@8.0.0
|
||||
system.threading.tasks.extensions@4.6.3
|
||||
system.web.services.description@8.1.2
|
||||
system.windows.extensions@10.0.5
|
||||
validation@2.6.68
|
||||
xunit.abstractions@2.0.3
|
||||
xunit.analyzers@1.18.0
|
||||
xunit.assert@2.9.3
|
||||
xunit.core@2.9.3
|
||||
xunit.extensibility.core@2.4.0
|
||||
xunit.extensibility.core@2.9.3
|
||||
xunit.extensibility.execution@2.4.0
|
||||
xunit.extensibility.execution@2.9.3
|
||||
xunit.runner.visualstudio@3.1.5
|
||||
xunit.skippablefact@1.5.61
|
||||
xunit@2.9.3
|
||||
xunitxml.testlogger@8.0.0
|
||||
"
|
||||
|
||||
# Additional PowerShell Gallery modules.
|
||||
NUGETV_MICROSOFT_POWERSHELL_ARCHIVE="1.2.5"
|
||||
NUGETV_MICROSOFT_POWERSHELL_PSRESOURCEGET="1.2.0"
|
||||
NUGETV_MICROSOFT_POWERSHELL_THREADJOB="2.2.0"
|
||||
NUGETV_PACKAGEMANAGEMENT="1.4.8.1"
|
||||
NUGETV_POWERSHELLGET="2.2.5"
|
||||
NUGETV_PSREADLINE="2.4.5"
|
||||
NUGETS+="
|
||||
microsoft.powershell.archive@${NUGETV_MICROSOFT_POWERSHELL_ARCHIVE}
|
||||
microsoft.powershell.psresourceget@${NUGETV_MICROSOFT_POWERSHELL_PSRESOURCEGET}
|
||||
microsoft.powershell.threadjob@${NUGETV_MICROSOFT_POWERSHELL_THREADJOB}
|
||||
packagemanagement@${NUGETV_PACKAGEMANAGEMENT}
|
||||
powershellget@${NUGETV_POWERSHELLGET}
|
||||
psreadline@${NUGETV_PSREADLINE}
|
||||
"
|
||||
|
||||
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}.repackaged.tar.xz
|
||||
${NUGET_URIS}
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~arm64"
|
||||
IUSE="gui vanilla"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libpsl-native-7.4.0:=
|
||||
dev-libs/openssl-compat:1.0.0
|
||||
sys-libs/pam: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
|
||||
)
|
||||
DOTNET_PKG_RESTORE_EXTRA_ARGS=(
|
||||
-p:"RollForward=Major"
|
||||
-p:"RuntimeIdentifiers="
|
||||
-p:"TreatWarningsAsErrors=false"
|
||||
)
|
||||
DOTNET_PKG_BUILD_EXTRA_ARGS=(
|
||||
"${DOTNET_PKG_RESTORE_EXTRA_ARGS[@]}"
|
||||
)
|
||||
PATCHES=(
|
||||
"${FILESDIR}/pwsh-7.3.3-disable-update-check.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="$(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
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
check-reqs_pkg_pretend
|
||||
|
||||
check_requirements_locale
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
check-reqs_pkg_setup
|
||||
dotnet-pkg_pkg_setup
|
||||
|
||||
check_requirements_locale
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if ! use vanilla ; then
|
||||
PATCHES+=(
|
||||
"${FILESDIR}/pwsh-7.5.0-disable-telemetry.patch"
|
||||
)
|
||||
fi
|
||||
|
||||
# This is guarded by "RegexGitVersion" in "PowerShell.Common.props".
|
||||
local fake_describe="v${PV}-0-g0"
|
||||
sed -e "s|git describe --abbrev=60 --long|echo ${fake_describe}|g" \
|
||||
-i ./PowerShell.Common.props || die
|
||||
|
||||
echo "v${PV}" > ./powershell.version || die
|
||||
|
||||
dotnet-pkg_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo 'Copying DLL files for the missing "ref" directory'
|
||||
efsi "${FILESDIR}/pwsh-7.3.3-copy-ref.fsx" "${WORKDIR}/${P}_ref"
|
||||
|
||||
dotnet-pkg_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local -a test_args=(
|
||||
"${DOTNET_PKG_RESTORE_EXTRA_ARGS[@]}"
|
||||
-p:"RuntimeIdentifier=${DOTNET_PKG_RUNTIME}"
|
||||
"${S}/test/xUnit/xUnit.tests.csproj"
|
||||
)
|
||||
dotnet-pkg-base_restore "${test_args[@]}"
|
||||
dotnet-pkg-base_test "${test_args[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest_root="/usr/share/${PN}-${SLOT}"
|
||||
|
||||
# Install additional PowerShell Gallery modules.
|
||||
local -a psg_modules=(
|
||||
Microsoft.PowerShell.Archive
|
||||
Microsoft.PowerShell.PSResourceGet
|
||||
Microsoft.PowerShell.ThreadJob
|
||||
PSReadLine
|
||||
PackageManagement
|
||||
PowerShellGet
|
||||
)
|
||||
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 'DOTNET_ROLL_FORWARD="Major"'
|
||||
dotnet-pkg-base_append_launchervar 'PSModulePath="${PSModulePath}:${EPREFIX}/usr/share/GentooPowerShell/Modules:"'
|
||||
dotnet-pkg-base_install "${dest_root}"
|
||||
dotnet-pkg-base_dolauncher-portable "${dest_root}/pwsh.dll" "pwsh-${SLOT}"
|
||||
|
||||
insinto "${dest_root}/ref"
|
||||
doins "${WORKDIR}/${P}_ref"/*
|
||||
|
||||
# Fix runtime config because we roll forward from .NET 9.0 into .NET >-10.0.
|
||||
sed -i "${ED}/${dest_root}/pwsh.runtimeconfig.json" \
|
||||
-e "s|.*rollForwardOnNoCandidateFx.*||g" \
|
||||
|| die "sed failed"
|
||||
|
||||
# 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 -f "${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() {
|
||||
if use gui ; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
fi
|
||||
|
||||
eselect pwsh update ifunset
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gui ; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
fi
|
||||
|
||||
eselect pwsh update ifunset
|
||||
}
|
||||
Reference in New Issue
Block a user