Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-dotnet/dotnet-sdk-bin/
Date: Sun, 27 Jun 2021 20:46:05
Message-Id: 1624826648.4685f03364f876c53c0b127c8c2bec79dc680647.zmedico@gentoo
1 commit: 4685f03364f876c53c0b127c8c2bec79dc680647
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 19:15:15 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 20:44:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4685f033
7
8 dev-dotnet/dotnet-sdk-bin: Initial import
9
10 This merges the dotnet repo's dotnetcore-sdk-bin-common and
11 dotnetcore-sdk-bin packages into a single dotnet-sdk-bin
12 package. For a complementary dev-dotnet/dotnet-sdk built from
13 source, see https://github.com/gentoo/gentoo/pull/21112.
14
15 Package-Manager: Portage-3.0.20, Repoman-3.0.3
16 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
17
18 dev-dotnet/dotnet-sdk-bin/Manifest | 3 ++
19 .../dotnet-sdk-bin/dotnet-sdk-bin-5.0.301.ebuild | 43 ++++++++++++++++++++++
20 dev-dotnet/dotnet-sdk-bin/metadata.xml | 15 ++++++++
21 3 files changed, 61 insertions(+)
22
23 diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest
24 new file mode 100644
25 index 00000000000..0b7ac621e29
26 --- /dev/null
27 +++ b/dev-dotnet/dotnet-sdk-bin/Manifest
28 @@ -0,0 +1,3 @@
29 +DIST dotnet-sdk-5.0.301-linux-arm.tar.gz 138735656 BLAKE2B c23732749f67bd2ca63cadba9bcb3f5abd4e10d00fed441825e6a59f9d3a3e663101502e5557dd94e737443cc9bbab0d5dbe8f7ebdbde54586596ec5c520a64f SHA512 89663ffb22299ad626d3f1d5129e493fb8784e6ed854b128a364407a060eec2979cd7d3c9e4f3df8e47ccb72b98ff8b18e8d53c7fb65b3455faa7344f67417a2
30 +DIST dotnet-sdk-5.0.301-linux-arm64.tar.gz 136933875 BLAKE2B 6c48c8a2d47ba5bed47e6176d10e273ec996686cb5a4d5b3239098ff23d44526091f7eae1ce762a2eb2f6f31420cafda84471b936082469eadc8c62aa0dcd8bf SHA512 56e233b8f35abe80984bc8a60028f4f8dbc8543313a0711045ef13c693e11e706ee4809574518f57910ec2c93bed896da32760c8143a298556dc25478caca90f
31 +DIST dotnet-sdk-5.0.301-linux-x64.tar.gz 142255332 BLAKE2B 172888e2eb78d2f768cff6a7e99d6473b469b7cbde74a4eab63e601d85bad118be374f330a413a9b6b3e6773340bdaef8ead4ed54a194189a50cac6b61fac556 SHA512 81cd7a3550a262d5c907030677429fa9a1cb515071274931ab760bd8bb2a14f40c9384c8757e1c1aa681b1de22035f16bf20b41ed208becd054cc9bb1f620322
32
33 diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-5.0.301.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-5.0.301.ebuild
34 new file mode 100644
35 index 00000000000..30e9b4e6de5
36 --- /dev/null
37 +++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-5.0.301.ebuild
38 @@ -0,0 +1,43 @@
39 +# Copyright 2021 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI="7"
43 +
44 +MY_PV="${PV}"
45 +
46 +DESCRIPTION=".NET is a free, cross-platform, open-source developer platform"
47 +HOMEPAGE="https://dotnet.microsoft.com/"
48 +LICENSE="MIT"
49 +
50 +SRC_URI="
51 +amd64? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${MY_PV}/dotnet-sdk-${MY_PV}-linux-x64.tar.gz )
52 +arm? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${MY_PV}/dotnet-sdk-${MY_PV}-linux-arm.tar.gz )
53 +arm64? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${MY_PV}/dotnet-sdk-${MY_PV}-linux-arm64.tar.gz )
54 +"
55 +
56 +SLOT="5.0"
57 +KEYWORDS="~amd64 ~arm ~arm64"
58 +IUSE="+dotnet-symlink"
59 +REQUIRED_USE="elibc_glibc"
60 +QA_PREBUILT="*"
61 +RESTRICT+=" splitdebug"
62 +RDEPEND="dotnet-symlink? ( !dev-dotnet/dotnet-sdk[dotnet-symlink(+)] )"
63 +
64 +S=${WORKDIR}
65 +
66 +src_install() {
67 + local dest="opt/${PN}-${SLOT}"
68 + dodir "${dest%/*}"
69 +
70 + { mv "${S}" "${ED}/${dest}" && mkdir "${S}" && fperms 0755 "/${dest}"; } || die
71 + dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SLOT}"
72 +
73 + if use dotnet-symlink; then
74 + dosym "../../${dest}/dotnet" "/usr/bin/dotnet"
75 + dosym "../../${dest}/dotnet" "/usr/bin/dotnet-${SLOT}"
76 +
77 + # set an env-variable for 3rd party tools
78 + echo "DOTNET_ROOT=/${dest}" > "${T}/90${PN}-${SLOT}" || die
79 + doenvd "${T}/90${PN}-${SLOT}"
80 + fi
81 +}
82
83 diff --git a/dev-dotnet/dotnet-sdk-bin/metadata.xml b/dev-dotnet/dotnet-sdk-bin/metadata.xml
84 new file mode 100644
85 index 00000000000..6905cd2c476
86 --- /dev/null
87 +++ b/dev-dotnet/dotnet-sdk-bin/metadata.xml
88 @@ -0,0 +1,15 @@
89 +<?xml version="1.0" encoding="UTF-8"?>
90 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
91 +<pkgmetadata>
92 + <maintainer type="project">
93 + <email>dotnet@g.o</email>
94 + </maintainer>
95 + <upstream>
96 + <doc>https://docs.microsoft.com/en-us/dotnet/</doc>
97 + </upstream>
98 + <use>
99 + <flag name="dotnet-symlink">
100 + Install a dotnet symlink that points to dotnet-bin.
101 + </flag>
102 + </use>
103 +</pkgmetadata>