# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Build the tarball: # - "$" - shell command, # - ">" - manual action. # $ git clone --depth 1 -b v8.0.0 https://github.com/dotnet/dotnet \ # dotnet-sdk-8.0.0 # $ cd dotnet-sdk-8.0.0 # > Note the checkout tag hash. # $ ./prep.sh # $ rm -fr .git # $ cd .. # $ tar --create --auto-compress --file \ # dotnet-sdk-8.0.100-prepared-gentoo-amd64.tar.xz dotnet-sdk-8.0.0 # > Upload dotnet-sdk-8.0.0_rc1234194-prepared-gentoo-amd64.tar.xz EAPI=8 COMMIT=113d797bc90104bb4f1cc51e1a462cf3d4ef18fc LLVM_MAX_SLOT=16 PYTHON_COMPAT=( python3_{10..12} ) inherit check-reqs flag-o-matic llvm python-any-r1 DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" HOMEPAGE="https://dotnet.microsoft.com/ https://github.com/dotnet/dotnet/" 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}.0" SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" # SDK reports it is version "8.0.100" but the tag .NET SDK team had given # it is "8.0.0". I feel that the pattern is to tag based on "RUNTIME_SLOT". S="${WORKDIR}/${PN}-${RUNTIME_SLOT}" LICENSE="MIT" KEYWORDS="amd64" # STRIP="llvm-strip" corrupts some executables when using the patchelf hack. # Be safe and restrict it for source-built too, bug https://bugs.gentoo.org/923430 RESTRICT="splitdebug strip" CURRENT_NUGETS_DEPEND=" ~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT} " EXTRA_NUGETS_DEPEND=" ~dev-dotnet/dotnet-runtime-nugets-6.0.25 ~dev-dotnet/dotnet-runtime-nugets-7.0.14 " NUGETS_DEPEND=" ${CURRENT_NUGETS_DEPEND} ${EXTRA_NUGETS_DEPEND} " 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 " BDEPEND=" ${PYTHON_DEPS}