diff options
Diffstat (limited to 'dev-python/jaraco-context')
-rw-r--r-- | dev-python/jaraco-context/Manifest | 2 | ||||
-rw-r--r-- | dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild | 45 | ||||
-rw-r--r-- | dev-python/jaraco-context/jaraco-context-4.1.1.ebuild | 24 |
3 files changed, 46 insertions, 25 deletions
diff --git a/dev-python/jaraco-context/Manifest b/dev-python/jaraco-context/Manifest index e6e4165d3dc8..be21dcda00a8 100644 --- a/dev-python/jaraco-context/Manifest +++ b/dev-python/jaraco-context/Manifest @@ -1,3 +1,3 @@ DIST jaraco.context-4.1.1.tar.gz 7615 BLAKE2B 5734da1c55420c45520aea57398e66a3d880a555c76650bcaf3427911a7814be92f4a879219c8ccf3c808fdf00d3a77b76e68a93ef3fdad4ea50550188118317 SHA512 e01d3bd7b4eb712d00aba3fc40a78a5484141fcacf5bc772287a35ac81eca4c9744963679daadf6a170cf2ec26234243e602c89f71833fe84175ac39fb401453 -EBUILD jaraco-context-4.1.1.ebuild 584 BLAKE2B 2d7c81f64b6e3f1f9d26394df7c7cc775231ae5224b9a48fd38eae861410399bd2b5f36723544a1d3e2e8dfd437115f534347597e211194134c3c9274f2a226d SHA512 8e5a27395cf77771f1096360ef92e83f778715849fa21621260c1bba8aae227c959686ccebf21f0b85af783e6588b7a95ced44a4726c7e5746cae27bdab250ef +EBUILD jaraco-context-4.1.1-r2.ebuild 1221 BLAKE2B 396dd3b6f37187906b38facb475c5b7bf74583ab87994c5e2dce9d733f39dcedac0cf5d0d2291f3ce5068dc165feca645449ac4523a6b746c8ebb3a47117bc35 SHA512 0e45048b2bc7a4d9cde5cf3864309f4cf0ac38ea2f58eeecbd1cddcf4ed44a6ac0f3127c6f0d94c6997657991b84d9aed8ec27c4b340b3156a06e51748f97131 MISC metadata.xml 342 BLAKE2B 814e419c25d4719a2cd0ee3f8d9d5e82f594fcf1a88fc6547a7b9e0f893451be84b099b35d32536fee97c6ecf401e7b93749968ab4ec5e67d352e4ab9777ee34 SHA512 958abf9745fd7fc9896bad75cb4802b9056e023d854ec3539568ceccbbc4f246327ad794999d083ccac5addc98f56e1bd20e2d705a34c4bab3035ca04e93d63a diff --git a/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild b/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild new file mode 100644 index 000000000000..a253d34788f1 --- /dev/null +++ b/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..10} 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 ~m68k ~mips ppc ppc64 ~riscv sparc x86" + +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/dev-python/jaraco-context/jaraco-context-4.1.1.ebuild b/dev-python/jaraco-context/jaraco-context-4.1.1.ebuild deleted file mode 100644 index a7df46b7a8b8..000000000000 --- a/dev-python/jaraco-context/jaraco-context-4.1.1.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 - -MY_PN="${PN/-/.}" -DESCRIPTION="Context managers by jaraco" -HOMEPAGE="https://github.com/jaraco/jaraco.context" -SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" -S="${WORKDIR}/${MY_PN}-${PV}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~ia64 ppc ~ppc64 ~riscv x86" - -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - dev-python/toml[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest |