forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-dotnet/dotnet-sdk-bin: Update dotnet-sdk-bin and runtimes for .NE…
…T 8.0.100 Closes: gentoo#33826 Signed-off-by: Blake LaFleur <[email protected]> Signed-off-by: Blake LaFleur <[email protected]> Signed-off-by: Maciej Barć <[email protected]>
- Loading branch information
1 parent
8f3b3cc
commit ce87d05
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" | ||
HOMEPAGE="https://dotnet.microsoft.com/ | ||
https://github.com/dotnet/dotnet/" | ||
SRC_URI=" | ||
amd64? ( | ||
elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz ) | ||
elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz ) | ||
) | ||
arm? ( | ||
elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz ) | ||
elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz ) | ||
) | ||
arm64? ( | ||
elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz ) | ||
elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz ) | ||
) | ||
" | ||
S="${WORKDIR}" | ||
|
||
SDK_SLOT="$(ver_cut 1-2)" | ||
RUNTIME_SLOT="${SDK_SLOT}.0" | ||
SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" | ||
|
||
LICENSE="MIT" | ||
KEYWORDS="~amd64 ~arm ~arm64" | ||
RESTRICT="splitdebug" | ||
|
||
RDEPEND=" | ||
app-crypt/mit-krb5:0/0 | ||
dev-libs/icu | ||
dev-util/lttng-ust:0/2.12 | ||
sys-libs/zlib:0/1 | ||
" | ||
IDEPEND="app-eselect/eselect-dotnet" | ||
PDEPEND=" | ||
~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} | ||
~dev-dotnet/dotnet-runtime-nugets-3.1.32 | ||
~dev-dotnet/dotnet-runtime-nugets-6.0.25 | ||
~dev-dotnet/dotnet-runtime-nugets-7.0.14 | ||
" | ||
|
||
QA_PREBUILT="*" | ||
|
||
src_install() { | ||
local dest="opt/${PN}-${SDK_SLOT}" | ||
dodir "${dest%/*}" | ||
|
||
# Create a magic workloads file, bug #841896 | ||
local featureband="$(( $(ver_cut 3) / 100 * 100 ))" # e.g. 404 -> 400 | ||
local workloads="metadata/workloads/${SDK_SLOT}.${featureband}" | ||
|
||
mkdir -p "${S}/${workloads}" || die | ||
touch "${S}/${workloads}/userlocal" || die | ||
|
||
mv "${S}" "${ED}/${dest}" || die | ||
mkdir "${S}" || die | ||
|
||
fperms 0755 "/${dest}" | ||
dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SDK_SLOT}" | ||
} | ||
|
||
pkg_postinst() { | ||
eselect dotnet update ifunset | ||
} | ||
|
||
pkg_postrm() { | ||
eselect dotnet update ifunset | ||
} |