mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/clr-loader: new package, 0.2.6
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
7
dev-python/clr-loader/Manifest
Normal file
7
dev-python/clr-loader/Manifest
Normal file
@@ -0,0 +1,7 @@
|
||||
DIST clr_loader-0.2.6.tar.gz 44757 BLAKE2B dd1a9513ffebc39b0861780d14c85b98e2b08b9911fd34bef180dcf76a5fc9f95236db47d3802b4cdcc7bcfb9343de4b1d4c516036562baf92d3e37e07ff42c0 SHA512 59d7918de9ca0b42dd7509b43f7994a5b3788e01fa4015e00e7957f4430c8291ad8736615b859ca0a91d26ad9a495677cb724654414f870f7f43d07d1b6516ce
|
||||
DIST microsoft.netcore.platforms.1.1.0.nupkg 17960 BLAKE2B 6a9fa22d75f5a1c65746dd71a63c3d4e37c393e99c23007c10f5ecce248a04863bf26e7562c7751177a6985eaac266c29cc6a5443a4a853e773f88994ad2a3fd SHA512 6bf892c274596fe2c7164e3d8503b24e187f64d0b7bec6d9b05eb95f04086fceb7a85ea6b2685d42dc465c52f6f0e6f636c0b3fddac48f6f0125dfd83e92d106
|
||||
DIST microsoft.netframework.referenceassemblies.1.0.0.nupkg 20946 BLAKE2B ac609f5ddaec68f4afca36b710408e8f5601f13e6b2c793dae11e1afd3f8fc9b45c3ae9abba2429b4f414a43a48f8e0ea11498f439a17158257701466f372582 SHA512 c8f18b9fc83113c65086d93f7dfd9d62600edd614f5eaaeb294d96cc46bb024cc1cbd93b665f849a33d367acd4df30913db1e50ebc695de7e12cd185a6e1ee9e
|
||||
DIST microsoft.netframework.referenceassemblies.net461.1.0.0.nupkg 20140577 BLAKE2B 1daecb1375a6e1138cfdca86e42f4f96fe8dcd83661dbb7078e7cf66d717bb380222f1947ed2f08730aa842fef172a1e3f67100a4046c0a730601305db2fe7eb SHA512 365cd4012393d95dbb3c84aa18169d59d5eb5ec727efada8af9a2fd5de621829373ec14ca6dd53f1fb76b769ed2e424cdc9cdef03a02162b635b56670db8627f
|
||||
DIST microsoft.netframework.referenceassemblies.net47.1.0.0.nupkg 20046630 BLAKE2B 2679abe247c7aafd320dba304251aad678c428e9a3393663b9ff1bb6a0ba5de8e6f558203bd7c0a27a23d8ee0f36da98c615235a57f6c98db357b1cf499cce37 SHA512 a0f0608af7c77eb0a15d262265bbb692071d3189c83e0a8f90d3277bd033d574618499e29cf0358ea8b28f9c5ba5f0edd1f10f38d09fd2a140c4e9d6107a9c97
|
||||
DIST netstandard.library.2.0.3.nupkg 3146139 BLAKE2B 311e5367398f76c74e78930bc2cd39e450a86bd8626311ded8d58bd84c94a8a84db3c11b2bc10f3eeba20a9d081fe7827981f702ad746b49ae3108c949ba1022 SHA512 e78f0cea69c14895b1b089644077dbce8631a626055d96522f4d29e061d8bfc3e48aa1419e74faf265b998612c03f721f5f0cef4690f824150a5689764dee601
|
||||
DIST nxports.1.0.0.nupkg 883595 BLAKE2B 5439b02e60b6365fd82bcc6326003673825bd9c26a1fdbf5f39a13ee5fada62e74f36d14877f361eeeb328f2f397e0f5b442c6f8efb7b508b2a922cdd0e60d0c SHA512 29e9bb323bf9bf098f3eb78590005ad9fcccf79e602cf8c72535fd06b2e911a9a79db011ac85d37088ec83efed364b7d669b3767c94f403bcde4f56c13d72ba1
|
||||
100
dev-python/clr-loader/clr-loader-0.2.6.ebuild
Normal file
100
dev-python/clr-loader/clr-loader-0.2.6.ebuild
Normal file
@@ -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
|
||||
}
|
||||
19
dev-python/clr-loader/metadata.xml
Normal file
19
dev-python/clr-loader/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>dotnet@gentoo.org</email>
|
||||
<name>Gentoo Dotnet Project</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
clr_loader provides a unified way to load one of the CLR (.NET) runtime
|
||||
implementations (.NET Framework, .NET (Core) or Mono), load assemblies, and
|
||||
call very simple functions.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/pythonnet/clr-loader/issues/</bugs-to>
|
||||
<remote-id type="github">pythonnet/clr-loader</remote-id>
|
||||
<remote-id type="pypi">clr-loader</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user