From 9004a3eadf536196efaf545b3fba9119d9624512 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 5 Apr 2022 16:14:37 +0200 Subject: [PATCH] dev-python/appdirs: Add from Gentoo It's from Gentoo commit 4daaf1ad23d7fcb5a702c5f3a10009048d3112db. It's a dependency of dev-python/setuptools. --- .../dev-python/appdirs/Manifest | 1 + .../appdirs/appdirs-1.4.4-r2.ebuild | 37 +++++++++++++++++++ .../dev-python/appdirs/metadata.xml | 21 +++++++++++ 3 files changed, 59 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/appdirs/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/appdirs/appdirs-1.4.4-r2.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/appdirs/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/dev-python/appdirs/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/appdirs/Manifest new file mode 100644 index 0000000000..97a4d25f76 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/appdirs/Manifest @@ -0,0 +1 @@ +DIST appdirs-1.4.4.tar.gz 9840 BLAKE2B cb9466f4a7f7c1d6f5b6d7ca031820ec4d3450afcaa8ba571e35387c3109ede4e2afbf2c1141a9d01d13798f55524d5efd3fa12546a9378abbda405353938d79 SHA512 4c0e1e8dcd3f91b8b2d215b3f1e2ffaa85137fe054d07d3a2d442b1419e3b44e96fdea1620bd000bd3f4744f71b71f07280094f073df0ff008fac902af614656 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/appdirs/appdirs-1.4.4-r2.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/appdirs/appdirs-1.4.4-r2.ebuild new file mode 100644 index 0000000000..94cd682f2d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/appdirs/appdirs-1.4.4-r2.ebuild @@ -0,0 +1,37 @@ +# 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 + +DESCRIPTION="Module for determining appropriate platform-specific dirs" +HOMEPAGE="https://github.com/ActiveState/appdirs" +SRC_URI="https://github.com/ActiveState/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +src_configure() { + [[ -e pyproject.toml ]] && + die "Upstream added pyproject.toml, 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 = "appdirs" + dynamic = ["version", "description"] + EOF +} + +python_test() { + "${EPYTHON}" test/test_api.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/appdirs/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-python/appdirs/metadata.xml new file mode 100644 index 0000000000..9f83a4ba77 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/appdirs/metadata.xml @@ -0,0 +1,21 @@ + + + + + prometheanfire@gentoo.org + Matthew Thode + + + openstack@gentoo.org + Openstack + + + python@gentoo.org + Python + + + + appdirs + ActiveState/appdirs + +