diff options
Diffstat (limited to 'dev-python/appdirs')
-rw-r--r-- | dev-python/appdirs/Manifest | 3 | ||||
-rw-r--r-- | dev-python/appdirs/appdirs-1.4.4.ebuild | 24 | ||||
-rw-r--r-- | dev-python/appdirs/files/appdirs-1.4.4-distutils.patch | 28 |
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/appdirs/Manifest b/dev-python/appdirs/Manifest index c12458b59d0b..5bf4399b0ab8 100644 --- a/dev-python/appdirs/Manifest +++ b/dev-python/appdirs/Manifest @@ -1,4 +1,7 @@ AUX appdirs-1.4.3-distutils.patch 782 BLAKE2B fcb1553424c0d22f4b60702ed7f771897cbb6e3f39078169bd1afe24a5c5825d629a286e620f5692414cd3f2aab9c38ae5ee20c2a18baee540ca685cc40a385e SHA512 e23630772b76f1a339ee74354f74f5d25d7c07a16db2b5ce307dbfd33f665c187aef86d7b7ec9e92bd43a3d8363fb40686d2bf49c10baa3b2825c8835e149905 +AUX appdirs-1.4.4-distutils.patch 700 BLAKE2B 8986f3b3da992b836b4cb1f0e212b91c2f82a714abf94080de0a48a3e5ea8ee5f23b88fca357d56a409b3a57f0cb08b4612d81931c665354a9225db57bdde07d SHA512 add351286f307ce49c340b92ddab731b5c675b32062107c4076002e7e1ec098f5bb541b1985fe6f1881620714446475419d5c7229ab371ffb683c37e00e91494 DIST appdirs-1.4.3.tar.gz 9641 BLAKE2B edd7f6372e25279f6ba0f36cda595649cab7e69430e22bfdfd1bb5aa8d566a4a2fbf24c281adf80ab3eafea93f0f4f79b396688134395c3e5565476f24db75df SHA512 787f551ef5af355bbc77ffb3059553fab77614cce466b4145e4b55fecb8553d329f8748865fd69005d13451a9b11229a65721095a122db83a8433a2661503dfc +DIST appdirs-1.4.4.tar.gz 9840 BLAKE2B cb9466f4a7f7c1d6f5b6d7ca031820ec4d3450afcaa8ba571e35387c3109ede4e2afbf2c1141a9d01d13798f55524d5efd3fa12546a9378abbda405353938d79 SHA512 4c0e1e8dcd3f91b8b2d215b3f1e2ffaa85137fe054d07d3a2d442b1419e3b44e96fdea1620bd000bd3f4744f71b71f07280094f073df0ff008fac902af614656 EBUILD appdirs-1.4.3-r1.ebuild 1211 BLAKE2B 83c2bd72ecc3934923ac57911e3c05c7e706404602cda9afbbf3a685c27acda4e8871cc5b8c6937af6061d58b277a113e7a9a857edae0d26b8ccd10410be7e34 SHA512 7db1a40c67c797ff2a1910b786fda7eb02a3eede9eba8235bbd7f24c76b83b64a77b39ed8387bdcbffe831a61403b9fd556c92d858565513b9f9338ff1931aeb +EBUILD appdirs-1.4.4.ebuild 827 BLAKE2B 5c4e5996d408da5bd4d5ea55b0e8107a3eecdbfffcf24b90ad3f5533b663b2e5127de9150c89d9cc3074b7ef2928ba0ec4a3c3670001ee92140730f38ec1509e SHA512 2775c33a27d36e2436dfb57c595930c945589d8d0851a65688404a47a134a968f3c46b452d58e98576b6d1893f01c89515874c5da1b59a90a42e71107fa7530a MISC metadata.xml 615 BLAKE2B 25ecff1fc659fefee97a373a6c228a4d4609df375113f812f17935bb3d2fa32b79db79930e0458c5c9a3c738ed2c1bf1e999d1dc9d26243749b6401c5245849b SHA512 536fb34e9f8d5657941d883975c17ce95e177376b9434dd72a12b7e59ef126865cd696a0bef5d0d5f016514a216c3cca07b39377e66f87c9e3e706d9afb4cc33 diff --git a/dev-python/appdirs/appdirs-1.4.4.ebuild b/dev-python/appdirs/appdirs-1.4.4.ebuild new file mode 100644 index 000000000000..fcb6e362e930 --- /dev/null +++ b/dev-python/appdirs/appdirs-1.4.4.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# note the patch below +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python2_7 python3_{6,7,8} 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 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +PATCHES=( "${FILESDIR}"/${PN}-1.4.4-distutils.patch ) + +python_test() { + "${PYTHON}" test/test_api.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch b/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch new file mode 100644 index 000000000000..73b871889a0b --- /dev/null +++ b/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch @@ -0,0 +1,28 @@ +From 231643d6865c89f304990bb7f5dc9066f3daeb95 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 13 May 2020 08:50:29 +0200 +Subject: [PATCH] Install via distutils to break cyclic dep with setuptools + +--- + setup.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 7c582f6..fdb8005 100644 +--- a/setup.py ++++ b/setup.py +@@ -1,10 +1,7 @@ + #!/usr/bin/env python + import os + # appdirs is a dependency of setuptools, so allow installing without it. +-try: +- from setuptools import setup +-except ImportError: +- from distutils.core import setup ++from distutils.core import setup + import ast + + +-- +2.26.2 + |