From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/appdirs/Manifest | 4 +++ dev-python/appdirs/appdirs-1.4.3.ebuild | 36 ++++++++++++++++++++++ .../appdirs/files/appdirs-1.4.3-distutils.patch | 25 +++++++++++++++ dev-python/appdirs/metadata.xml | 24 +++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 dev-python/appdirs/Manifest create mode 100644 dev-python/appdirs/appdirs-1.4.3.ebuild create mode 100644 dev-python/appdirs/files/appdirs-1.4.3-distutils.patch create mode 100644 dev-python/appdirs/metadata.xml (limited to 'dev-python/appdirs') diff --git a/dev-python/appdirs/Manifest b/dev-python/appdirs/Manifest new file mode 100644 index 000000000000..cb1a5582c90a --- /dev/null +++ b/dev-python/appdirs/Manifest @@ -0,0 +1,4 @@ +AUX appdirs-1.4.3-distutils.patch 782 BLAKE2B fcb1553424c0d22f4b60702ed7f771897cbb6e3f39078169bd1afe24a5c5825d629a286e620f5692414cd3f2aab9c38ae5ee20c2a18baee540ca685cc40a385e SHA512 e23630772b76f1a339ee74354f74f5d25d7c07a16db2b5ce307dbfd33f665c187aef86d7b7ec9e92bd43a3d8363fb40686d2bf49c10baa3b2825c8835e149905 +DIST appdirs-1.4.3.tar.gz 9641 BLAKE2B edd7f6372e25279f6ba0f36cda595649cab7e69430e22bfdfd1bb5aa8d566a4a2fbf24c281adf80ab3eafea93f0f4f79b396688134395c3e5565476f24db75df SHA512 787f551ef5af355bbc77ffb3059553fab77614cce466b4145e4b55fecb8553d329f8748865fd69005d13451a9b11229a65721095a122db83a8433a2661503dfc +EBUILD appdirs-1.4.3.ebuild 1187 BLAKE2B 8435f5c829d22d9f0c84d45dbd50ce1de925e97b3110b85195881b24bcc2a7ff4988ef4a3b99982f488cb71fb3c11c1e02ca8c596adc5ca1c6716bd3847bfdcd SHA512 a5904317594dfc2119a9da22b6e3cfd9c0d7a6bcf9721c506cb51e2202d8b181acddd91a99ea6ab725b0836c7a188bff49fbe191a628b0af89730d9ec387bb0f +MISC metadata.xml 742 BLAKE2B 4731940c3aa6e3e0616487d4600c77f31712455aa70eff1bb900ec121cb062e45e1551206b86a5716b49f6163612096cb5ab9e3cf693af2d1fedaac023de29e6 SHA512 c1e35e090d6e3af99b8879a8a553c89989b149617857696fccecb4ea0435979f547049db2cdb7c505b50c20dc9f081233990f6fc0ee05de8ee27c7629292244e diff --git a/dev-python/appdirs/appdirs-1.4.3.ebuild b/dev-python/appdirs/appdirs-1.4.3.ebuild new file mode 100644 index 000000000000..45809ec5dfb9 --- /dev/null +++ b/dev-python/appdirs/appdirs-1.4.3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy 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 sh sparc x86 ~x64-cygwin ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +PATCHES=( "${FILESDIR}"/${PN}-1.4.3-distutils.patch ) + +python_test() { + "${PYTHON}" test/test_api.py || die "Tests fail with ${EPYTHON}" +} + +[[ ${PV} == 1.4.3 ]] || die "Please remove pkg_preinst from the ebuild" +pkg_preinst() { + _remove_egg_info() { + local pyver="$("${PYTHON}" -c 'import sys; print(sys.version[:3])')" + local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info" + if [[ -d ${egginfo} ]]; then + einfo "Removing ${egginfo}" + rm -r "${egginfo}" || die + fi + } + python_foreach_impl _remove_egg_info +} diff --git a/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch b/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch new file mode 100644 index 000000000000..e5245f255fef --- /dev/null +++ b/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch @@ -0,0 +1,25 @@ +Force setup.py to use distutils in order to break setuptools cyclic dependency. + +--- a/setup.py ++++ b/setup.py +@@ -3,10 +3,7 @@ + import os + import os.path + # 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 appdirs + + tests_require = [] +@@ -45,8 +42,6 @@ + Programming Language :: Python :: Implementation :: CPython + Topic :: Software Development :: Libraries :: Python Modules + """.split('\n') if c.strip()], +- test_suite='test.test_api', +- tests_require=tests_require, + keywords='application directory log cache user', + author='Trent Mick', + author_email='trentm@gmail.com', diff --git a/dev-python/appdirs/metadata.xml b/dev-python/appdirs/metadata.xml new file mode 100644 index 000000000000..b0d682902c1b --- /dev/null +++ b/dev-python/appdirs/metadata.xml @@ -0,0 +1,24 @@ + + + + + prometheanfire@gentoo.org + Matthew Thode + + + openstack@gentoo.org + Openstack + + + python@gentoo.org + Python + + + A small Python module for determining appropriate platform-specific + dirs, e.g. a "user data dir". + + + appdirs + ActiveState/appdirs + + -- cgit v1.2.3