# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Pre-build (and distribution preparation) # Build the tarball: # git clone --depth 1 -b v8.0.2 https://github.com/dotnet/dotnet dotnet-sdk-8.0.2 # cd dotnet-sdk-8.0.2 # git rev-parse HEAD # ./prep.sh # rm -fr .git # cd .. # tar -acf dotnet-sdk-8.0.201-prepared-gentoo-amd64.tar.xz dotnet-sdk-8.0.2 # Upload dotnet-sdk-8.0.201-prepared-gentoo-amd64.tar.xz # Build ("src_compile") # To learn about arguments that are passed to the "build.sh" script see: # https://github.com/dotnet/source-build/discussions/4082 # User variable: GENTOO_DOTNET_BUILD_VERBOSITY - set other verbosity log level. EAPI=8 COMMIT=d396b0c4d3e51c2d8d679b2f7233912bc5bfc2fa SDK_SLOT="$(ver_cut 1-2)" RUNTIME_SLOT="${SDK_SLOT}.2" LLVM_MAX_SLOT=17 PYTHON_COMPAT=( python3_{10..12} ) inherit check-reqs flag-o-matic llvm multiprocessing 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? ( elibc_glibc? ( https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}-prepared-gentoo-amd64.tar.xz ) elibc_musl? ( https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}-prepared-gentoo-musl-amd64.tar.xz ) ) " S="${WORKDIR}/${PN}-${RUNTIME_SLOT}" LICENSE="MIT" SLOT="${SDK_SLOT}/${RUNTIME_SLOT}" 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.27 ~dev-dotnet/dotnet-runtime-nugets-7.0.16 " 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}