From 4035d30ea0ada73d992bb7d583c0b37a053714fe Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 23 Dec 2023 07:52:18 +0000 Subject: gentoo auto-resync : 23:12:2023 - 07:52:17 --- dev-python/clr-loader/clr-loader-0.2.6.ebuild | 100 ++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 dev-python/clr-loader/clr-loader-0.2.6.ebuild (limited to 'dev-python/clr-loader/clr-loader-0.2.6.ebuild') diff --git a/dev-python/clr-loader/clr-loader-0.2.6.ebuild b/dev-python/clr-loader/clr-loader-0.2.6.ebuild new file mode 100644 index 000000000000..79b410339ac2 --- /dev/null +++ b/dev-python/clr-loader/clr-loader-0.2.6.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +DOTNET_PKG_COMPAT=8.0 +NUGETS=" +microsoft.netcore.platforms@1.1.0 +microsoft.netframework.referenceassemblies.net461@1.0.0 +microsoft.netframework.referenceassemblies.net47@1.0.0 +microsoft.netframework.referenceassemblies@1.0.0 +netstandard.library@2.0.3 +nxports@1.0.0 +" + +inherit check-reqs dotnet-pkg distutils-r1 + +DESCRIPTION="Generic pure Python loader for .NET runtimes" +HOMEPAGE="https://pythonnet.github.io/clr-loader/ + https://github.com/pythonnet/clr-loader/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/pythonnet/${PN}.git" +else + inherit pypi + + KEYWORDS="~amd64" +fi + +SRC_URI+=" ${NUGET_URIS} " + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + dev-python/cffi[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} +" + +CHECKREQS_DISK_BUILD="500M" +DOTNET_PKG_PROJECTS=( + example/example.csproj + netfx_loader/ClrLoader.csproj +) + +EPYTEST_DESELECT=( + # Mono + 'tests/test_common.py::test_mono' + 'tests/test_common.py::test_mono_debug' + 'tests/test_common.py::test_mono_signal_chaining' + 'tests/test_common.py::test_mono_set_dir' + + # MS Windows only + 'tests/test_common.py::test_netfx' + 'tests/test_common.py::test_netfx_chinese_path' + 'tests/test_common.py::test_netfx_separate_domain' +) + +distutils_enable_tests pytest + +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup +} + +src_prepare() { + distutils-r1_src_prepare + + # To be compatible with .NET >= 6.0. + cat <<-EOF > Directory.Build.props || die + + +Major + + +EOF + + # Because python scripts perform the build. + cat < NuGet.config || die + + + + + + + +EOF +} + +src_configure() { + dotnet-pkg_src_configure + distutils-r1_src_configure +} -- cgit v1.2.3