summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-10-21 21:25:04 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-10-22 02:08:41 +0200
commitcf728706ef23913f37b16a64144c7b70b6d99e45 (patch)
tree261689c6cfbde3a4ee5021ccfcf43d1fc7c30c1f /app-shells
parentdev-lang/arc: require non-minimal Racket (diff)
downloadgentoo-cf728706ef23913f37b16a64144c7b70b6d99e45.tar.gz
gentoo-cf728706ef23913f37b16a64144c7b70b6d99e45.tar.bz2
gentoo-cf728706ef23913f37b16a64144c7b70b6d99e45.zip
app-shells/pwsh: disable telemetry if USE=-vanilla
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/pwsh/pwsh-7.4.1-r2.ebuild (renamed from app-shells/pwsh/pwsh-7.4.1-r1.ebuild)11
-rw-r--r--app-shells/pwsh/pwsh-7.4.5-r2.ebuild (renamed from app-shells/pwsh/pwsh-7.4.5-r1.ebuild)11
2 files changed, 16 insertions, 6 deletions
diff --git a/app-shells/pwsh/pwsh-7.4.1-r1.ebuild b/app-shells/pwsh/pwsh-7.4.1-r2.ebuild
index 6953d1d14729..029b12e0dff1 100644
--- a/app-shells/pwsh/pwsh-7.4.1-r1.ebuild
+++ b/app-shells/pwsh/pwsh-7.4.1-r2.ebuild
@@ -7,7 +7,7 @@
EAPI=8
-DOTNET_PKG_COMPAT=8.0
+DOTNET_PKG_COMPAT="8.0"
NUGET_APIS=(
"https://api.nuget.org/v3-flatcontainer"
"https://www.powershellgallery.com/api/v2"
@@ -260,7 +260,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="$(ver_cut 1-2)"
KEYWORDS="amd64 arm arm64"
-IUSE="gui"
+IUSE="gui vanilla"
# TODO: "LibraryImports.g.cs", "PSVersionInfo.g.cs" not found.
RESTRICT="test"
@@ -291,7 +291,6 @@ DOTNET_PKG_PROJECTS=(
)
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 )
@@ -342,6 +341,12 @@ pkg_setup() {
}
src_prepare() {
+ if ! use vanilla ; then
+ PATCHES+=(
+ "${FILESDIR}/pwsh-7.4.0-disable-telemetry.patch"
+ )
+ fi
+
dotnet-pkg_src_prepare
# This is guarded by "RegexGitVersion" in "PowerShell.Common.props".
diff --git a/app-shells/pwsh/pwsh-7.4.5-r1.ebuild b/app-shells/pwsh/pwsh-7.4.5-r2.ebuild
index 8cf2a585c24f..4f2443ed89d9 100644
--- a/app-shells/pwsh/pwsh-7.4.5-r1.ebuild
+++ b/app-shells/pwsh/pwsh-7.4.5-r2.ebuild
@@ -7,7 +7,7 @@
EAPI=8
-DOTNET_PKG_COMPAT=8.0
+DOTNET_PKG_COMPAT="8.0"
NUGET_APIS=(
"https://api.nuget.org/v3-flatcontainer"
"https://www.powershellgallery.com/api/v2"
@@ -265,7 +265,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="$(ver_cut 1-2)"
KEYWORDS="~amd64 ~arm ~arm64"
-IUSE="gui"
+IUSE="gui vanilla"
# TODO: "LibraryImports.g.cs", "PSVersionInfo.g.cs" not found.
RESTRICT="test"
@@ -296,7 +296,6 @@ DOTNET_PKG_PROJECTS=(
)
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"
)
@@ -348,6 +347,12 @@ pkg_setup() {
}
src_prepare() {
+ if ! use vanilla ; then
+ PATCHES+=(
+ "${FILESDIR}/pwsh-7.4.0-disable-telemetry.patch"
+ )
+ fi
+
dotnet-pkg_src_prepare
# This is guarded by "RegexGitVersion" in "PowerShell.Common.props".