diff options
| author | Maciej Barć <xgqt@gentoo.org> | 2024-12-30 19:59:46 +0100 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2024-12-30 19:59:46 +0100 |
| commit | ea4afb8f9a7d93372fa5e7db066ade442af2196e (patch) | |
| tree | d7757a49840108835c2f01f77a007ffc61c15f24 /dev-python/clr-loader/clr-loader-0.2.7_p0.ebuild | |
| parent | 96533e0a49d703ad760182517e3bdd649463b86f (diff) | |
| download | gentoo-ea4afb8f9a7d93372fa5e7db066ade442af2196e.tar.gz gentoo-ea4afb8f9a7d93372fa5e7db066ade442af2196e.tar.bz2 gentoo-ea4afb8f9a7d93372fa5e7db066ade442af2196e.zip | |
dev-python/clr-loader: bump to 0.2.7_p0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/clr-loader/clr-loader-0.2.7_p0.ebuild')
| -rw-r--r-- | dev-python/clr-loader/clr-loader-0.2.7_p0.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/clr-loader/clr-loader-0.2.7_p0.ebuild b/dev-python/clr-loader/clr-loader-0.2.7_p0.ebuild new file mode 100644 index 000000000000..71fae40773a5 --- /dev/null +++ b/dev-python/clr-loader/clr-loader-0.2.7_p0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +DOTNET_PKG_COMPAT="9.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 only. + '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 +dotnet-pkg_force-compat + +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup +} + +src_prepare() { + # To be compatible with .NET >= 6.0. + cat <<-EOF > Directory.Build.props || die +<Project> +<PropertyGroup> +<RollForward>Major</RollForward> +</PropertyGroup> +</Project> +EOF + nuget_writeconfig "$(pwd)/" + + distutils-r1_src_prepare +} + +src_configure() { + dotnet-pkg_src_configure + distutils-r1_src_configure +} |
