diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-23 07:52:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-23 07:52:18 +0000 |
commit | 4035d30ea0ada73d992bb7d583c0b37a053714fe (patch) | |
tree | 7a69165d1193f74105c13af2ed89082f75db7fe1 /dev-python/clr-loader/clr-loader-0.2.6.ebuild | |
parent | 686be77442c7f389d8c06c6dafb97294b819146b (diff) |
gentoo auto-resync : 23:12:2023 - 07:52:17
Diffstat (limited to 'dev-python/clr-loader/clr-loader-0.2.6.ebuild')
-rw-r--r-- | dev-python/clr-loader/clr-loader-0.2.6.ebuild | 100 |
1 files changed, 100 insertions, 0 deletions
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 +<Project> +<PropertyGroup> +<RollForward>Major</RollForward> +</PropertyGroup> +</Project> +EOF + + # Because python scripts perform the build. + cat <<EOF > NuGet.config || die +<?xml version="1.0" encoding="utf-8"?> +<configuration> +<packageSources> +<clear /> +<add key="nuget" value="${NUGET_PACKAGES}" /> +</packageSources> +</configuration> +EOF +} + +src_configure() { + dotnet-pkg_src_configure + distutils-r1_src_configure +} |