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: bump to 6.0.201
Closes: gentoo#24534 Signed-off-by: Gergely Nagy <[email protected]> Signed-off-by: Zac Medico <[email protected]>
- Loading branch information
Showing
2 changed files
with
61 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,58 @@ | ||
# Copyright 2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="7" | ||
|
||
MY_PV="${PV}" | ||
|
||
DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" | ||
HOMEPAGE="https://dotnet.microsoft.com/" | ||
LICENSE="MIT" | ||
|
||
SRC_URI=" | ||
amd64? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${MY_PV}/dotnet-sdk-${MY_PV}-linux-x64.tar.gz ) | ||
arm? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${MY_PV}/dotnet-sdk-${MY_PV}-linux-arm.tar.gz ) | ||
arm64? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${MY_PV}/dotnet-sdk-${MY_PV}-linux-arm64.tar.gz ) | ||
" | ||
|
||
SLOT="6.0" | ||
KEYWORDS="~amd64 ~arm ~arm64" | ||
IUSE="+dotnet-symlink" | ||
REQUIRED_USE="elibc_glibc" | ||
QA_PREBUILT="*" | ||
RESTRICT+=" splitdebug" | ||
RDEPEND=" | ||
app-crypt/mit-krb5:0/0 | ||
dev-util/lttng-ust:0 | ||
sys-libs/zlib:0/1 | ||
dotnet-symlink? ( | ||
!dev-dotnet/dotnet-sdk[dotnet-symlink(+)] | ||
!dev-dotnet/dotnet-sdk-bin:3.1[dotnet-symlink(+)] | ||
!dev-dotnet/dotnet-sdk-bin:5.0[dotnet-symlink(+)] | ||
) | ||
" | ||
|
||
S=${WORKDIR} | ||
|
||
src_install() { | ||
local dest="opt/${PN}-${SLOT}" | ||
dodir "${dest%/*}" | ||
|
||
# 6.0.100 is SDK feature band which will not change between minor increases, so 6.0.101, 6.102 | ||
# will still have same 6.0.100 SDK feature band in the name. Thus I have to hard code this | ||
# https://github.com/dotnet/sdk/pull/18823#issuecomment-915603684 | ||
local workloads="metadata/workloads/${SLOT}.100" | ||
|
||
{ mkdir -p "${S}/${workloads}" && touch "${S}/${workloads}/userlocal"; } || die | ||
{ mv "${S}" "${ED}/${dest}" && mkdir "${S}" && fperms 0755 "/${dest}"; } || die | ||
dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SLOT}" | ||
|
||
if use dotnet-symlink; then | ||
dosym "../../${dest}/dotnet" "/usr/bin/dotnet" | ||
dosym "../../${dest}/dotnet" "/usr/bin/dotnet-${SLOT}" | ||
|
||
# set an env-variable for 3rd party tools | ||
echo "DOTNET_ROOT=/${dest}" > "${T}/90${PN}-${SLOT}" || die | ||
doenvd "${T}/90${PN}-${SLOT}" | ||
fi | ||
} |