Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dev-dotnet/dotnetcore-sdk-bin-common/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ DIST dotnet-sdk-5.0.405-linux-x64.tar.gz 142442372 BLAKE2B 664549356de17535a8680
DIST dotnet-sdk-6.0.102-linux-arm.tar.gz 169190305 BLAKE2B 4f3aa3e2de89f8c360505c4287207bc285090f79e808e8b7637a3e92bbaaf69a6ea12c7296dfb729cb56a6c6e226ee276ff5e8776b439c140aeab5bcedd05824 SHA512 a72a0e81c62478b0dc662ef0aaeb7f96e7dd534e90b3ac1bdab1ca98dd93a4605881dba6e9ed2315781fdf71f5b33acb1aa5e28090c7a1693405bebed5853094
DIST dotnet-sdk-6.0.102-linux-arm64.tar.gz 167109725 BLAKE2B e687b702ce7e2ad5f8abf87eb63716c2e29880b9fa8c10f37ede05f2d59f2426433549a8d535b71f7243f698a014871b6f2de8a2c2b06600bbe8a74fbdb4a8c5 SHA512 790cbf322ca8fed32eaf574f19d0bdc05656c5a88a65aa4dba8269cfce1443cd7cdeecdd3a40e353c368f055490b70592ca7f15f981a66c5b3a9517d0b09e4cb
DIST dotnet-sdk-6.0.102-linux-x64.tar.gz 173139326 BLAKE2B cac49a69635c4f90bafc8e04b42c36e3196f6af8c39da152f16d771a3eff56fa39271c4af441a687cd9189031f6c68de3063a17aa1d21bc303a8172980c802de SHA512 edd79ebad3327032ea0aaa8504c14e3270050bb459b098202676776b41a3a1d282aaefd1e5e8aa09ef7f7cf7c4601c4783a57112ff6e3d427507e8eec2bfb748
DIST dotnet-sdk-7.0.400-linux-arm.tar.gz 214575600 BLAKE2B a8cc4ba45eea146e14e16221a6ecea35880ad45c8743f40421d327552129510aae80e831fccd9d5d1705b190415851afddc4f4a849196630703adb9f7e073519 SHA512 680641bb807483831fae57c07b635b710be10c1a2791fc98d371cf7417c2f78f187f7542d15177482237ada5a4c874b35318fd0a0f66f0e42bd531048092c1b9
DIST dotnet-sdk-7.0.400-linux-arm64.tar.gz 213854110 BLAKE2B d055272539b072a4052804d9eae841c96fe22d8c4c8c271c20a863b6ff9fbd3eb229d84704ca47777b5f57bdced572b3a94afde51533634a6ce81d23234e7f7f SHA512 474879abcf40d4a06d54e02997a3fb93dd10c8d5f0dfd5acbf7e1a6f493a6d3421e426431d512b482c62cda92d7cda4eddd8bab80f923d0d2da583edaa8905e8
DIST dotnet-sdk-7.0.400-linux-x64.tar.gz 219369006 BLAKE2B 440eae4ee3feb06974d93c6afc5d1d21207d1ca21357c65c54bc192dadcf7e203c8e9c1f565255ec27a0d4d6c227e3a98e02a6a03456f69d298cbc5d726a3aad SHA512 4cfeedb8e99ffd423da7a99159ee3f31535fd142711941b8206542acb6be26638fbd9a184a5d904084ffdbd8362c83b6b2acf9d193b2cd38bf7f061443439e3c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

EAPI="7"

inherit eutils

MY_PV="${PV}"

DESCRIPTION="Common files shared between multiple slots of .NET Core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

EAPI="7"

inherit eutils

MY_PV="${PV}"

DESCRIPTION="Common files shared between multiple slots of .NET Core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

EAPI="7"

inherit eutils

MY_PV="${PV}"

DESCRIPTION="Common files shared between multiple slots of .NET Core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

EAPI="7"

inherit eutils

MY_PV="${PV}"

DESCRIPTION="Common files shared between multiple slots of .NET Core"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

MY_PV="${PV}"

DESCRIPTION="Common files shared between multiple slots of .NET Core"
HOMEPAGE="https://www.microsoft.com/net/core"
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="0"
KEYWORDS=""

QA_PREBUILT="*"
RESTRICT="splitdebug"

# The sdk includes the runtime-bin and aspnet-bin so prevent from installing at the same time
# dotnetcore-sdk is the source based build

RDEPEND="
~dev-dotnet/dotnetcore-sdk-bin-${PV}
!dev-dotnet/dotnet-sdk[dotnet-symlink(+)]
!dev-dotnet/dotnet-sdk-bin[dotnet-symlink(+)]
"

S=${WORKDIR}

