aboutsummaryrefslogtreecommitdiff
blob: 3bcb443735c49719d21c8f08f2642d5472818b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION=".NET Runtime"
HOMEPAGE="https://dotnet.microsoft.com/"
SRC_URI="
	amd64? ( https://dotnetcli.azureedge.net/dotnet/Runtime/${PV}/dotnet-runtime-${PV}-linux-x64.tar.gz )
	arm? ( https://dotnetcli.azureedge.net/dotnet/Runtime/${PV}/dotnet-runtime-${PV}-linux-arm.tar.gz )
	arm64? ( https://dotnetcli.azureedge.net/dotnet/Runtime/${PV}/dotnet-runtime-${PV}-linux-arm64.tar.gz )
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"

# The SDK includes dotnet-runtime-bin so prevent installing the SDK at the same time
RDEPEND="
	app-crypt/mit-krb5
	!dev-dotnet/dotnet-sdk-bin
	!dev-dotnet/dotnet-sdk-bin-common
	dev-libs/icu
	dev-util/lldb
	dev-util/lttng-ust
	net-misc/curl
	sys-apps/lsb-release
	sys-devel/llvm
	sys-libs/zlib
	|| (
		dev-libs/openssl
		dev-libs/openssl-compat
	)
	|| (
		sys-libs/libunwind
		sys-libs/llvm-libunwind
	)
"

QA_PREBUILT="*"

S="${WORKDIR}"

src_install() {
	insinto /opt/dotnet
	doins -r "${S}/."
	dosym ../../opt/dotnet/dotnet /usr/bin/dotnet
	fperms +x /usr/bin/dotnet
	doenvd "${FILESDIR}/80dotnet"
}