Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-dotnet/dotnet-sdk-bin/
Date: Fri, 30 Apr 2021 11:18:18
Message-Id: 1619781480.4e02c230b4bc46fae41ab902d9b18beb8022c858.telans@gentoo
1 commit: 4e02c230b4bc46fae41ab902d9b18beb8022c858
2 Author: Theo Anderson <telans <AT> posteo <DOT> de>
3 AuthorDate: Fri Apr 30 11:17:50 2021 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Fri Apr 30 11:18:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e02c230
7
8 dev-dotnet/dotnet-sdk-bin: initial import
9
10 Signed-off-by: Theo Anderson <telans <AT> posteo.de>
11
12 dev-dotnet/dotnet-sdk-bin/Manifest | 3 +
13 .../dotnet-sdk-bin/dotnet-sdk-bin-5.0.202.ebuild | 65 ++++++++++++++++++++++
14 dev-dotnet/dotnet-sdk-bin/metadata.xml | 8 +++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest
18 new file mode 100644
19 index 000000000..fed144e93
20 --- /dev/null
21 +++ b/dev-dotnet/dotnet-sdk-bin/Manifest
22 @@ -0,0 +1,3 @@
23 +DIST dotnet-sdk-5.0.202-linux-arm.tar.gz 136556882 BLAKE2B b56fd9e28fae720ebc3e667820f7cb37afdf7353688a3595f3f42ad9f2980c7bc0cbfe886efa66da25c6bbf7f69d5401880ac589669ab4576e32b4fb61bdbc61 SHA512 ac363bbc163100e49b2ad43dfded9bdd3444980d9dca1b51bcd65d6fab73a5fc2251f094fd5e6fa1c1c877251b2f26c684023c0e1b09d1956b9bb543f72c4f0b
24 +DIST dotnet-sdk-5.0.202-linux-arm64.tar.gz 134677034 BLAKE2B 059cf0db945d801c17563f72adc22c8f9ed68e510f43995ac4c36b1e28239a90eccf45d467c4d7ab0587b76f12794d241aa32174ba7fe626a0d003d446007dd8 SHA512 26ec125a0637e71acad20386474df89a101e9ae948921b5de0cd343f4bc0e84b4e7b2318e15978723eb3b9d321e89b790c3f0424a43c29b0015fc6f2b9e3e9d9
25 +DIST dotnet-sdk-5.0.202-linux-x64.tar.gz 140180468 BLAKE2B cbdc6ff24baff47dead2f6e2cc46b11527630a4481dbea2241c205bfd065032a97e9367678d1f0520ea2858f87f2f1f0f5d4872e8c442b375b1c09efae6cc596 SHA512 01ed59f236184987405673d24940d55ce29d830e7dbbc19556fdc03893039e6046712de6f901dc9911047a0dee4fd15319b7e94f8a31df6b981fa35bd93d9838
26
27 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-5.0.202.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-5.0.202.ebuild
28 new file mode 100644
29 index 000000000..83bc828f2
30 --- /dev/null
31 +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-5.0.202.ebuild
32 @@ -0,0 +1,65 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +DESCRIPTION=".NET SDK (includes runtime + aspnet)"
39 +HOMEPAGE="https://dotnet.microsoft.com/"
40 +SRC_URI="
41 + amd64? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz )
42 + arm? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz )
43 + arm64? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz )
44 +"
45 +
46 +LICENSE="MIT"
47 +SLOT="5.0"
48 +KEYWORDS="~amd64 ~arm ~arm64"
49 +
50 +# The SDK includes dotnet-runtime-bin and dotnet-aspnet-bin,
51 +# so prevent installing them at the same time
52 +RDEPEND="
53 + app-crypt/mit-krb5
54 + !dev-dotnet/dotnet-aspnet-bin
55 + !dev-dotnet/dotnet-runtime-bin
56 + ~dev-dotnet/dotnet-sdk-bin-common-${PV}
57 + dev-libs/icu
58 + dev-util/lldb
59 + dev-util/lttng-ust
60 + net-misc/curl
61 + sys-apps/lsb-release
62 + sys-devel/llvm
63 + sys-libs/zlib
64 + || (
65 + dev-libs/openssl
66 + dev-libs/openssl-compat
67 + )
68 + || (
69 + sys-libs/libunwind
70 + sys-libs/llvm-libunwind
71 + )
72 +"
73 +
74 +QA_PREBUILT="*"
75 +
76 +S="${WORKDIR}"
77 +
78 +src_prepare() {
79 + # For current .NET versions, all the directories contain versioned files,
80 + # but the top-level files (the dotnet binary for example) are shared between versions,
81 + # and those are backward-compatible.
82 + # The exception from this above rule is packs/NETStandard.Library.Ref which is shared between >=3.0 versions.
83 + # These common files are installed by the non-slotted dev-dotnet/dotnet-sdk-bin-common
84 + # package, while the directories are installed by dev-dotnet/dotnet-sdk-bin which uses
85 + # slots depending on major .NET version.
86 + # This makes it possible to install multiple major versions at the same time.
87 + default
88 +
89 + # Skip the common files
90 + find . -maxdepth 1 -type f -exec rm -f {} \; || die
91 + rm -rf ./packs/NETStandard.Library.Ref || die
92 +}
93 +
94 +src_install() {
95 + insinto /opt/dotnet
96 + doins -r "${S}/."
97 +}
98
99 diff --git a/dev-dotnet/dotnet-sdk-bin/metadata.xml b/dev-dotnet/dotnet-sdk-bin/metadata.xml
100 new file mode 100644
101 index 000000000..17cfe1629
102 --- /dev/null
103 +++ b/dev-dotnet/dotnet-sdk-bin/metadata.xml
104 @@ -0,0 +1,8 @@
105 +<?xml version="1.0" encoding="UTF-8"?>
106 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
107 +<pkgmetadata>
108 + <maintainer type="project">
109 + <email>telans@××××××.de</email>
110 + <name>Theo Anderson</name>
111 + </maintainer>
112 +</pkgmetadata>