1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
|
4 |
# Yes, this is very weird, because this is a "RC" version.
|
|
5 |
# See also the "dev-dotnet/dotnet-sdk-8.0.0_rc1234194" ebuild.
|
|
6 |
|
4 |
7 |
EAPI=8
|
5 |
8 |
|
6 |
9 |
DOTNET_PKG_COMPAT=$(ver_cut 1-2)
|
7 |
10 |
NUGETS="
|
8 |
|
microsoft.aspnetcore.app.ref@${PV}
|
9 |
|
microsoft.aspnetcore.app.runtime.linux-arm@${PV}
|
10 |
|
microsoft.aspnetcore.app.runtime.linux-arm64@${PV}
|
11 |
|
microsoft.aspnetcore.app.runtime.linux-musl-arm@${PV}
|
12 |
|
microsoft.aspnetcore.app.runtime.linux-musl-arm64@${PV}
|
13 |
|
microsoft.aspnetcore.app.runtime.linux-musl-x64@${PV}
|
14 |
|
microsoft.aspnetcore.app.runtime.linux-x64@${PV}
|
15 |
|
microsoft.netcore.app.host.linux-arm@${PV}
|
16 |
|
microsoft.netcore.app.host.linux-arm64@${PV}
|
17 |
|
microsoft.netcore.app.host.linux-musl-arm@${PV}
|
18 |
|
microsoft.netcore.app.host.linux-musl-arm64@${PV}
|
19 |
|
microsoft.netcore.app.host.linux-musl-x64@${PV}
|
20 |
|
microsoft.netcore.app.host.linux-x64@${PV}
|
21 |
|
microsoft.netcore.app.ref@${PV}
|
22 |
|
microsoft.netcore.app.runtime.linux-arm@${PV}
|
23 |
|
microsoft.netcore.app.runtime.linux-arm64@${PV}
|
24 |
|
microsoft.netcore.app.runtime.linux-musl-arm@${PV}
|
25 |
|
microsoft.netcore.app.runtime.linux-musl-arm64@${PV}
|
26 |
|
microsoft.netcore.app.runtime.linux-musl-x64@${PV}
|
27 |
|
microsoft.netcore.app.runtime.linux-x64@${PV}
|
|
11 |
microsoft.aspnetcore.app.runtime.linux-arm@8.0.0-rc.1.23421.29
|
|
12 |
microsoft.aspnetcore.app.runtime.linux-arm64@8.0.0-rc.1.23421.29
|
|
13 |
microsoft.aspnetcore.app.runtime.linux-musl-arm@8.0.0-rc.1.23421.29
|
|
14 |
microsoft.aspnetcore.app.runtime.linux-musl-arm64@8.0.0-rc.1.23421.29
|
|
15 |
microsoft.aspnetcore.app.runtime.linux-musl-x64@8.0.0-rc.1.23421.29
|
|
16 |
microsoft.aspnetcore.app.runtime.linux-x64@8.0.0-rc.1.23421.29
|
|
17 |
microsoft.netcore.app.host.linux-arm@8.0.0-rc.1.23419.4
|
|
18 |
microsoft.netcore.app.host.linux-arm64@8.0.0-rc.1.23419.4
|
|
19 |
microsoft.netcore.app.host.linux-musl-arm@8.0.0-rc.1.23419.4
|
|
20 |
microsoft.netcore.app.host.linux-musl-arm64@8.0.0-rc.1.23419.4
|
|
21 |
microsoft.netcore.app.host.linux-musl-x64@8.0.0-rc.1.23419.4
|
|
22 |
microsoft.netcore.app.host.linux-x64@8.0.0-rc.1.23419.4
|
|
23 |
microsoft.netcore.app.runtime.linux-arm@8.0.0-rc.1.23419.4
|
|
24 |
microsoft.netcore.app.runtime.linux-arm64@8.0.0-rc.1.23419.4
|
|
25 |
microsoft.netcore.app.runtime.linux-musl-arm@8.0.0-rc.1.23419.4
|
|
26 |
microsoft.netcore.app.runtime.linux-musl-arm64@8.0.0-rc.1.23419.4
|
|
27 |
microsoft.netcore.app.runtime.linux-musl-x64@8.0.0-rc.1.23419.4
|
|
28 |
microsoft.netcore.app.runtime.linux-x64@8.0.0-rc.1.23419.4
|
28 |
29 |
"
|
29 |
30 |
|
30 |
31 |
inherit dotnet-pkg-base
|
... | ... | |
35 |
36 |
S="${WORKDIR}"
|
36 |
37 |
|
37 |
38 |
LICENSE="MIT"
|
38 |
|
SLOT="${PV}/${PV}"
|
|
39 |
SLOT="${DOTNET_PKG_COMPAT}/${PV}" # WARNING: Mixed NUGETS versions.
|
39 |
40 |
KEYWORDS="~amd64 ~arm ~arm64"
|
40 |
41 |
|
41 |
42 |
src_unpack() {
|
... | ... | |
43 |
44 |
}
|
44 |
45 |
|
45 |
46 |
src_install() {
|
46 |
|
nuget_donuget "${DISTDIR}/microsoft.aspnetcore.app.ref.${PV}.nupkg"
|
47 |
|
nuget_donuget "${DISTDIR}/microsoft.netcore.app.ref.${PV}.nupkg"
|
|
47 |
# WARNING: The "gentoo-dotnet-maintainer-tools" script did not find
|
|
48 |
# any "app.ref" pkgs! Possibly a bug!
|
|
49 |
# nuget_donuget "${DISTDIR}/microsoft.aspnetcore.app.ref.${PV}.nupkg"
|
|
50 |
# nuget_donuget "${DISTDIR}/microsoft.netcore.app.ref.${PV}.nupkg"
|
48 |
51 |
|
49 |
52 |
local runtime=$(dotnet-pkg-base_get-runtime)
|
50 |
53 |
local -a nuget_namespaces=(
|
... | ... | |
53 |
56 |
microsoft.netcore.app.runtime
|
54 |
57 |
)
|
55 |
58 |
local nuget_namespace
|
|
59 |
local v19_nuget
|
|
60 |
local v21_nuget
|
56 |
61 |
for nuget_namespace in "${nuget_namespaces[@]}" ; do
|
57 |
|
nuget_donuget "${DISTDIR}/${nuget_namespace}.${runtime}.${PV}.nupkg"
|
|
62 |
v19_nuget="${DISTDIR}/${nuget_namespace}.${runtime}.8.0.0-rc.1.23419.4.nupkg"
|
|
63 |
v21_nuget="${DISTDIR}/${nuget_namespace}.${runtime}.8.0.0-rc.1.23421.29.nupkg"
|
|
64 |
|
|
65 |
if [[ -f "${v19_nuget}" ]] ; then
|
|
66 |
nuget_donuget "${v19_nuget}"
|
|
67 |
elif [[ -f "${v21_nuget}" ]] ; then
|
|
68 |
nuget_donuget "${v21_nuget}"
|
|
69 |
else
|
|
70 |
die "No compatible NuGet packages found for ${nuget_namespace}!"
|
|
71 |
fi
|
58 |
72 |
done
|
59 |
73 |
}
|