From 766596b9067caf74f24ce08a6aae0dfbf7d2e86d Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 5 Apr 2022 16:19:15 +0200 Subject: [PATCH] dev-python/jaraco-context: Add from Gentoo It's from Gentoo commit 293c0419c5a5e7415927ebbc44be467a6e2b4603. It's a dependency of dev-python/jaraco-text and dev-python/nspektr. --- .../dev-python/jaraco-context/Manifest | 1 + .../jaraco-context-4.1.1-r2.ebuild | 45 +++++++++++++++++++ .../dev-python/jaraco-context/metadata.xml | 12 +++++ 3 files changed, 58 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/Manifest new file mode 100644 index 0000000000..2e1a16f878 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/Manifest @@ -0,0 +1 @@ +DIST jaraco.context-4.1.1.tar.gz 7615 BLAKE2B 5734da1c55420c45520aea57398e66a3d880a555c76650bcaf3427911a7814be92f4a879219c8ccf3c808fdf00d3a77b76e68a93ef3fdad4ea50550188118317 SHA512 e01d3bd7b4eb712d00aba3fc40a78a5484141fcacf5bc772287a35ac81eca4c9744963679daadf6a170cf2ec26234243e602c89f71833fe84175ac39fb401453 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild new file mode 100644 index 0000000000..90f35d3b5b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +inherit distutils-r1 + +MY_P=${P/-/.} +DESCRIPTION="Context managers by jaraco" +HOMEPAGE="https://github.com/jaraco/jaraco.context" +SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "setuptools' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "jaraco.context" + version = "${PV}" + description = "Context managers by jaraco" + EOF +} + +python_install() { + distutils-r1_python_install + # rename to workaround a bug in pkg_resources + # https://bugs.gentoo.org/834522 + mv "${D}$(python_get_sitedir)"/jaraco{_,.}context-${PV}.dist-info || die +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/metadata.xml new file mode 100644 index 0000000000..b08af07ab2 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-context/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + + jaraco.context + +