summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-09-15 18:56:00 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-09-15 22:48:42 +0200
commit24db3efe53aa6b8801326cd8ef97d1db801fb34b (patch)
treeb774b010906200f277d032c977a5bb239563a73b /dev-dotnet/dotnet-sdk
parentvirtual/dotnet-sdk: add 6.0-r2 and 7.0-r1 (diff)
downloadgentoo-24db3efe53aa6b8801326cd8ef97d1db801fb34b.tar.gz
gentoo-24db3efe53aa6b8801326cd8ef97d1db801fb34b.tar.bz2
gentoo-24db3efe53aa6b8801326cd8ef97d1db801fb34b.zip
dev-dotnet/dotnet-sdk: new package; add 7.0.105
Bug: https://bugs.gentoo.org/900597 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-dotnet/dotnet-sdk')
-rw-r--r--dev-dotnet/dotnet-sdk/Manifest1
-rw-r--r--dev-dotnet/dotnet-sdk/dotnet-sdk-7.0.105.ebuild90
-rw-r--r--dev-dotnet/dotnet-sdk/metadata.xml15
3 files changed, 106 insertions, 0 deletions
diff --git a/dev-dotnet/dotnet-sdk/Manifest b/dev-dotnet/dotnet-sdk/Manifest
new file mode 100644
index 000000000000..1ef44346ab87
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk/Manifest
@@ -0,0 +1 @@
+DIST dotnet-sdk-7.0.105-prepared-gentoo-amd64.tar.xz 1617916684 BLAKE2B 729d2027e3c356581f7db763d7da09cba512a1a48ddf6492e632dd15eaa547efa8153abeec73c37b5e31e0b8d94c54e0495dd0e67dbe8d1592dbb93b5484e830 SHA512 f45366830435a3adb03221a684818337b3ad6af6b3d46edbf0a664af1c49e7b949c0d2c4507b61c767fdddfa492d32d341cd22e2e4ad28657504ed34757c6aff
diff --git a/dev-dotnet/dotnet-sdk/dotnet-sdk-7.0.105.ebuild b/dev-dotnet/dotnet-sdk/dotnet-sdk-7.0.105.ebuild
new file mode 100644
index 000000000000..f6d6fa9003e4
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk/dotnet-sdk-7.0.105.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+## Build the tarball:
+## ./build.sh --configuration Release --architecture x64 \
+## /p:ArcadeBuildTarball=true /p:TarballDir="$(pwd)/dotnet-sdk-7.0.105"
+## cd dotnet-sdk-7.0.105
+## ./prep.sh --bootstrap
+## cd ..
+## tar --create --auto-compress --file dotnet-sdk-7.0.105.tar.xz dotnet-sdk-7.0.105
+## mv dotnet-sdk-7.0.105.tar.xz dotnet-sdk-7.0.1050-prepared-gentoo-amd64.tar.xz
+## upload dotnet-sdk-7.0.1050-amd64.tar.xz
+
+EAPI=8
+
+inherit check-reqs
+
+DESCRIPTION=".NET is a free, cross-platform, open-source developer platform"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="
+ amd64? ( https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}-prepared-gentoo-amd64.tar.xz )
+"
+
+SDK_SLOT="$(ver_cut 1-2)"
+RUNTIME_SLOT="${SDK_SLOT}.5"
+SLOT="${SDK_SLOT}/${RUNTIME_SLOT}"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ dev-util/cmake
+ dev-vcs/git
+ sys-devel/clang
+"
+RDEPEND="
+ app-crypt/mit-krb5:0/0
+ dev-libs/icu
+ dev-libs/openssl:=
+ dev-util/lttng-ust:0/2.12
+ sys-libs/zlib:0/1
+"
+IDEPEND="app-eselect/eselect-dotnet"
+PDEPEND="
+ ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT}
+ ~dev-dotnet/dotnet-runtime-nugets-3.1.32
+ ~dev-dotnet/dotnet-runtime-nugets-6.0.16
+"
+
+CHECKREQS_DISK_BUILD="20G"
+
+# QA_PREBUILT="*" # TODO: Which binaries are created by dotnet itself?
+
+src_prepare() {
+ unset DOTNET_DATA DOTNET_ROOT
+ unset NUGET_DATA NUGET_PACKAGES
+
+ default
+}
+
+src_compile() {
+ # Remove .NET leftover files that block build.
+ if [[ -f /tmp/PackageVersions.props ]] ; then
+ rm /tmp/PackageVersions.props # nonfatal
+ fi
+
+ ebegin "Building .NET SDK ${SDK_SLOT}"
+ bash ./build.sh --clean-while-building
+ eend ${?} || die "build failed"
+}
+
+src_install() {
+ local dest=/usr/$(get_libdir)/${PN}-${SDK_SLOT}
+ dodir ${dest}
+
+ ebegin "Extracting SDK archive"
+ tar xzf artifacts/*/Release/${P}-*.tar.gz -C "${ED}"/${dest}
+ eend ${?} || die "extraction failed"
+
+ fperms 0755 ${dest}
+ dosym -r ${dest}/dotnet /usr/bin/dotnet-${SDK_SLOT}
+}
+
+pkg_postinst() {
+ eselect dotnet update ifunset
+}
+
+pkg_postrm() {
+ eselect dotnet update ifunset
+}
diff --git a/dev-dotnet/dotnet-sdk/metadata.xml b/dev-dotnet/dotnet-sdk/metadata.xml
new file mode 100644
index 000000000000..b2549c1c3737
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>dotnet@gentoo.org</email>
+ <name>Gentoo Dotnet Project</name>
+ </maintainer>
+ <upstream>
+ <doc>https://learn.microsoft.com/en-us/dotnet/</doc>
+ <bugs-to>https://github.com/dotnet/sdk/issues/</bugs-to>
+ <remote-id type="github">dotnet/installer</remote-id>
+ <remote-id type="github">dotnet/sdk</remote-id>
+ </upstream>
+</pkgmetadata>