1 |
commit: e819efd10e7ef9b8db0e4a56a4f34d152bea1d77 |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 6 00:01:45 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 6 21:38:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e819efd1 |
7 |
|
8 |
dev-python/backports-functools-lru-cache: version bump to 1.4 and fix doc build. |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/619028 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/4864 |
13 |
|
14 |
dev-python/backports-functools-lru-cache/Manifest | 1 + |
15 |
.../backports-functools-lru-cache-1.4.ebuild | 54 ++++++++++++++++++++++ |
16 |
2 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/backports-functools-lru-cache/Manifest b/dev-python/backports-functools-lru-cache/Manifest |
19 |
index 74da02cff12..81ac1051ba7 100644 |
20 |
--- a/dev-python/backports-functools-lru-cache/Manifest |
21 |
+++ b/dev-python/backports-functools-lru-cache/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST backports.functools_lru_cache-1.2.1.tar.gz 5763 SHA256 1c20e07f1a8a36a19d5d258b6b076e588d78d8fc7c2c4487ffe3a280f55a7bd1 SHA512 e15e6bbddf252ed48f787a26c9ef693ccceb8ec5b3463f0926d58a1d2720b988cd86b869ec72afc66369a7968316b9eb3ae0b628f1c63a116c2360900df85691 WHIRLPOOL 4d604f38e659117230e58180c6996e1f7b0f1d7c580ffcb5dde947e0d11078989b695fbd50672e65baac6f0bb4fb7612f506084d7589adf4f37720e70fded367 |
24 |
DIST backports.functools_lru_cache-1.3.tar.gz 6685 SHA256 444a21bcec4ae177da554321f81a78dc879eaa8f6ea9920cb904830585d31e95 SHA512 946156266d4b1bccb3eb444d1cceff6568b8c2a62e09bc9197281bdafe912069efa4c857089a7e6ea0247ab9407256a7a7c92485599692e0c0159c428137a342 WHIRLPOOL a4cccbfd49acc640c1e15949919e10343c00f966e22bac7a2dc82af776f35cadce825a7757c5dca32b189797303abedc93aecf3000203819ee869bbb37ac4a03 |
25 |
+DIST backports.functools_lru_cache-1.4.tar.gz 6927 SHA256 31f235852f88edc1558d428d890663c49eb4514ffec9f3650e7f3c9e4a12e36f SHA512 78dcd12f392bc110d1556f567a9f8fe977fa4ddc98a2121ceaf43606687171866832b8d32220dfb4ca335f53e89acecabda9e48ad48571f1741b21ab2d3b8a21 WHIRLPOOL a223576df439818a247784e49d1d401807955a64eee4fdae9b937daaa96afc42e535819b4f6bbd0aaf04a0764a241809a79909ecda359ede60891dfb33305414 |
26 |
|
27 |
diff --git a/dev-python/backports-functools-lru-cache/backports-functools-lru-cache-1.4.ebuild b/dev-python/backports-functools-lru-cache/backports-functools-lru-cache-1.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..a91b8b0f4d9 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/backports-functools-lru-cache/backports-functools-lru-cache-1.4.ebuild |
32 |
@@ -0,0 +1,54 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 pypy ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+MY_PN="${PN/-/.}" |
43 |
+MY_PN="${MY_PN//-/_}" |
44 |
+DESCRIPTION="Backport of functools.lru_cache from Python 3.3" |
45 |
+HOMEPAGE="https://github.com/jaraco/backports.functools_lru_cache" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="doc test" |
52 |
+ |
53 |
+RDEPEND="dev-python/backports[${PYTHON_USEDEP}]" |
54 |
+DEPEND=" |
55 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
57 |
+ doc? ( |
58 |
+ >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] |
59 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
60 |
+ dev-python/rst-linker[${PYTHON_USEDEP}] |
61 |
+ ) |
62 |
+ test? ( |
63 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
68 |
+ |
69 |
+python_compile_all() { |
70 |
+ if use doc; then |
71 |
+ cd docs || die |
72 |
+ sphinx-build . _build/html || die |
73 |
+ HTML_DOCS=( docs/_build/html/. ) |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+python_test() { |
78 |
+ PYTHONPATH=. py.test || die "tests failed with ${EPYTHON}" |
79 |
+} |
80 |
+ |
81 |
+python_install_all() { |
82 |
+ distutils-r1_python_install_all |
83 |
+ |
84 |
+ # avoid a collision with dev-python/backports |
85 |
+ find "${D}" -path '*/backports/__init__.py' -delete || die |
86 |
+} |