src_prepare() {
default

# For current .NET Core versions, all the directories contain versioned files,
# but the top-level files (the dotnet binary for example) are shared between versions,
# and those are backward-compatible.
# The exception from this above rule is packs/NETStandard.Library.Ref which is shared between >=3.0 versions.
# These common files are installed by the non-slotted dev-dotnet/dotnetcore-sdk-bin-common
# package, while the directories are installed by dev-dotnet/dotnetcore-sdk-bin which uses
# slots depending on major .NET Core version.
# This makes it possible to install multiple major versions at the same time.

# Skip the versioned files (which are located inside sub-directories)
find . -maxdepth 1 -type d ! -name . ! -name packs -exec rm -rf {} \; || die
find ./packs -maxdepth 1 -type d ! -name packs ! -name NETStandard.Library.Ref -exec rm -rf {} \; || die
}

src_install() {
local dest="opt/dotnet_core"
dodir "${dest}"

local ddest="${D}/${dest}"
cp -a "${S}"/* "${ddest}/" || die
dosym "/${dest}/dotnet" "/usr/bin/dotnet"

# set an env-variable for 3rd party tools
echo -n "DOTNET_ROOT=/${dest}" > "${T}/90dotnet"
doenvd "${T}/90dotnet"
}
3 changes: 3 additions & 0 deletions dev-dotnet/dotnetcore-sdk-bin/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DIST dotnet-sdk-7.0.400-linux-arm.tar.gz 214575600 BLAKE2B a8cc4ba45eea146e14e16221a6ecea35880ad45c8743f40421d327552129510aae80e831fccd9d5d1705b190415851afddc4f4a849196630703adb9f7e073519 SHA512 680641bb807483831fae57c07b635b710be10c1a2791fc98d371cf7417c2f78f187f7542d15177482237ada5a4c874b35318fd0a0f66f0e42bd531048092c1b9
DIST dotnet-sdk-7.0.400-linux-arm64.tar.gz 213854110 BLAKE2B d055272539b072a4052804d9eae841c96fe22d8c4c8c271c20a863b6ff9fbd3eb229d84704ca47777b5f57bdced572b3a94afde51533634a6ce81d23234e7f7f SHA512 474879abcf40d4a06d54e02997a3fb93dd10c8d5f0dfd5acbf7e1a6f493a6d3421e426431d512b482c62cda92d7cda4eddd8bab80f923d0d2da583edaa8905e8
DIST dotnet-sdk-7.0.400-linux-x64.tar.gz 219369006 BLAKE2B 440eae4ee3feb06974d93c6afc5d1d21207d1ca21357c65c54bc192dadcf7e203c8e9c1f565255ec27a0d4d6c227e3a98e02a6a03456f69d298cbc5d726a3aad SHA512 4cfeedb8e99ffd423da7a99159ee3f31535fd142711941b8206542acb6be26638fbd9a184a5d904084ffdbd8362c83b6b2acf9d193b2cd38bf7f061443439e3c
71 changes: 71 additions & 0 deletions dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-7.0.400.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

MY_PV="${PV}"

DESCRIPTION=".NET Core SDK - binary precompiled for glibc"
HOMEPAGE="https://www.microsoft.com/net/core"
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="7.0"
KEYWORDS=""

QA_PREBUILT="*"
RESTRICT="splitdebug"

# The sdk includes the runtime-bin and aspnet-bin so prevent from installing at the same time
# dotnetcore-sdk is the source based build

RDEPEND="
app-crypt/mit-krb5
>=dev-dotnet/dotnetcore-sdk-bin-common-${PV}
dev-libs/icu
|| ( dev-libs/openssl dev-libs/openssl-compat:1.0.0 )
dev-util/lldb
dev-util/lttng-ust
net-misc/curl
sys-apps/lsb-release
sys-devel/llvm
sys-libs/libunwind
sys-libs/zlib"

S=${WORKDIR}

src_prepare() {
default

# For current .NET Core versions, all the directories contain versioned files,
# but the top-level files (the dotnet binary for example) are shared between versions,
# and those are backward-compatible.
# The exception from this above rule is packs/NETStandard.Library.Ref which is shared between >=3.0 versions.
# These common files are installed by the non-slotted dev-dotnet/dotnetcore-sdk-bin-common
# package, while the directories are installed by dev-dotnet/dotnetcore-sdk-bin which uses
# slots depending on major .NET Core version.
# This makes it possible to install multiple major versions at the same time.

# Skip the common files
find . -maxdepth 1 -type f -exec rm -f {} \; || die
rm -rf ./packs/NETStandard.Library.Ref || die

# 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 "${workloads}" && touch "${workloads}/userlocal"; } || die
}

src_install() {
local dest="opt/dotnet_core"
dodir "${dest}"

local ddest="${D}/${dest}"
cp -a "${S}"/* "${ddest}/" || die
}