diff options
author | Gergely Nagy <ngg@ngg.hu> | 2019-10-20 15:53:47 +0200 |
---|---|---|
committer | Gergely Nagy <ngg@ngg.hu> | 2019-10-20 15:55:53 +0200 |
commit | 818924806a080f323dd0e0a8f7922162397c27e6 (patch) | |
tree | 96581b0a35c8229c92c67419c96434b5976a0f70 | |
parent | Merge pull request #441 from dargonforce/powershell (diff) | |
download | dotnet-818924806a080f323dd0e0a8f7922162397c27e6.tar.gz dotnet-818924806a080f323dd0e0a8f7922162397c27e6.tar.bz2 dotnet-818924806a080f323dd0e0a8f7922162397c27e6.zip |
dev-dotnet/dotnetcore-sdk-bin: able to install multiple .NET Core SDK major versions
The dotnetcore-sdk-bin package now uses slots for different major
versions. These can be installed parallel, the shared files between
these are provided by the new dotnetcore-sdk-bin-common package.
The non-slotted versions are removed to avoid confusion.
Fixes: https://github.com/gentoo/dotnet/issues/433
15 files changed, 411 insertions, 203 deletions
diff --git a/dev-dotnet/dotnetcore-sdk-bin-common/Manifest b/dev-dotnet/dotnetcore-sdk-bin-common/Manifest new file mode 100644 index 0000000..63a0f87 --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin-common/Manifest @@ -0,0 +1,4 @@ +DIST dotnet-sdk-2.1.802-linux-x64.tar.gz 167521896 SHA256 0dad8b539a2bc12e050e112489669ffa7128c6d2952b5674fcdde9a86a0604e8 SHA512 8601ec68fa8978c5a08a696cc69f5e0aa9dabf274bade40e2fd9ded2e563f2cc7a1cb418a95c9b52e1fa9b6c4a30993be68cb3b6bbda4598c57b37ec9ce992ad WHIRLPOOL d096513b59ba3e2ef7db312afedb61ff5ff523398d5922582ffe62cbf48c5fb5f4d4a22de6b40bbb5bbb2025d336aa5fe4e277c556e7ebf69409ab9ea0984f2c +DIST dotnet-sdk-2.2.402-linux-x64.tar.gz 170178098 SHA256 4dafe1e6e49c6ddeb658bd702ed7724c4eb393ed719e2d6f557536f17917579a SHA512 81937de0874ee837e3b42e36d1cf9e04bd9deff6ba60d0162ae7ca9336a78f733e624136d27f559728df3f681a72a669869bf91d02db47c5331398c0cfda9b44 WHIRLPOOL fee3ab399ccb3ba46776f5439cb3709b67a5852d50105742dbd9a4999bfecf5b77a080afb226a846038a65482293ab8cd2988c0195056874fbb03ea4424cd884 +DIST dotnet-sdk-3.0.100-linux-x64.tar.gz 113463755 SHA256 12098fe29d5c857fd6093b1fd63eda9f91b92798e3748fcedc0e0727f1ac01c2 SHA512 766da31f9a0bcfbf0f12c91ea68354eb509ac2111879d55b656f19299c6ea1c005d31460dac7c2a4ef82b3edfea30232c82ba301fb52c0ff268d3e3a1b73d8f7 WHIRLPOOL 4fd3a36eda65a59155d480bea7b42ce1fc1331542ee71d7027c78d9f7eebca88a712c2ac2be3bd8ae216d6c6ed045081854af02960ed53e0019e8d2fdee6d718 +DIST dotnet-sdk-3.1.100-preview1-014459-linux-x64.tar.gz 113886947 SHA256 e5f480b7c48b581e093567a982e39d819870f69791f24102684b9b74d5c3a332 SHA512 2d0d4c4af775d46a0a3bf25d1ebb1f6ee51df07a82e53176efb1055cef746ca5074ab95e6dc65ae8f738c34f6a45eae42941c342b24efac5e04fa82ccbcf27d2 WHIRLPOOL 0f6a77532d9bbe7d38803b4aefdb0503497e3ca16b9f366cf20d50e11dceec15c3b3fc284801a30f42cde8835cc1a9b4ed172064602185a6211470338971d463 diff --git a/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-2.1.802.ebuild b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-2.1.802.ebuild new file mode 100644 index 0000000..79fd63e --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-2.1.802.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION="Common files shared between multiple slots of .NET Core" +HOMEPAGE="https://www.microsoft.com/net/core" +LICENSE="MIT" + +SRC_URI=" +amd64? ( https://download.visualstudio.microsoft.com/download/pr/8029a774-0cc8-4c62-945e-169a473b51d3/2c3f6a18aed152e5e498035695ed816f/dotnet-sdk-${PV}-linux-x64.tar.gz ) +" + +SLOT="0" +KEYWORDS="~amd64" + +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/dotnetcore-sdk-bin:0" + +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. + # 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 . -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" +} diff --git a/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-2.2.402.ebuild b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-2.2.402.ebuild new file mode 100644 index 0000000..a1cb499 --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-2.2.402.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION="Common files shared between multiple slots of .NET Core" +HOMEPAGE="https://www.microsoft.com/net/core" +LICENSE="MIT" + +SRC_URI=" +amd64? ( https://download.visualstudio.microsoft.com/download/pr/46411df1-f625-45c8-b5e7-08ab736d3daa/0fbc446088b471b0a483f42eb3cbf7a2/dotnet-sdk-${PV}-linux-x64.tar.gz ) +" + +SLOT="0" +KEYWORDS="~amd64" + +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/dotnetcore-sdk-bin:0" + +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. + # 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 . -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" +} diff --git a/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-3.0.100.ebuild b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-3.0.100.ebuild new file mode 100644 index 0000000..33dcc7b --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-3.0.100.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION="Common files shared between multiple slots of .NET Core" +HOMEPAGE="https://www.microsoft.com/net/core" +LICENSE="MIT" + +SRC_URI=" +amd64? ( https://download.visualstudio.microsoft.com/download/pr/886b4a4c-30af-454b-8bec-81c72b7b4e1f/d1a0c8de9abb36d8535363ede4a15de6/dotnet-sdk-${PV}-linux-x64.tar.gz ) +" + +SLOT="0" +KEYWORDS="~amd64" + +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/dotnetcore-sdk-bin:0" + +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 and 3.1. + # 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" +} diff --git a/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-3.1.100_pre1.ebuild b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-3.1.100_pre1.ebuild new file mode 100644 index 0000000..3a79f65 --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin-common/dotnetcore-sdk-bin-common-3.1.100_pre1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION="Common files shared between multiple slots of .NET Core" +HOMEPAGE="https://www.microsoft.com/net/core" +LICENSE="MIT" + +SRC_URI=" +amd64? ( https://download.visualstudio.microsoft.com/download/pr/a3cc3d8a-226d-4306-a61b-a5446fdb72ef/604e029047aec0229545e8c397a14ddb/dotnet-sdk-3.1.100-preview1-014459-linux-x64.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/dotnetcore-sdk-bin:0" + +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 and 3.1. + # 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" +} diff --git a/dev-dotnet/dotnetcore-sdk-bin-common/metadata.xml b/dev-dotnet/dotnetcore-sdk-bin-common/metadata.xml new file mode 100644 index 0000000..b1262f1 --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin-common/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dotnet@gentoo.org</email> + <description>Gentoo Dotnet Project</description> + </maintainer> +</pkgmetadata> diff --git a/dev-dotnet/dotnetcore-sdk-bin/Manifest b/dev-dotnet/dotnetcore-sdk-bin/Manifest index 55ba6ba..63a0f87 100644 --- a/dev-dotnet/dotnetcore-sdk-bin/Manifest +++ b/dev-dotnet/dotnetcore-sdk-bin/Manifest @@ -1,7 +1,4 @@ -DIST dotnet-sdk-2.1.102-linux-x64.tar.gz 160471459 SHA256 9ce5b9031099bd89ecea9180f48a39e6fbd388b651d4d9e99e95711662988343 SHA512 39bcc14c6453552ea5f400aac7b5838a0361dd15cc2ed9d2794f1185ac2e38c82478e32712e1ad483eeb4edf4b485bb799de26368fccacd98e6c0819f8ff7eef WHIRLPOOL 083237e48e92bb8e83f813d6c5e6cda398b6a38179f4da651ee7e7fa43045cf4e71ed5d3eeec2eb61a0843f37d6480ae55c609c34a0a3466e34d8a3e7a2a5f48 -DIST dotnet-sdk-2.1.105-linux-x64.tar.gz 160514955 SHA256 e914b75b484d5b0e10958559358ae1e172cb250523e5ba1fffc4fe933ebb6523 SHA512 b5e71dee8720595b0eff7518cca49854ed183e7ca68b98e2ca0580be3f6893f25a1bb267367601f575529a0fd8c94bb379a1411564ed5beaa340a54f37a5e16a WHIRLPOOL 54af5da224db0fc003acc786f585f49d53b7211f074a9f7023f3d6095151507d8a566df8460cbbfc8c11a88913ac6892c0eb2dfc8e9d4b5bd058ef76f163e2d5 -DIST dotnet-sdk-2.1.3-linux-x64.tar.gz 148274081 SHA256 e6432b824395d88a69b77cc50427f2b5a41d44964c377125c53f02783aaa5005 SHA512 509b88895fd5a6a90e245141eb52f188aa9ee7d20188c213892483c142900d6975013aef9ca6d8da986cc5617a2c3571e22318297c51578b871c047602757600 WHIRLPOOL 8970e566a9e64d85d697adf785d468bf35493b743011fd1bd3cc82be0de6bdf34752376590272951ba00182ee5a7b97b5ff572af1321c76e3237af40d07fbbbe -DIST dotnet-sdk-2.1.302-linux-musl-x64.tar.gz 159796232 SHA256 419d8bcfbc8f898fcd7be040ce096a7429c7b994d7aa085ecfc8e99c44f0cb2b SHA512 0f9a6fcbad609ef1ff5b398de9a1f1bf59eebc59b28a4c8cfead28f0209bf77601d05d49f5ea1223c860a803fb82cd7e2401b6df290da34e54b36bdd8788ed48 WHIRLPOOL ae239c80c61e2ff9464a521c31215db17bfd743162ce829a9e55902d51fcb48bb3528b40be7f42ed7a733e6e1d8a2aedaa50adba99fcda17beed147138f1024d -DIST dotnet-sdk-2.1.302-linux-x64.tar.gz 159799872 SHA256 2acaed79dfb54afd583a6316be63c4e497bad401e96477e4182a35960c4e1fa9 SHA512 2166986e360f1c3456a33723edb80349e6ede115be04a6331bfbfd0f412494684d174a0cfb21d2feb00d509ce342030160a4b5b445e393ad83bedb613a64bc66 WHIRLPOOL 246ba03dedbef30257435a8d1b4abbedbe280b7a6e7c7c463ee74a5997156ddcb89d172840f2c04aae0996f83cecd4614663cb6e50094e368c382c77c9bc4f0c -DIST dotnet-sdk-2.2.105-linux-x64.tar.gz 165834085 SHA256 46d5e19e37bacde27e603c7bf7b98f6806bda1e2b70bce84420c341ea45e030f SHA512 b7ad26b344995de91848adec56bda5dfe5fef0b83abaa3e4376dc790cf9786e945b625de1ae4cecaf5c5bef86284652886ed87696581553aeda89ee2e2e99517 WHIRLPOOL 038e12c88138cbd5bb69d20800e89afbd499b1e4e9b9be761c0da6fbdc9dfd7d231f167ce5b978a3e3a647981e34888731f7771ed01c4c44403f60c74bcbd86f +DIST dotnet-sdk-2.1.802-linux-x64.tar.gz 167521896 SHA256 0dad8b539a2bc12e050e112489669ffa7128c6d2952b5674fcdde9a86a0604e8 SHA512 8601ec68fa8978c5a08a696cc69f5e0aa9dabf274bade40e2fd9ded2e563f2cc7a1cb418a95c9b52e1fa9b6c4a30993be68cb3b6bbda4598c57b37ec9ce992ad WHIRLPOOL d096513b59ba3e2ef7db312afedb61ff5ff523398d5922582ffe62cbf48c5fb5f4d4a22de6b40bbb5bbb2025d336aa5fe4e277c556e7ebf69409ab9ea0984f2c +DIST dotnet-sdk-2.2.402-linux-x64.tar.gz 170178098 SHA256 4dafe1e6e49c6ddeb658bd702ed7724c4eb393ed719e2d6f557536f17917579a SHA512 81937de0874ee837e3b42e36d1cf9e04bd9deff6ba60d0162ae7ca9336a78f733e624136d27f559728df3f681a72a669869bf91d02db47c5331398c0cfda9b44 WHIRLPOOL fee3ab399ccb3ba46776f5439cb3709b67a5852d50105742dbd9a4999bfecf5b77a080afb226a846038a65482293ab8cd2988c0195056874fbb03ea4424cd884 DIST dotnet-sdk-3.0.100-linux-x64.tar.gz 113463755 SHA256 12098fe29d5c857fd6093b1fd63eda9f91b92798e3748fcedc0e0727f1ac01c2 SHA512 766da31f9a0bcfbf0f12c91ea68354eb509ac2111879d55b656f19299c6ea1c005d31460dac7c2a4ef82b3edfea30232c82ba301fb52c0ff268d3e3a1b73d8f7 WHIRLPOOL 4fd3a36eda65a59155d480bea7b42ce1fc1331542ee71d7027c78d9f7eebca88a712c2ac2be3bd8ae216d6c6ed045081854af02960ed53e0019e8d2fdee6d718 +DIST dotnet-sdk-3.1.100-preview1-014459-linux-x64.tar.gz 113886947 SHA256 e5f480b7c48b581e093567a982e39d819870f69791f24102684b9b74d5c3a332 SHA512 2d0d4c4af775d46a0a3bf25d1ebb1f6ee51df07a82e53176efb1055cef746ca5074ab95e6dc65ae8f738c34f6a45eae42941c342b24efac5e04fa82ccbcf27d2 WHIRLPOOL 0f6a77532d9bbe7d38803b4aefdb0503497e3ca16b9f366cf20d50e11dceec15c3b3fc284801a30f42cde8835cc1a9b4ed172064602185a6211470338971d463 diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.102.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.102.ebuild deleted file mode 100644 index 53fbe13..0000000 --- a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.102.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils - -DESCRIPTION=".NET Core SDK - binary precompiled for glibc" -HOMEPAGE="https://www.microsoft.com/net/core" -LICENSE="MIT" - -SRC_URI=" -amd64? ( https://download.microsoft.com/download/1/2/E/12E2BC14-7A9F-4497-A351-02B7C2DDD599/dotnet-sdk-${PV}-linux-x64.tar.gz -> dotnet-sdk-${PV}-linux-x64.tar.gz ) -" - -SLOT="0" -KEYWORDS="~amd64" - -# 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=" - >=sys-apps/lsb-release-1.4 - >=sys-devel/llvm-4.0 - >=dev-util/lldb-4.0 - >=sys-libs/libunwind-1.1-r1 - >=dev-libs/icu-57.1 - >=dev-util/lttng-ust-2.8.1 - >=dev-libs/openssl-1.0.2h-r2 - >=net-misc/curl-7.49.0 - >=app-crypt/mit-krb5-1.14.2 - >=sys-libs/zlib-1.2.8-r1 - !dev-dotnet/dotnetcore-sdk - !dev-dotnet/dotnetcore-runtime-bin - !dev-dotnet/dotnetcore-aspnet-bin" - -S=${WORKDIR} - -src_install() { - local dest="opt/dotnet_core" - dodir "${dest}" - - local ddest="${D}${dest}" - cp -a "${S}"/* "${ddest}/" || die - dosym "/${dest}/dotnet" "/usr/bin/dotnet" -} diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.105.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.105.ebuild deleted file mode 100644 index 2f75f7f..0000000 --- a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.105.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils - -DESCRIPTION=".NET Core SDK - binary precompiled for glibc" -HOMEPAGE="https://www.microsoft.com/net/core" -LICENSE="MIT" - -SRC_URI=" -amd64? ( https://download.microsoft.com/download/2/E/C/2EC018A0-A0FC-40A2-849D-AA692F68349E/dotnet-sdk-${PV}-linux-x64.tar.gz -> dotnet-sdk-${PV}-linux-x64.tar.gz ) -" - -SLOT="0" -KEYWORDS="~amd64" - -# 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=" - >=sys-apps/lsb-release-1.4 - >=sys-devel/llvm-4.0 - >=dev-util/lldb-4.0 - >=sys-libs/libunwind-1.1-r1 - >=dev-libs/icu-57.1 - >=dev-util/lttng-ust-2.8.1 - >=dev-libs/openssl-1.0.2h-r2 - >=net-misc/curl-7.49.0 - >=app-crypt/mit-krb5-1.14.2 - >=sys-libs/zlib-1.2.8-r1 - !dev-dotnet/dotnetcore-sdk - !dev-dotnet/dotnetcore-runtime-bin - !dev-dotnet/dotnetcore-aspnet-bin" - -S=${WORKDIR} - -src_install() { - local dest="opt/dotnet_core" - dodir "${dest}" - - local ddest="${D}${dest}" - cp -a "${S}"/* "${ddest}/" || die - dosym "/${dest}/dotnet" "/usr/bin/dotnet" -} diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.3.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.3.ebuild deleted file mode 100644 index 2f0a9f9..0000000 --- a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.3.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils - -DESCRIPTION=".NET Core SDK - binary precompiled for glibc" -HOMEPAGE="https://www.microsoft.com/net/core" -LICENSE="MIT" - -SRC_URI=" -amd64? ( https://download.microsoft.com/download/2/9/3/293BC432-348C-4D1C-B628-5AC8AB7FA162/dotnet-sdk-${PV}-linux-x64.tar.gz -> dotnet-sdk-${PV}-linux-x64.tar.gz ) -" - -SLOT="0" -KEYWORDS="~amd64" - -# 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=" - >=sys-apps/lsb-release-1.4 - >=sys-devel/llvm-4.0 - >=dev-util/lldb-4.0 - >=sys-libs/libunwind-1.1-r1 - >=dev-libs/icu-57.1 - >=dev-util/lttng-ust-2.8.1 - >=dev-libs/openssl-1.0.2h-r2 - >=net-misc/curl-7.49.0 - >=app-crypt/mit-krb5-1.14.2 - >=sys-libs/zlib-1.2.8-r1 - !dev-dotnet/dotnetcore-sdk - !dev-dotnet/dotnetcore-runtime-bin - !dev-dotnet/dotnetcore-aspnet-bin" - -S=${WORKDIR} - -src_install() { - local dest="opt/dotnet_core" - dodir "${dest}" - - local ddest="${D}${dest}" - cp -a "${S}"/* "${ddest}/" || die - dosym "/${dest}/dotnet" "/usr/bin/dotnet" -} diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.302.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.302.ebuild deleted file mode 100644 index 3891e16..0000000 --- a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.302.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils - -DESCRIPTION=".NET Core SDK - binary precompiled for glibc and musl" -HOMEPAGE="https://www.microsoft.com/net/core" -LICENSE="MIT" - -_base_src_uri="https://download.microsoft.com/download/4/0/9/40920432-3302-47a8-b13c-bbc4848ad114" - -SRC_URI=" - amd64? ( elibc_glibc? ( $_base_src_uri/dotnet-sdk-${PV}-linux-x64.tar.gz -> dotnet-sdk-${PV}-linux-x64.tar.gz ) ) - amd64? ( elibc_musl? ( $_base_src_uri/dotnet-sdk-${PV}-linux-musl-x64.tar.gz -> dotnet-sdk-${PV}-linux-musl-x64.tar.gz ) ) -" - -SLOT="0" -KEYWORDS="~amd64" - -# 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=" - >=sys-apps/lsb-release-1.4 - >=sys-devel/llvm-4.0 - >=dev-util/lldb-4.0 - >=sys-libs/libunwind-1.1-r1 - >=dev-libs/icu-57.1 - >=dev-util/lttng-ust-2.8.1 - >=dev-libs/openssl-1.0.2h-r2 - >=net-misc/curl-7.49.0 - >=app-crypt/mit-krb5-1.14.2 - >=sys-libs/zlib-1.2.8-r1 - elibc_musl? ( >=dev-libs/libintl-0.19.8.1 ) - !dev-dotnet/dotnetcore-sdk - !dev-dotnet/dotnetcore-runtime-bin - !dev-dotnet/dotnetcore-aspnet-bin -" - -S=${WORKDIR} - -src_install() { - local dest="opt/dotnet_core" - dodir "${dest}" - - local ddest="${D}${dest}" - cp -a "${S}"/* "${ddest}/" || die - dosym "/${dest}/dotnet" "/usr/bin/dotnet" -} diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.0.100.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.802.ebuild index 762883d..cf2e1c3 100644 --- a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.0.100.ebuild +++ b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.1.802.ebuild @@ -10,16 +10,20 @@ HOMEPAGE="https://www.microsoft.com/net/core" LICENSE="MIT" SRC_URI=" -amd64? ( https://download.visualstudio.microsoft.com/download/pr/886b4a4c-30af-454b-8bec-81c72b7b4e1f/d1a0c8de9abb36d8535363ede4a15de6/dotnet-sdk-${PV}-linux-x64.tar.gz -> dotnet-sdk-${PV}-linux-x64.tar.gz ) +amd64? ( https://download.visualstudio.microsoft.com/download/pr/8029a774-0cc8-4c62-945e-169a473b51d3/2c3f6a18aed152e5e498035695ed816f/dotnet-sdk-${PV}-linux-x64.tar.gz ) " -SLOT="0" +SLOT="2.1" KEYWORDS="~amd64" +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-common-${PV} >=sys-apps/lsb-release-1.4 >=sys-devel/llvm-4.0 >=dev-util/lldb-4.0 @@ -31,16 +35,31 @@ RDEPEND=" >=app-crypt/mit-krb5-1.14.2 >=sys-libs/zlib-1.2.8-r1 !dev-dotnet/dotnetcore-sdk + !dev-dotnet/dotnetcore-sdk-bin:0 !dev-dotnet/dotnetcore-runtime-bin !dev-dotnet/dotnetcore-aspnet-bin" 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. + # 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 +} + src_install() { local dest="opt/dotnet_core" dodir "${dest}" local ddest="${D}/${dest}" cp -a "${S}"/* "${ddest}/" || die - dosym "/${dest}/dotnet" "/usr/bin/dotnet" } diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.2.105.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.2.402.ebuild index 1708381..496c6dd 100644 --- a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.2.105.ebuild +++ b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-2.2.402.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI="7" inherit eutils @@ -10,16 +10,20 @@ HOMEPAGE="https://www.microsoft.com/net/core" LICENSE="MIT" SRC_URI=" -amd64? ( https://download.visualstudio.microsoft.com/download/pr/7d8f3f4c-9a90-42c5-956f-45f673384d3f/14d686d853a964025f5c54db237ff6ef/dotnet-sdk-${PV}-linux-x64.tar.gz -> dotnet-sdk-${PV}-linux-x64.tar.gz ) +amd64? ( https://download.visualstudio.microsoft.com/download/pr/46411df1-f625-45c8-b5e7-08ab736d3daa/0fbc446088b471b0a483f42eb3cbf7a2/dotnet-sdk-${PV}-linux-x64.tar.gz ) " -SLOT="0" +SLOT="2.2" KEYWORDS="~amd64" +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-common-${PV} >=sys-apps/lsb-release-1.4 >=sys-devel/llvm-4.0 >=dev-util/lldb-4.0 @@ -31,16 +35,31 @@ RDEPEND=" >=app-crypt/mit-krb5-1.14.2 >=sys-libs/zlib-1.2.8-r1 !dev-dotnet/dotnetcore-sdk + !dev-dotnet/dotnetcore-sdk-bin:0 !dev-dotnet/dotnetcore-runtime-bin !dev-dotnet/dotnetcore-aspnet-bin" 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. + # 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 +} + src_install() { local dest="opt/dotnet_core" dodir "${dest}" - local ddest="${D}${dest}" + local ddest="${D}/${dest}" cp -a "${S}"/* "${ddest}/" || die - dosym "/${dest}/dotnet" "/usr/bin/dotnet" } diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.0.100-r1.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.0.100-r1.ebuild new file mode 100644 index 0000000..43fc998 --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.0.100-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION=".NET Core SDK - binary precompiled for glibc" +HOMEPAGE="https://www.microsoft.com/net/core" +LICENSE="MIT" + +SRC_URI=" +amd64? ( https://download.visualstudio.microsoft.com/download/pr/886b4a4c-30af-454b-8bec-81c72b7b4e1f/d1a0c8de9abb36d8535363ede4a15de6/dotnet-sdk-${PV}-linux-x64.tar.gz ) +" + +SLOT="3.0" +KEYWORDS="~amd64" + +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-common-${PV} + >=sys-apps/lsb-release-1.4 + >=sys-devel/llvm-4.0 + >=dev-util/lldb-4.0 + >=sys-libs/libunwind-1.1-r1 + >=dev-libs/icu-57.1 + >=dev-util/lttng-ust-2.8.1 + >=dev-libs/openssl-1.0.2h-r2 + >=net-misc/curl-7.49.0 + >=app-crypt/mit-krb5-1.14.2 + >=sys-libs/zlib-1.2.8-r1 + !dev-dotnet/dotnetcore-sdk + !dev-dotnet/dotnetcore-sdk-bin:0 + !dev-dotnet/dotnetcore-runtime-bin + !dev-dotnet/dotnetcore-aspnet-bin" + +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 and 3.1. + # 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 +} + +src_install() { + local dest="opt/dotnet_core" + dodir "${dest}" + + local ddest="${D}/${dest}" + cp -a "${S}"/* "${ddest}/" || die +} diff --git a/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.1.100_pre1.ebuild b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.1.100_pre1.ebuild new file mode 100644 index 0000000..aaefb80 --- /dev/null +++ b/dev-dotnet/dotnetcore-sdk-bin/dotnetcore-sdk-bin-3.1.100_pre1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils + +DESCRIPTION=".NET Core SDK - binary precompiled for glibc" +HOMEPAGE="https://www.microsoft.com/net/core" +LICENSE="MIT" + +SRC_URI=" +amd64? ( https://download.visualstudio.microsoft.com/download/pr/a3cc3d8a-226d-4306-a61b-a5446fdb72ef/604e029047aec0229545e8c397a14ddb/dotnet-sdk-3.1.100-preview1-014459-linux-x64.tar.gz ) +" + +SLOT="3.1" +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-common-${PV} + >=sys-apps/lsb-release-1.4 + >=sys-devel/llvm-4.0 + >=dev-util/lldb-4.0 + >=sys-libs/libunwind-1.1-r1 + >=dev-libs/icu-57.1 + >=dev-util/lttng-ust-2.8.1 + >=dev-libs/openssl-1.0.2h-r2 + >=net-misc/curl-7.49.0 + >=app-crypt/mit-krb5-1.14.2 + >=sys-libs/zlib-1.2.8-r1 + !dev-dotnet/dotnetcore-sdk + !dev-dotnet/dotnetcore-sdk-bin:0 + !dev-dotnet/dotnetcore-runtime-bin + !dev-dotnet/dotnetcore-aspnet-bin" + +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 and 3.1. + # 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 +} + +src_install() { + local dest="opt/dotnet_core" + dodir "${dest}" + + local ddest="${D}/${dest}" + cp -a "${S}"/* "${ddest}/" || die +} |