From 8d839e24e6b6e9a28d945d1dc094e65e2b0ccc2d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Oct 2023 06:11:21 +0100 Subject: gentoo auto-resync : 11:10:2023 - 06:11:21 --- app-shells/Manifest.gz | Bin 9469 -> 9461 bytes app-shells/pwsh-bin/Manifest | 8 +- app-shells/pwsh-bin/pwsh-bin-7.3.6-r1.ebuild | 69 +++++ app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild | 69 ----- app-shells/pwsh-bin/pwsh-bin-7.3.7-r1.ebuild | 69 +++++ app-shells/pwsh-bin/pwsh-bin-7.3.7.ebuild | 69 ----- app-shells/pwsh-bin/pwsh-bin-7.3.8.ebuild | 69 +++++ app-shells/pwsh/Manifest | 4 +- app-shells/pwsh/pwsh-7.3.6-r1.ebuild | 404 ++++++++++++++++++++++++++ app-shells/pwsh/pwsh-7.3.6.ebuild | 404 -------------------------- app-shells/pwsh/pwsh-7.3.7-r1.ebuild | 409 +++++++++++++++++++++++++++ app-shells/pwsh/pwsh-7.3.7.ebuild | 409 --------------------------- 12 files changed, 1028 insertions(+), 955 deletions(-) create mode 100644 app-shells/pwsh-bin/pwsh-bin-7.3.6-r1.ebuild delete mode 100644 app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild create mode 100644 app-shells/pwsh-bin/pwsh-bin-7.3.7-r1.ebuild delete mode 100644 app-shells/pwsh-bin/pwsh-bin-7.3.7.ebuild create mode 100644 app-shells/pwsh-bin/pwsh-bin-7.3.8.ebuild create mode 100644 app-shells/pwsh/pwsh-7.3.6-r1.ebuild delete mode 100644 app-shells/pwsh/pwsh-7.3.6.ebuild create mode 100644 app-shells/pwsh/pwsh-7.3.7-r1.ebuild delete mode 100644 app-shells/pwsh/pwsh-7.3.7.ebuild (limited to 'app-shells') diff --git a/app-shells/Manifest.gz b/app-shells/Manifest.gz index 148d76133bc1..d89dde388acf 100644 Binary files a/app-shells/Manifest.gz and b/app-shells/Manifest.gz differ diff --git a/app-shells/pwsh-bin/Manifest b/app-shells/pwsh-bin/Manifest index 166e2bc048d8..fb2aea0e129e 100644 --- a/app-shells/pwsh-bin/Manifest +++ b/app-shells/pwsh-bin/Manifest @@ -4,6 +4,10 @@ DIST powershell-7.3.6-linux-x64.tar.gz 68984703 BLAKE2B 36df952abcf1bc116a4a0734 DIST powershell-7.3.7-linux-arm32.tar.gz 66617447 BLAKE2B be80d24a4cda6a59ca220c8a05c9a0c9b9770720f5f8db3184b120edb92f4d1a52f4d59328ff0b821e835aed55cc69d9191ee64913db0d8a1aa3f0ac62f82051 SHA512 49d81476d4d4aa7a1138b605baaadcdecbbfd768161c1cc7f0f448dd8038e55dca71290f3e3842ed526b18df7b5e4ac959f13eea04584e11a6a0f2de1af9c711 DIST powershell-7.3.7-linux-arm64.tar.gz 65519990 BLAKE2B 133264c94d0103faa14f65744abfc7837fe09bf878c85d50b7bc949bb784c6df3e8dc15a674c0c72cc1e91a8499e79a44cd8608affa5b7a2b8d46fa82cd74275 SHA512 fd7530a8ae6a81d13193f8e9da46ef598b5e0e13054f63350c8cf6d41bccff0764566eff6114287da88c2de0ed5b3e37cfc104547528b060a0a217420e0ac889 DIST powershell-7.3.7-linux-x64.tar.gz 69092859 BLAKE2B 9db34b8dd6f5254a8f8f2a87daa72cb8e3f12aecb5f9967f7e21646dad4a6af61bedf3387cc9eaf12382d1fe899195a294b59f6e63d43fb0f701bc2973aa82d5 SHA512 42e148a737afed971e61929e8315d59e1f6a118fc8f2982b0bf0a1d05d73628e99d77d4b4b12b99805f40e9c2425e8bf9dfae2fc7fd04b5b8ba4de236df1cd8f -EBUILD pwsh-bin-7.3.6.ebuild 1576 BLAKE2B 3098c557b01051628a0d87cd421d2bf64aa5c946089d68e94a16fb41d3be466e2f13527e8893fe908dd3f02b7a4f6f3ca16d0fb4b2d1888f729298c9b8d51f22 SHA512 c28128c1555fa5c93d77b5643423a1b22ddcb15267218b2a420acd0d962a70cecbd933188550674cd33d20b962255c28cafd5c5638cc5b1f17ed744b98e43828 -EBUILD pwsh-bin-7.3.7.ebuild 1577 BLAKE2B 25209f363792f2df3b7303795e250847798c7765b1d1a05e65bce1d1c581514760b7fc56f7a9ed84e1e9c90ed37ce4eb6939637790b00ee168eaa470d3a1f8b0 SHA512 3f35062bdf0ff7b21288e72380704d955383fc30dc3c4bcefd6b225d88835d0144627b6f3ca6e167c882b7b6a0b729da405cad97349ca30711c8d49786a2b8cb +DIST powershell-7.3.8-linux-arm32.tar.gz 66622219 BLAKE2B 187c13065d7db2d01541e36c888fb59b24b05e10b0b85b73c9a3ca2a3f93d49e1aa17734fbf04bcdb5c350c151dd49394caa0eed6d16105bee7608784fe516d5 SHA512 967c49c1d1644d4bf188b06dd67ee92eb292c3a3232b63d49608fcc1ec23caed2cc1b9bd5035902ac91610e4bf0def7c311be984350bcfcd170dae7ffb8c79cf +DIST powershell-7.3.8-linux-arm64.tar.gz 65538450 BLAKE2B 3e9e1e0f116b1bbeaf832116efb926a31cd73032f3ffc364ef8f9dd7a18cd7b3a6111c71d0af2d91ebbed59166a734efaeb526d88f930ed4474560e3c122649c SHA512 7163d57eb593dda5a8f8df181d6477b8a48fa5f0cc169a91188740b166bded7f67e7533999023fe5f31357c6066ca357608aab8d82b4c16a37e9c4260cd5f751 +DIST powershell-7.3.8-linux-x64.tar.gz 69101356 BLAKE2B a96efbe39a1917244dbd8da51b41d9944fc871c30c0efcb34e66dad35990be27e899a570be25473ae94a2703e5c0349fa7ba514c29ed108287f471b0ec957236 SHA512 d2cd1619fc4e1c26166cf4d3f5fcf9595d4efad4099cbca7593dc048fdc199e90ffabc157b99f0d3c623ece17d95d8587192597d34172aaf398393a6af6c96eb +EBUILD pwsh-bin-7.3.6-r1.ebuild 1586 BLAKE2B fd20127d40f52c5f7b8ceda0f32a81e74852ab6cca3febf18f6c2899ee34ef6c27e481dc08f3847ffb1ec69a6bf8932e6647e1488a007e06bdeb038292f720e0 SHA512 31c1f0c9400a0ba8ed6903325855ba37d7ced358fcdd823f77c15fd5581159487a793bf1c32f6c5ba5bdcfcef03599b7bcd98d2f296cd727fbca3d9a55925e5b +EBUILD pwsh-bin-7.3.7-r1.ebuild 1587 BLAKE2B b08828c1fa5cf86ebad55537d7cf5703420d91ee41c1cafae963ca02c62851570fbea1f2d5a9ab80083490f426e7e446b3ca06306d080c71e19423e6a3740d04 SHA512 55473dc99ea63635da7fa308dd93a7140bf7b03a81107ddf9e69080112b9774027d77061b07a9c2f2d08898e6a9b345e1332165457e3f0c0abaa4a39bba54e8d +EBUILD pwsh-bin-7.3.8.ebuild 1587 BLAKE2B b08828c1fa5cf86ebad55537d7cf5703420d91ee41c1cafae963ca02c62851570fbea1f2d5a9ab80083490f426e7e446b3ca06306d080c71e19423e6a3740d04 SHA512 55473dc99ea63635da7fa308dd93a7140bf7b03a81107ddf9e69080112b9774027d77061b07a9c2f2d08898e6a9b345e1332165457e3f0c0abaa4a39bba54e8d MISC metadata.xml 980 BLAKE2B 645e3ca15511e0e88193911119ac54ada054ecc0ccd355bccd3c758f9d854fc4ec34af3aee4dc73edbedc8b983a71688bf2753ff3251b2f317138afb07792dc4 SHA512 e68ea742c9139352d2aa31853aaded6e26952a63971b7ce4473ab2931579b26807c127163b783f3cb602a0ddc59257034440eb337b874b3a2e8e6447a6d63b93 diff --git a/app-shells/pwsh-bin/pwsh-bin-7.3.6-r1.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.3.6-r1.ebuild new file mode 100644 index 000000000000..748d3db6ec06 --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.3.6-r1.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 ~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 +} diff --git a/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild deleted file mode 100644 index 8b0cee74b025..000000000000 --- a/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# 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 ~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}:/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 -} diff --git a/app-shells/pwsh-bin/pwsh-bin-7.3.7-r1.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.3.7-r1.ebuild new file mode 100644 index 000000000000..d5dc3e03bc4a --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.3.7-r1.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 ~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 +} diff --git a/app-shells/pwsh-bin/pwsh-bin-7.3.7.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.3.7.ebuild deleted file mode 100644 index 94b1b6ce19ec..000000000000 --- a/app-shells/pwsh-bin/pwsh-bin-7.3.7.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# 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 ~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}:/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 -} diff --git a/app-shells/pwsh-bin/pwsh-bin-7.3.8.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.3.8.ebuild new file mode 100644 index 000000000000..d5dc3e03bc4a --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.3.8.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 ~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 +} diff --git a/app-shells/pwsh/Manifest b/app-shells/pwsh/Manifest index 83d2dcfdc6b9..50172e74414c 100644 --- a/app-shells/pwsh/Manifest +++ b/app-shells/pwsh/Manifest @@ -267,6 +267,6 @@ DIST xunit.extensibility.execution.2.4.2.nupkg 353652 BLAKE2B f10e20d43b8030f51c DIST xunit.runner.visualstudio.2.4.5.nupkg 884245 BLAKE2B 7137fac4dd6dc1fddb01c6e88001c8a3796eeb6e65802f85ec72d98ad4aa1fff87d2d3f3601028de95a76ce8fe86aa845c26d7aa3fc9c9e3c5732b1517f5ba83 SHA512 6a1900b0364948ea20ef4326297448a011f37603c16e0d63e7fda3bc1a914ae4a8a39c44dae488da4986f21e85650c1b670b608fb67ff5ae8afe44f47af8d6e2 DIST xunit.skippablefact.1.4.13.nupkg 46061 BLAKE2B 1c362ebed9d8f88fb8f3728194b7b406f05aaac3776ea8b1167722b82799a6acd589771044aee37d045d45e7760cdde1a555b80cb8a92c5d55e0cc3ead6e66c5 SHA512 d3cf30ada4d447fd4737143554f9c9be1aabe502e1c5e2614e13100bda71f3ed9eab03805c7d3475936a9ed6730bf86ce2212f6da6ccf5306553fc1352bcd5ba DIST xunitxml.testlogger.3.0.78.nupkg 77009 BLAKE2B e025e1afe06ee0030642abf418ca5a4458df8ba2022cb807e4283b96c167f1017cdb947f3769d371713bdbff57387cb4977cee914c4c282171b696af8a04dfd5 SHA512 096ff6a4e9a06af6dce58a514bf896098cac408d04e98d9fc09d79c9739deebd6ac6ca30bcd4467c20e8f5b311b7330f5678ef4f576a48bc051711a2763db534 -EBUILD pwsh-7.3.6.ebuild 12937 BLAKE2B 8056d1b6b842ab9cdc7069726978721af611f483b5cad16908f6ba645fcad5141842bf1590c1bc09aa3ebe9ad2d50fc577c330a1242c853188eabeb1723ff7d1 SHA512 42ca89f4863744461ada631a188a8140f813104199f9d2e2b880d441b5baacbc80c8d35127fcc594758bedac71b0fe09636be9fbe0813030cc6152b9b0876970 -EBUILD pwsh-7.3.7.ebuild 13021 BLAKE2B 97e27fcc47103844eb81bd9ad21224d9ed7be07e07a6e90accff96df0a2975694a9d5ccc3528ca4d585afeebf7fbd4bfa17a2d09ae989c88156f2dd3cef85942 SHA512 e95e0346649109be6b56ac32097216f27220424c43dd0c35adfe4b667dfe50f894b04d9f4901a2e7dabd49cb8878084c9876969eca91be2602b6e03fab302561 +EBUILD pwsh-7.3.6-r1.ebuild 12947 BLAKE2B b22900e31a7079890218dfd378bbb208192ddf21c51d5ff768184e0f34019d33c010d5ad1a1078d2e1b9ce0dee290546d81cff0d0b69bea67f47704f5a75e622 SHA512 fc2daf61e523a9b739308f5641a58c4c18c4a678c580c812c9973cd39962dbaac31485d26286e0915a69e85976057ea0b96aa71612d267414f07fe1c81a491c9 +EBUILD pwsh-7.3.7-r1.ebuild 13031 BLAKE2B 2b9e936f6a4eae8821c66b1c427a42115fbd90a7b6da8578fd12c7e843182b274903f264c6e3408e8edca5daaa1a8cac3f2e24f0409b7fdd5514956ebf9e40ba SHA512 49761eba1432255d31fdc1906ee93d8c29c7239442fc8396a3a47c3af49d300fcb4d1755752914e266882d1f3c4be44eb2e84033b03a2c76fbcb3dc09abc366c MISC metadata.xml 975 BLAKE2B 7829822b2adb78e5f231c4e2e40671b3df61ed90c5dc01267bb90a56a97758b0197ae523ed495d1099d5e51b4854cdf61c7f052584f1a4c08d353177dc3add5d SHA512 440546ebb8d93817d0dc48a11543c36f200c44a9f68ff394f0727d89c9af8f91127d5f76a1c0e88a61dbfd9f3c4c1711bf3dd75bcb91eed32052839eef01b564 diff --git a/app-shells/pwsh/pwsh-7.3.6-r1.ebuild b/app-shells/pwsh/pwsh-7.3.6-r1.ebuild new file mode 100644 index 000000000000..7c6152bab8b0 --- /dev/null +++ b/app-shells/pwsh/pwsh-7.3.6-r1.ebuild @@ -0,0 +1,404 @@ +# Copyright 1999-2023 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 + +MY_PN=PowerShell + +DOTNET_PKG_COMPAT=7.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 +markdig.signed@0.31.0 +microsoft.applicationinsights@2.21.0 +microsoft.bcl.asyncinterfaces@7.0.0 +microsoft.codeanalysis.analyzers@3.3.3 +microsoft.codeanalysis.common@4.4.0 +microsoft.codeanalysis.csharp@4.4.0 +microsoft.codeanalysis.netanalyzers@7.0.3-preview1.23267.1 +microsoft.codecoverage@17.3.3 +microsoft.csharp@4.0.1 +microsoft.csharp@4.3.0 +microsoft.csharp@4.7.0 +microsoft.extensions.objectpool@7.0.9 +microsoft.management.infrastructure.runtime.unix@2.0.0 +microsoft.management.infrastructure.runtime.win@2.0.0 +microsoft.management.infrastructure@2.0.0 +microsoft.net.test.sdk@17.3.3 +microsoft.netcore.platforms@1.0.1 +microsoft.netcore.platforms@1.1.0 +microsoft.netcore.platforms@5.0.0 +microsoft.netcore.targets@1.0.1 +microsoft.netcore.targets@1.1.0 +microsoft.powershell.markdownrender@7.2.1 +microsoft.powershell.native@7.3.2 +microsoft.security.extensions@1.2.0 +microsoft.testplatform.objectmodel@17.3.3 +microsoft.testplatform.testhost@17.3.3 +microsoft.win32.primitives@4.3.0 +microsoft.win32.registry.accesscontrol@7.0.0 +microsoft.win32.registry@5.0.0 +microsoft.win32.systemevents@7.0.0 +microsoft.windows.compatibility@7.0.4 +namotion.reflection@2.1.2 +netstandard.library@1.6.1 +newtonsoft.json@13.0.1 +newtonsoft.json@13.0.3 +newtonsoft.json@9.0.1 +njsonschema@10.8.0 +nuget.frameworks@5.11.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@7.0.0 +runtime.linux-arm64.runtime.native.system.io.ports@7.0.0 +runtime.linux-x64.runtime.native.system.io.ports@7.0.0 +runtime.native.system.data.sqlclient.sni@4.7.0 +runtime.native.system.io.compression@4.3.0 +runtime.native.system.io.ports@7.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@7.0.0 +runtime.osx-x64.runtime.native.system.io.ports@7.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.435 +stylecop.analyzers@1.2.0-beta.435 +system.appcontext@4.3.0 +system.buffers@4.3.0 +system.codedom@7.0.0 +system.collections.concurrent@4.3.0 +system.collections.immutable@6.0.0 +system.collections@4.0.11 +system.collections@4.3.0 +system.componentmodel.composition.registration@7.0.0 +system.componentmodel.composition@7.0.0 +system.configuration.configurationmanager@7.0.0 +system.console@4.3.0 +system.data.odbc@7.0.0 +system.data.oledb@7.0.0 +system.data.sqlclient@4.8.5 +system.diagnostics.debug@4.0.11 +system.diagnostics.debug@4.3.0 +system.diagnostics.diagnosticsource@4.3.0 +system.diagnostics.diagnosticsource@7.0.2 +system.diagnostics.eventlog@7.0.0 +system.diagnostics.performancecounter@7.0.0 +system.diagnostics.tools@4.0.1 +system.diagnostics.tools@4.3.0 +system.diagnostics.tracing@4.3.0 +system.directoryservices.accountmanagement@7.0.0 +system.directoryservices.protocols@7.0.1 +system.directoryservices@7.0.1 +system.drawing.common@7.0.0 +system.dynamic.runtime@4.0.11 +system.dynamic.runtime@4.3.0 +system.formats.asn1@7.0.0 +system.globalization.calendars@4.3.0 +system.globalization.extensions@4.3.0 +system.globalization@4.0.11 +system.globalization@4.3.0 +system.io.compression.zipfile@4.3.0 +system.io.compression@4.3.0 +system.io.filesystem.primitives@4.0.1 +system.io.filesystem.primitives@4.3.0 +system.io.filesystem@4.0.1 +system.io.filesystem@4.3.0 +system.io.packaging@7.0.0 +system.io.ports@7.0.0 +system.io@4.1.0 +system.io@4.3.0 +system.linq.expressions@4.1.0 +system.linq.expressions@4.3.0 +system.linq@4.1.0 +system.linq@4.3.0 +system.management@7.0.2 +system.memory@4.5.5 +system.net.http.winhttphandler@7.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.5.0 +system.objectmodel@4.0.12 +system.objectmodel@4.3.0 +system.private.servicemodel@4.10.2 +system.private.uri@4.3.0 +system.reflection.context@7.0.0 +system.reflection.dispatchproxy@4.7.1 +system.reflection.emit.ilgeneration@4.0.1 +system.reflection.emit.ilgeneration@4.3.0 +system.reflection.emit.lightweight@4.0.1 +system.reflection.emit.lightweight@4.3.0 +system.reflection.emit@4.0.1 +system.reflection.emit@4.3.0 +system.reflection.extensions@4.0.1 +system.reflection.extensions@4.3.0 +system.reflection.metadata@1.6.0 +system.reflection.metadata@5.0.0 +system.reflection.primitives@4.0.1 +system.reflection.primitives@4.3.0 +system.reflection.typeextensions@4.1.0 +system.reflection.typeextensions@4.3.0 +system.reflection@4.1.0 +system.reflection@4.3.0 +system.resources.resourcemanager@4.0.1 +system.resources.resourcemanager@4.3.0 +system.runtime.caching@7.0.0 +system.runtime.compilerservices.unsafe@6.0.0 +system.runtime.extensions@4.1.0 +system.runtime.extensions@4.3.0 +system.runtime.handles@4.0.1 +system.runtime.handles@4.3.0 +system.runtime.interopservices.runtimeinformation@4.3.0 +system.runtime.interopservices@4.1.0 +system.runtime.interopservices@4.3.0 +system.runtime.numerics@4.3.0 +system.runtime.serialization.primitives@4.1.1 +system.runtime@4.1.0 +system.runtime@4.3.0 +system.security.accesscontrol@5.0.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@7.0.0 +system.security.cryptography.pkcs@7.0.3 +system.security.cryptography.primitives@4.3.0 +system.security.cryptography.protecteddata@7.0.1 +system.security.cryptography.x509certificates@4.3.0 +system.security.cryptography.xml@7.0.1 +system.security.permissions@7.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.2 +system.servicemodel.http@4.10.2 +system.servicemodel.nettcp@4.10.2 +system.servicemodel.primitives@4.10.2 +system.servicemodel.security@4.10.2 +system.servicemodel.syndication@7.0.0 +system.serviceprocess.servicecontroller@7.0.1 +system.speech@7.0.0 +system.text.encoding.codepages@6.0.0 +system.text.encoding.codepages@7.0.0 +system.text.encoding.extensions@4.0.11 +system.text.encoding.extensions@4.3.0 +system.text.encoding@4.0.11 +system.text.encoding@4.3.0 +system.text.encodings.web@7.0.0 +system.text.regularexpressions@4.1.0 +system.text.regularexpressions@4.3.0 +system.threading.accesscontrol@7.0.1 +system.threading.tasks.extensions@4.0.0 +system.threading.tasks.extensions@4.3.0 +system.threading.tasks.extensions@4.5.4 +system.threading.tasks@4.0.11 +system.threading.tasks@4.3.0 +system.threading.threadpool@4.3.0 +system.threading.timer@4.3.0 +system.threading@4.0.11 +system.threading@4.3.0 +system.web.services.description@4.10.2 +system.windows.extensions@7.0.0 +system.xml.readerwriter@4.0.11 +system.xml.readerwriter@4.3.0 +system.xml.xdocument@4.0.11 +system.xml.xdocument@4.3.0 +validation@2.4.22 +xunit.abstractions@2.0.2 +xunit.abstractions@2.0.3 +xunit.analyzers@1.0.0 +xunit.assert@2.4.2 +xunit.core@2.4.2 +xunit.extensibility.core@2.4.0 +xunit.extensibility.core@2.4.2 +xunit.extensibility.execution@2.4.0 +xunit.extensibility.execution@2.4.2 +xunit.runner.visualstudio@2.4.5 +xunit.skippablefact@1.4.13 +xunit@2.4.2 +xunitxml.testlogger@3.0.78 +" + +# Additional PowerShell Gallery modules. +NUGETS+=" +microsoft.powershell.archive@1.2.5 +packagemanagement@1.4.8.1 +powershellget@2.2.5 +psreadline@2.2.6 +threadjob@2.0.3 +" + +inherit check-reqs desktop dotnet-pkg xdg + +DESCRIPTION="Cross-platform automation and configuration tool" +HOMEPAGE="https://microsoft.com/powershell/ + https://github.com/PowerShell/PowerShell/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/PowerShell/${MY_PN}.git" +else + SRC_URI="https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64" +fi + +SRC_URI+=" ${NUGET_URIS} " + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" + +RDEPEND=" + dev-libs/libpsl-native:= + sys-libs/pam:0/0 + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:0/0 + ) +" +DEPEND="${RDEPEND}" +IDEPEND="app-eselect/eselect-pwsh" + +CHECKREQS_DISK_BUILD="2G" +DOTNET_PKG_PROJECTS=( + "${S}/src/powershell-unix/powershell-unix.csproj" + "${S}/src/Modules/PSGalleryModules.csproj" +) +# Lower warning level to skip CS0162 error for the "disable-telemetry" patch. +DOTNET_PKG_BUILD_EXTRA_ARGS=( -p:WarningLevel=1 ) +PATCHES=( + "${FILESDIR}/pwsh-7.3.3-disable-telemetry.patch" + "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" +) + +DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) + +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup +} + +src_unpack() { + dotnet-pkg_src_unpack + + if [[ -n ${EGIT_REPO_URI} ]] ; then + git-r3_src_unpack + fi +} + +src_prepare() { + dotnet-pkg_src_prepare + + local fake_describe="v${PV}-0-g0deb490cb0c1a9267e3ba9a766fde4dcb9606a9c" + 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 + psg_modules=( + Microsoft.PowerShell.Archive + PackageManagement + PowerShellGet + PSReadLine + 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" + + newicon assets/ps_black_128.svg powershell.svg + make_desktop_entry "pwsh-${SLOT} -l" \ + "PowerShell ${SLOT}" powershell "ConsoleOnly;System;" "Terminal=true" + + einstalldocs +} + +pkg_postinst() { + xdg_pkg_postinst + + eselect pwsh update ifunset +} + +pkg_postrm() { + xdg_pkg_postrm + + eselect pwsh update ifunset +} diff --git a/app-shells/pwsh/pwsh-7.3.6.ebuild b/app-shells/pwsh/pwsh-7.3.6.ebuild deleted file mode 100644 index 63c8e6a97917..000000000000 --- a/app-shells/pwsh/pwsh-7.3.6.ebuild +++ /dev/null @@ -1,404 +0,0 @@ -# Copyright 1999-2023 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 - -MY_PN=PowerShell - -DOTNET_PKG_COMPAT=7.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 -markdig.signed@0.31.0 -microsoft.applicationinsights@2.21.0 -microsoft.bcl.asyncinterfaces@7.0.0 -microsoft.codeanalysis.analyzers@3.3.3 -microsoft.codeanalysis.common@4.4.0 -microsoft.codeanalysis.csharp@4.4.0 -microsoft.codeanalysis.netanalyzers@7.0.3-preview1.23267.1 -microsoft.codecoverage@17.3.3 -microsoft.csharp@4.0.1 -microsoft.csharp@4.3.0 -microsoft.csharp@4.7.0 -microsoft.extensions.objectpool@7.0.9 -microsoft.management.infrastructure.runtime.unix@2.0.0 -microsoft.management.infrastructure.runtime.win@2.0.0 -microsoft.management.infrastructure@2.0.0 -microsoft.net.test.sdk@17.3.3 -microsoft.netcore.platforms@1.0.1 -microsoft.netcore.platforms@1.1.0 -microsoft.netcore.platforms@5.0.0 -microsoft.netcore.targets@1.0.1 -microsoft.netcore.targets@1.1.0 -microsoft.powershell.markdownrender@7.2.1 -microsoft.powershell.native@7.3.2 -microsoft.security.extensions@1.2.0 -microsoft.testplatform.objectmodel@17.3.3 -microsoft.testplatform.testhost@17.3.3 -microsoft.win32.primitives@4.3.0 -microsoft.win32.registry.accesscontrol@7.0.0 -microsoft.win32.registry@5.0.0 -microsoft.win32.systemevents@7.0.0 -microsoft.windows.compatibility@7.0.4 -namotion.reflection@2.1.2 -netstandard.library@1.6.1 -newtonsoft.json@13.0.1 -newtonsoft.json@13.0.3 -newtonsoft.json@9.0.1 -njsonschema@10.8.0 -nuget.frameworks@5.11.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@7.0.0 -runtime.linux-arm64.runtime.native.system.io.ports@7.0.0 -runtime.linux-x64.runtime.native.system.io.ports@7.0.0 -runtime.native.system.data.sqlclient.sni@4.7.0 -runtime.native.system.io.compression@4.3.0 -runtime.native.system.io.ports@7.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@7.0.0 -runtime.osx-x64.runtime.native.system.io.ports@7.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.435 -stylecop.analyzers@1.2.0-beta.435 -system.appcontext@4.3.0 -system.buffers@4.3.0 -system.codedom@7.0.0 -system.collections.concurrent@4.3.0 -system.collections.immutable@6.0.0 -system.collections@4.0.11 -system.collections@4.3.0 -system.componentmodel.composition.registration@7.0.0 -system.componentmodel.composition@7.0.0 -system.configuration.configurationmanager@7.0.0 -system.console@4.3.0 -system.data.odbc@7.0.0 -system.data.oledb@7.0.0 -system.data.sqlclient@4.8.5 -system.diagnostics.debug@4.0.11 -system.diagnostics.debug@4.3.0 -system.diagnostics.diagnosticsource@4.3.0 -system.diagnostics.diagnosticsource@7.0.2 -system.diagnostics.eventlog@7.0.0 -system.diagnostics.performancecounter@7.0.0 -system.diagnostics.tools@4.0.1 -system.diagnostics.tools@4.3.0 -system.diagnostics.tracing@4.3.0 -system.directoryservices.accountmanagement@7.0.0 -system.directoryservices.protocols@7.0.1 -system.directoryservices@7.0.1 -system.drawing.common@7.0.0 -system.dynamic.runtime@4.0.11 -system.dynamic.runtime@4.3.0 -system.formats.asn1@7.0.0 -system.globalization.calendars@4.3.0 -system.globalization.extensions@4.3.0 -system.globalization@4.0.11 -system.globalization@4.3.0 -system.io.compression.zipfile@4.3.0 -system.io.compression@4.3.0 -system.io.filesystem.primitives@4.0.1 -system.io.filesystem.primitives@4.3.0 -system.io.filesystem@4.0.1 -system.io.filesystem@4.3.0 -system.io.packaging@7.0.0 -system.io.ports@7.0.0 -system.io@4.1.0 -system.io@4.3.0 -system.linq.expressions@4.1.0 -system.linq.expressions@4.3.0 -system.linq@4.1.0 -system.linq@4.3.0 -system.management@7.0.2 -system.memory@4.5.5 -system.net.http.winhttphandler@7.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.5.0 -system.objectmodel@4.0.12 -system.objectmodel@4.3.0 -system.private.servicemodel@4.10.2 -system.private.uri@4.3.0 -system.reflection.context@7.0.0 -system.reflection.dispatchproxy@4.7.1 -system.reflection.emit.ilgeneration@4.0.1 -system.reflection.emit.ilgeneration@4.3.0 -system.reflection.emit.lightweight@4.0.1 -system.reflection.emit.lightweight@4.3.0 -system.reflection.emit@4.0.1 -system.reflection.emit@4.3.0 -system.reflection.extensions@4.0.1 -system.reflection.extensions@4.3.0 -system.reflection.metadata@1.6.0 -system.reflection.metadata@5.0.0 -system.reflection.primitives@4.0.1 -system.reflection.primitives@4.3.0 -system.reflection.typeextensions@4.1.0 -system.reflection.typeextensions@4.3.0 -system.reflection@4.1.0 -system.reflection@4.3.0 -system.resources.resourcemanager@4.0.1 -system.resources.resourcemanager@4.3.0 -system.runtime.caching@7.0.0 -system.runtime.compilerservices.unsafe@6.0.0 -system.runtime.extensions@4.1.0 -system.runtime.extensions@4.3.0 -system.runtime.handles@4.0.1 -system.runtime.handles@4.3.0 -system.runtime.interopservices.runtimeinformation@4.3.0 -system.runtime.interopservices@4.1.0 -system.runtime.interopservices@4.3.0 -system.runtime.numerics@4.3.0 -system.runtime.serialization.primitives@4.1.1 -system.runtime@4.1.0 -system.runtime@4.3.0 -system.security.accesscontrol@5.0.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@7.0.0 -system.security.cryptography.pkcs@7.0.3 -system.security.cryptography.primitives@4.3.0 -system.security.cryptography.protecteddata@7.0.1 -system.security.cryptography.x509certificates@4.3.0 -system.security.cryptography.xml@7.0.1 -system.security.permissions@7.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.2 -system.servicemodel.http@4.10.2 -system.servicemodel.nettcp@4.10.2 -system.servicemodel.primitives@4.10.2 -system.servicemodel.security@4.10.2 -system.servicemodel.syndication@7.0.0 -system.serviceprocess.servicecontroller@7.0.1 -system.speech@7.0.0 -system.text.encoding.codepages@6.0.0 -system.text.encoding.codepages@7.0.0 -system.text.encoding.extensions@4.0.11 -system.text.encoding.extensions@4.3.0 -system.text.encoding@4.0.11 -system.text.encoding@4.3.0 -system.text.encodings.web@7.0.0 -system.text.regularexpressions@4.1.0 -system.text.regularexpressions@4.3.0 -system.threading.accesscontrol@7.0.1 -system.threading.tasks.extensions@4.0.0 -system.threading.tasks.extensions@4.3.0 -system.threading.tasks.extensions@4.5.4 -system.threading.tasks@4.0.11 -system.threading.tasks@4.3.0 -system.threading.threadpool@4.3.0 -system.threading.timer@4.3.0 -system.threading@4.0.11 -system.threading@4.3.0 -system.web.services.description@4.10.2 -system.windows.extensions@7.0.0 -system.xml.readerwriter@4.0.11 -system.xml.readerwriter@4.3.0 -system.xml.xdocument@4.0.11 -system.xml.xdocument@4.3.0 -validation@2.4.22 -xunit.abstractions@2.0.2 -xunit.abstractions@2.0.3 -xunit.analyzers@1.0.0 -xunit.assert@2.4.2 -xunit.core@2.4.2 -xunit.extensibility.core@2.4.0 -xunit.extensibility.core@2.4.2 -xunit.extensibility.execution@2.4.0 -xunit.extensibility.execution@2.4.2 -xunit.runner.visualstudio@2.4.5 -xunit.skippablefact@1.4.13 -xunit@2.4.2 -xunitxml.testlogger@3.0.78 -" - -# Additional PowerShell Gallery modules. -NUGETS+=" -microsoft.powershell.archive@1.2.5 -packagemanagement@1.4.8.1 -powershellget@2.2.5 -psreadline@2.2.6 -threadjob@2.0.3 -" - -inherit check-reqs desktop dotnet-pkg xdg - -DESCRIPTION="Cross-platform automation and configuration tool" -HOMEPAGE="https://microsoft.com/powershell/ - https://github.com/PowerShell/PowerShell/" - -if [[ "${PV}" == *9999* ]] ; then - inherit git-r3 - - EGIT_REPO_URI="https://github.com/PowerShell/${MY_PN}.git" -else - SRC_URI="https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~arm64" -fi - -SRC_URI+=" ${NUGET_URIS} " - -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" - -RDEPEND=" - dev-libs/libpsl-native:= - sys-libs/pam:0/0 - || ( - dev-libs/openssl-compat:1.0.0 - =dev-libs/openssl-1.0*:0/0 - ) -" -DEPEND="${RDEPEND}" -IDEPEND="app-eselect/eselect-pwsh" - -CHECKREQS_DISK_BUILD="2G" -DOTNET_PKG_PROJECTS=( - "${S}/src/powershell-unix/powershell-unix.csproj" - "${S}/src/Modules/PSGalleryModules.csproj" -) -# Lower warning level to skip CS0162 error for the "disable-telemetry" patch. -DOTNET_PKG_BUILD_EXTRA_ARGS=( -p:WarningLevel=1 ) -PATCHES=( - "${FILESDIR}/pwsh-7.3.3-disable-telemetry.patch" - "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" -) - -DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) - -pkg_setup() { - check-reqs_pkg_setup - dotnet-pkg_pkg_setup -} - -src_unpack() { - dotnet-pkg_src_unpack - - if [[ -n ${EGIT_REPO_URI} ]] ; then - git-r3_src_unpack - fi -} - -src_prepare() { - dotnet-pkg_src_prepare - - local fake_describe="v${PV}-0-g0deb490cb0c1a9267e3ba9a766fde4dcb9606a9c" - 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 - psg_modules=( - Microsoft.PowerShell.Archive - PackageManagement - PowerShellGet - PSReadLine - 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}:/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" - - newicon assets/ps_black_128.svg powershell.svg - make_desktop_entry "pwsh-${SLOT} -l" \ - "PowerShell ${SLOT}" powershell "ConsoleOnly;System;" "Terminal=true" - - einstalldocs -} - -pkg_postinst() { - xdg_pkg_postinst - - eselect pwsh update ifunset -} - -pkg_postrm() { - xdg_pkg_postrm - - eselect pwsh update ifunset -} diff --git a/app-shells/pwsh/pwsh-7.3.7-r1.ebuild b/app-shells/pwsh/pwsh-7.3.7-r1.ebuild new file mode 100644 index 000000000000..4997a8dcc5e5 --- /dev/null +++ b/app-shells/pwsh/pwsh-7.3.7-r1.ebuild @@ -0,0 +1,409 @@ +# Copyright 1999-2023 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 + +MY_PN=PowerShell + +DOTNET_PKG_COMPAT=7.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 +markdig.signed@0.31.0 +microsoft.applicationinsights@2.21.0 +microsoft.bcl.asyncinterfaces@7.0.0 +microsoft.codeanalysis.analyzers@3.3.3 +microsoft.codeanalysis.common@4.4.0 +microsoft.codeanalysis.csharp@4.4.0 +microsoft.codeanalysis.netanalyzers@7.0.4 +microsoft.codecoverage@17.3.3 +microsoft.csharp@4.0.1 +microsoft.csharp@4.3.0 +microsoft.csharp@4.7.0 +microsoft.extensions.objectpool@7.0.11 +microsoft.management.infrastructure.runtime.unix@2.0.0 +microsoft.management.infrastructure.runtime.win@2.0.0 +microsoft.management.infrastructure@2.0.0 +microsoft.net.test.sdk@17.3.3 +microsoft.netcore.platforms@1.0.1 +microsoft.netcore.platforms@1.1.0 +microsoft.netcore.platforms@5.0.0 +microsoft.netcore.targets@1.0.1 +microsoft.netcore.targets@1.1.0 +microsoft.powershell.markdownrender@7.2.1 +microsoft.powershell.native@7.3.2 +microsoft.security.extensions@1.2.0 +microsoft.testplatform.objectmodel@17.3.3 +microsoft.testplatform.testhost@17.3.3 +microsoft.win32.primitives@4.3.0 +microsoft.win32.registry.accesscontrol@7.0.0 +microsoft.win32.registry@5.0.0 +microsoft.win32.systemevents@7.0.0 +microsoft.windows.compatibility@7.0.5 +namotion.reflection@2.1.2 +netstandard.library@1.6.1 +newtonsoft.json@13.0.1 +newtonsoft.json@13.0.3 +newtonsoft.json@9.0.1 +njsonschema@10.8.0 +nuget.frameworks@5.11.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@7.0.0 +runtime.linux-arm64.runtime.native.system.io.ports@7.0.0 +runtime.linux-x64.runtime.native.system.io.ports@7.0.0 +runtime.native.system.data.sqlclient.sni@4.7.0 +runtime.native.system.io.compression@4.3.0 +runtime.native.system.io.ports@7.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@7.0.0 +runtime.osx-x64.runtime.native.system.io.ports@7.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.507 +stylecop.analyzers@1.2.0-beta.507 +system.appcontext@4.3.0 +system.buffers@4.3.0 +system.codedom@7.0.0 +system.collections.concurrent@4.3.0 +system.collections.immutable@6.0.0 +system.collections@4.0.11 +system.collections@4.3.0 +system.componentmodel.composition.registration@7.0.0 +system.componentmodel.composition@7.0.0 +system.configuration.configurationmanager@7.0.0 +system.console@4.3.0 +system.data.odbc@7.0.0 +system.data.oledb@7.0.0 +system.data.sqlclient@4.8.5 +system.diagnostics.debug@4.0.11 +system.diagnostics.debug@4.3.0 +system.diagnostics.diagnosticsource@4.3.0 +system.diagnostics.diagnosticsource@7.0.2 +system.diagnostics.eventlog@7.0.0 +system.diagnostics.performancecounter@7.0.0 +system.diagnostics.tools@4.0.1 +system.diagnostics.tools@4.3.0 +system.diagnostics.tracing@4.3.0 +system.directoryservices.accountmanagement@7.0.1 +system.directoryservices.protocols@7.0.1 +system.directoryservices@7.0.1 +system.drawing.common@7.0.0 +system.dynamic.runtime@4.0.11 +system.dynamic.runtime@4.3.0 +system.formats.asn1@7.0.0 +system.globalization.calendars@4.3.0 +system.globalization.extensions@4.3.0 +system.globalization@4.0.11 +system.globalization@4.3.0 +system.io.compression.zipfile@4.3.0 +system.io.compression@4.3.0 +system.io.filesystem.primitives@4.0.1 +system.io.filesystem.primitives@4.3.0 +system.io.filesystem@4.0.1 +system.io.filesystem@4.3.0 +system.io.packaging@7.0.0 +system.io.ports@7.0.0 +system.io@4.1.0 +system.io@4.3.0 +system.linq.expressions@4.1.0 +system.linq.expressions@4.3.0 +system.linq@4.1.0 +system.linq@4.3.0 +system.management@7.0.2 +system.memory@4.5.5 +system.net.http.winhttphandler@7.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.5.0 +system.objectmodel@4.0.12 +system.objectmodel@4.3.0 +system.private.servicemodel@4.10.2 +system.private.uri@4.3.0 +system.reflection.context@7.0.0 +system.reflection.dispatchproxy@4.7.1 +system.reflection.emit.ilgeneration@4.0.1 +system.reflection.emit.ilgeneration@4.3.0 +system.reflection.emit.lightweight@4.0.1 +system.reflection.emit.lightweight@4.3.0 +system.reflection.emit@4.0.1 +system.reflection.emit@4.3.0 +system.reflection.extensions@4.0.1 +system.reflection.extensions@4.3.0 +system.reflection.metadata@1.6.0 +system.reflection.metadata@5.0.0 +system.reflection.primitives@4.0.1 +system.reflection.primitives@4.3.0 +system.reflection.typeextensions@4.1.0 +system.reflection.typeextensions@4.3.0 +system.reflection@4.1.0 +system.reflection@4.3.0 +system.resources.resourcemanager@4.0.1 +system.resources.resourcemanager@4.3.0 +system.runtime.caching@7.0.0 +system.runtime.compilerservices.unsafe@6.0.0 +system.runtime.extensions@4.1.0 +system.runtime.extensions@4.3.0 +system.runtime.handles@4.0.1 +system.runtime.handles@4.3.0 +system.runtime.interopservices.runtimeinformation@4.3.0 +system.runtime.interopservices@4.1.0 +system.runtime.interopservices@4.3.0 +system.runtime.numerics@4.3.0 +system.runtime.serialization.primitives@4.1.1 +system.runtime@4.1.0 +system.runtime@4.3.0 +system.security.accesscontrol@5.0.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@7.0.0 +system.security.cryptography.pkcs@7.0.2 +system.security.cryptography.pkcs@7.0.3 +system.security.cryptography.primitives@4.3.0 +system.security.cryptography.protecteddata@7.0.1 +system.security.cryptography.x509certificates@4.3.0 +system.security.cryptography.xml@7.0.1 +system.security.permissions@7.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.2 +system.servicemodel.http@4.10.2 +system.servicemodel.nettcp@4.10.2 +system.servicemodel.primitives@4.10.2 +system.servicemodel.security@4.10.2 +system.servicemodel.syndication@7.0.0 +system.serviceprocess.servicecontroller@7.0.1 +system.speech@7.0.0 +system.text.encoding.codepages@6.0.0 +system.text.encoding.codepages@7.0.0 +system.text.encoding.extensions@4.0.11 +system.text.encoding.extensions@4.3.0 +system.text.encoding@4.0.11 +system.text.encoding@4.3.0 +system.text.encodings.web@7.0.0 +system.text.regularexpressions@4.1.0 +system.text.regularexpressions@4.3.0 +system.threading.accesscontrol@7.0.1 +system.threading.tasks.extensions@4.0.0 +system.threading.tasks.extensions@4.3.0 +system.threading.tasks.extensions@4.5.4 +system.threading.tasks@4.0.11 +system.threading.tasks@4.3.0 +system.threading.threadpool@4.3.0 +system.threading.timer@4.3.0 +system.threading@4.0.11 +system.threading@4.3.0 +system.web.services.description@4.10.2 +system.windows.extensions@7.0.0 +system.xml.readerwriter@4.0.11 +system.xml.readerwriter@4.3.0 +system.xml.xdocument@4.0.11 +system.xml.xdocument@4.0.11 +system.xml.xdocument@4.3.0 +validation@2.4.22 +xunit.abstractions@2.0.2 +xunit.abstractions@2.0.3 +xunit.analyzers@1.0.0 +xunit.assert@2.4.2 +xunit.core@2.4.2 +xunit.extensibility.core@2.4.0 +xunit.extensibility.core@2.4.2 +xunit.extensibility.execution@2.4.0 +xunit.extensibility.execution@2.4.2 +xunit.runner.visualstudio@2.4.5 +xunit.skippablefact@1.4.13 +xunit@2.4.2 +xunitxml.testlogger@3.0.78 +" + +# Additional PowerShell Gallery modules. +NUGETS+=" +microsoft.powershell.archive@1.2.5 +packagemanagement@1.4.8.1 +powershellget@2.2.5 +psreadline@2.2.6 +threadjob@2.0.3 +" + +inherit check-reqs desktop dotnet-pkg xdg + +DESCRIPTION="Cross-platform automation and configuration tool" +HOMEPAGE="https://microsoft.com/powershell/ + https://github.com/PowerShell/PowerShell/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/PowerShell/${MY_PN}.git" +else + SRC_URI="https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64" +fi + +SRC_URI+=" ${NUGET_URIS} " + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" + +RDEPEND=" + dev-libs/libpsl-native:= + sys-libs/pam:0/0 + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:0/0 + ) +" +DEPEND="${RDEPEND}" +IDEPEND="app-eselect/eselect-pwsh" + +CHECKREQS_DISK_BUILD="2G" +DOTNET_PKG_PROJECTS=( + "${S}/src/powershell-unix/powershell-unix.csproj" + "${S}/src/Modules/PSGalleryModules.csproj" +) +# Lower warning level to skip CS0162 error for the "disable-telemetry" patch. +DOTNET_PKG_BUILD_EXTRA_ARGS=( + -p:WarningLevel=1 +) +PATCHES=( + "${FILESDIR}/pwsh-7.3.3-disable-telemetry.patch" + "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" +) + +DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) + +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup +} + +src_unpack() { + dotnet-pkg_src_unpack + + if [[ -n ${EGIT_REPO_URI} ]] ; then + git-r3_src_unpack + fi +} + +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 + psg_modules=( + Microsoft.PowerShell.Archive + PackageManagement + PowerShellGet + PSReadLine + 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" + + newicon assets/ps_black_128.svg powershell.svg + make_desktop_entry "pwsh-${SLOT} -l" \ + "PowerShell ${SLOT}" powershell "ConsoleOnly;System;" "Terminal=true" + + einstalldocs +} + +pkg_postinst() { + xdg_pkg_postinst + + eselect pwsh update ifunset +} + +pkg_postrm() { + xdg_pkg_postrm + + eselect pwsh update ifunset +} diff --git a/app-shells/pwsh/pwsh-7.3.7.ebuild b/app-shells/pwsh/pwsh-7.3.7.ebuild deleted file mode 100644 index 8c984c6607e2..000000000000 --- a/app-shells/pwsh/pwsh-7.3.7.ebuild +++ /dev/null @@ -1,409 +0,0 @@ -# Copyright 1999-2023 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 - -MY_PN=PowerShell - -DOTNET_PKG_COMPAT=7.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 -markdig.signed@0.31.0 -microsoft.applicationinsights@2.21.0 -microsoft.bcl.asyncinterfaces@7.0.0 -microsoft.codeanalysis.analyzers@3.3.3 -microsoft.codeanalysis.common@4.4.0 -microsoft.codeanalysis.csharp@4.4.0 -microsoft.codeanalysis.netanalyzers@7.0.4 -microsoft.codecoverage@17.3.3 -microsoft.csharp@4.0.1 -microsoft.csharp@4.3.0 -microsoft.csharp@4.7.0 -microsoft.extensions.objectpool@7.0.11 -microsoft.management.infrastructure.runtime.unix@2.0.0 -microsoft.management.infrastructure.runtime.win@2.0.0 -microsoft.management.infrastructure@2.0.0 -microsoft.net.test.sdk@17.3.3 -microsoft.netcore.platforms@1.0.1 -microsoft.netcore.platforms@1.1.0 -microsoft.netcore.platforms@5.0.0 -microsoft.netcore.targets@1.0.1 -microsoft.netcore.targets@1.1.0 -microsoft.powershell.markdownrender@7.2.1 -microsoft.powershell.native@7.3.2 -microsoft.security.extensions@1.2.0 -microsoft.testplatform.objectmodel@17.3.3 -microsoft.testplatform.testhost@17.3.3 -microsoft.win32.primitives@4.3.0 -microsoft.win32.registry.accesscontrol@7.0.0 -microsoft.win32.registry@5.0.0 -microsoft.win32.systemevents@7.0.0 -microsoft.windows.compatibility@7.0.5 -namotion.reflection@2.1.2 -netstandard.library@1.6.1 -newtonsoft.json@13.0.1 -newtonsoft.json@13.0.3 -newtonsoft.json@9.0.1 -njsonschema@10.8.0 -nuget.frameworks@5.11.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@7.0.0 -runtime.linux-arm64.runtime.native.system.io.ports@7.0.0 -runtime.linux-x64.runtime.native.system.io.ports@7.0.0 -runtime.native.system.data.sqlclient.sni@4.7.0 -runtime.native.system.io.compression@4.3.0 -runtime.native.system.io.ports@7.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@7.0.0 -runtime.osx-x64.runtime.native.system.io.ports@7.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.507 -stylecop.analyzers@1.2.0-beta.507 -system.appcontext@4.3.0 -system.buffers@4.3.0 -system.codedom@7.0.0 -system.collections.concurrent@4.3.0 -system.collections.immutable@6.0.0 -system.collections@4.0.11 -system.collections@4.3.0 -system.componentmodel.composition.registration@7.0.0 -system.componentmodel.composition@7.0.0 -system.configuration.configurationmanager@7.0.0 -system.console@4.3.0 -system.data.odbc@7.0.0 -system.data.oledb@7.0.0 -system.data.sqlclient@4.8.5 -system.diagnostics.debug@4.0.11 -system.diagnostics.debug@4.3.0 -system.diagnostics.diagnosticsource@4.3.0 -system.diagnostics.diagnosticsource@7.0.2 -system.diagnostics.eventlog@7.0.0 -system.diagnostics.performancecounter@7.0.0 -system.diagnostics.tools@4.0.1 -system.diagnostics.tools@4.3.0 -system.diagnostics.tracing@4.3.0 -system.directoryservices.accountmanagement@7.0.1 -system.directoryservices.protocols@7.0.1 -system.directoryservices@7.0.1 -system.drawing.common@7.0.0 -system.dynamic.runtime@4.0.11 -system.dynamic.runtime@4.3.0 -system.formats.asn1@7.0.0 -system.globalization.calendars@4.3.0 -system.globalization.extensions@4.3.0 -system.globalization@4.0.11 -system.globalization@4.3.0 -system.io.compression.zipfile@4.3.0 -system.io.compression@4.3.0 -system.io.filesystem.primitives@4.0.1 -system.io.filesystem.primitives@4.3.0 -system.io.filesystem@4.0.1 -system.io.filesystem@4.3.0 -system.io.packaging@7.0.0 -system.io.ports@7.0.0 -system.io@4.1.0 -system.io@4.3.0 -system.linq.expressions@4.1.0 -system.linq.expressions@4.3.0 -system.linq@4.1.0 -system.linq@4.3.0 -system.management@7.0.2 -system.memory@4.5.5 -system.net.http.winhttphandler@7.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.5.0 -system.objectmodel@4.0.12 -system.objectmodel@4.3.0 -system.private.servicemodel@4.10.2 -system.private.uri@4.3.0 -system.reflection.context@7.0.0 -system.reflection.dispatchproxy@4.7.1 -system.reflection.emit.ilgeneration@4.0.1 -system.reflection.emit.ilgeneration@4.3.0 -system.reflection.emit.lightweight@4.0.1 -system.reflection.emit.lightweight@4.3.0 -system.reflection.emit@4.0.1 -system.reflection.emit@4.3.0 -system.reflection.extensions@4.0.1 -system.reflection.extensions@4.3.0 -system.reflection.metadata@1.6.0 -system.reflection.metadata@5.0.0 -system.reflection.primitives@4.0.1 -system.reflection.primitives@4.3.0 -system.reflection.typeextensions@4.1.0 -system.reflection.typeextensions@4.3.0 -system.reflection@4.1.0 -system.reflection@4.3.0 -system.resources.resourcemanager@4.0.1 -system.resources.resourcemanager@4.3.0 -system.runtime.caching@7.0.0 -system.runtime.compilerservices.unsafe@6.0.0 -system.runtime.extensions@4.1.0 -system.runtime.extensions@4.3.0 -system.runtime.handles@4.0.1 -system.runtime.handles@4.3.0 -system.runtime.interopservices.runtimeinformation@4.3.0 -system.runtime.interopservices@4.1.0 -system.runtime.interopservices@4.3.0 -system.runtime.numerics@4.3.0 -system.runtime.serialization.primitives@4.1.1 -system.runtime@4.1.0 -system.runtime@4.3.0 -system.security.accesscontrol@5.0.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@7.0.0 -system.security.cryptography.pkcs@7.0.2 -system.security.cryptography.pkcs@7.0.3 -system.security.cryptography.primitives@4.3.0 -system.security.cryptography.protecteddata@7.0.1 -system.security.cryptography.x509certificates@4.3.0 -system.security.cryptography.xml@7.0.1 -system.security.permissions@7.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.2 -system.servicemodel.http@4.10.2 -system.servicemodel.nettcp@4.10.2 -system.servicemodel.primitives@4.10.2 -system.servicemodel.security@4.10.2 -system.servicemodel.syndication@7.0.0 -system.serviceprocess.servicecontroller@7.0.1 -system.speech@7.0.0 -system.text.encoding.codepages@6.0.0 -system.text.encoding.codepages@7.0.0 -system.text.encoding.extensions@4.0.11 -system.text.encoding.extensions@4.3.0 -system.text.encoding@4.0.11 -system.text.encoding@4.3.0 -system.text.encodings.web@7.0.0 -system.text.regularexpressions@4.1.0 -system.text.regularexpressions@4.3.0 -system.threading.accesscontrol@7.0.1 -system.threading.tasks.extensions@4.0.0 -system.threading.tasks.extensions@4.3.0 -system.threading.tasks.extensions@4.5.4 -system.threading.tasks@4.0.11 -system.threading.tasks@4.3.0 -system.threading.threadpool@4.3.0 -system.threading.timer@4.3.0 -system.threading@4.0.11 -system.threading@4.3.0 -system.web.services.description@4.10.2 -system.windows.extensions@7.0.0 -system.xml.readerwriter@4.0.11 -system.xml.readerwriter@4.3.0 -system.xml.xdocument@4.0.11 -system.xml.xdocument@4.0.11 -system.xml.xdocument@4.3.0 -validation@2.4.22 -xunit.abstractions@2.0.2 -xunit.abstractions@2.0.3 -xunit.analyzers@1.0.0 -xunit.assert@2.4.2 -xunit.core@2.4.2 -xunit.extensibility.core@2.4.0 -xunit.extensibility.core@2.4.2 -xunit.extensibility.execution@2.4.0 -xunit.extensibility.execution@2.4.2 -xunit.runner.visualstudio@2.4.5 -xunit.skippablefact@1.4.13 -xunit@2.4.2 -xunitxml.testlogger@3.0.78 -" - -# Additional PowerShell Gallery modules. -NUGETS+=" -microsoft.powershell.archive@1.2.5 -packagemanagement@1.4.8.1 -powershellget@2.2.5 -psreadline@2.2.6 -threadjob@2.0.3 -" - -inherit check-reqs desktop dotnet-pkg xdg - -DESCRIPTION="Cross-platform automation and configuration tool" -HOMEPAGE="https://microsoft.com/powershell/ - https://github.com/PowerShell/PowerShell/" - -if [[ "${PV}" == *9999* ]] ; then - inherit git-r3 - - EGIT_REPO_URI="https://github.com/PowerShell/${MY_PN}.git" -else - SRC_URI="https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~arm64" -fi - -SRC_URI+=" ${NUGET_URIS} " - -LICENSE="MIT" -SLOT="$(ver_cut 1-2)" - -RDEPEND=" - dev-libs/libpsl-native:= - sys-libs/pam:0/0 - || ( - dev-libs/openssl-compat:1.0.0 - =dev-libs/openssl-1.0*:0/0 - ) -" -DEPEND="${RDEPEND}" -IDEPEND="app-eselect/eselect-pwsh" - -CHECKREQS_DISK_BUILD="2G" -DOTNET_PKG_PROJECTS=( - "${S}/src/powershell-unix/powershell-unix.csproj" - "${S}/src/Modules/PSGalleryModules.csproj" -) -# Lower warning level to skip CS0162 error for the "disable-telemetry" patch. -DOTNET_PKG_BUILD_EXTRA_ARGS=( - -p:WarningLevel=1 -) -PATCHES=( - "${FILESDIR}/pwsh-7.3.3-disable-telemetry.patch" - "${FILESDIR}/pwsh-7.3.3-disable-update-check.patch" -) - -DOCS=( CHANGELOG CHANGELOG.md CODE_OF_CONDUCT.md README.md docs ) - -pkg_setup() { - check-reqs_pkg_setup - dotnet-pkg_pkg_setup -} - -src_unpack() { - dotnet-pkg_src_unpack - - if [[ -n ${EGIT_REPO_URI} ]] ; then - git-r3_src_unpack - fi -} - -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 - psg_modules=( - Microsoft.PowerShell.Archive - PackageManagement - PowerShellGet - PSReadLine - 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}:/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" - - newicon assets/ps_black_128.svg powershell.svg - make_desktop_entry "pwsh-${SLOT} -l" \ - "PowerShell ${SLOT}" powershell "ConsoleOnly;System;" "Terminal=true" - - einstalldocs -} - -pkg_postinst() { - xdg_pkg_postinst - - eselect pwsh update ifunset -} - -pkg_postrm() { - xdg_pkg_postrm - - eselect pwsh update ifunset -} -- cgit v1.2.3