1 |
commit: 0ad5994c619a0d086d4b62217a4f044fdd1b3b47 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 13 23:11:21 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 13 23:19:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ad5994c |
7 |
|
8 |
dev-python/tqdm: sync live ebuild with 4.33.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.16 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/tqdm/tqdm-9999.ebuild | 49 ++++++++++++++++++++++++++++++++-------- |
14 |
1 file changed, 40 insertions(+), 9 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/tqdm/tqdm-9999.ebuild b/dev-python/tqdm/tqdm-9999.ebuild |
17 |
index b269ad3ec5c..9a0b9b8ea05 100644 |
18 |
--- a/dev-python/tqdm/tqdm-9999.ebuild |
19 |
+++ b/dev-python/tqdm/tqdm-9999.ebuild |
20 |
@@ -3,19 +3,50 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
25 |
+PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} ) |
26 |
|
27 |
-inherit distutils-r1 git-r3 |
28 |
+inherit distutils-r1 |
29 |
|
30 |
-DESCRIPTION="Add a progress meter to your loops in a second." |
31 |
+if [[ ${PV} == 9999 ]]; then |
32 |
+ inherit git-r3 |
33 |
+ EGIT_REPO_URI="https://github.com/tqdm/tqdm" |
34 |
+else |
35 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ KEYWORDS="~amd64 ~x86" |
37 |
+fi |
38 |
+ |
39 |
+DESCRIPTION="Add a progress meter to your loops in a second" |
40 |
HOMEPAGE="https://github.com/tqdm/tqdm" |
41 |
-SRC_URI="" |
42 |
-EGIT_REPO_URI="https://github.com/tqdm/tqdm" |
43 |
|
44 |
LICENSE="MIT" |
45 |
SLOT="0" |
46 |
-KEYWORDS="" |
47 |
-IUSE="" |
48 |
+IUSE="examples test" |
49 |
+ |
50 |
+# Uses pkg_resources |
51 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
52 |
+BDEPEND=" |
53 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
54 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
55 |
+" |
56 |
+ |
57 |
+python_test() { |
58 |
+ # tests_main.py requires the package to be installed |
59 |
+ distutils_install_for_testing |
60 |
+ # Skip unpredictable performance tests |
61 |
+ nosetests tqdm -v -I 'tests_perf.py' \ |
62 |
+ || die "tests failed with ${EPYTHON}" |
63 |
+} |
64 |
+ |
65 |
+python_install() { |
66 |
+ doman "${BUILD_DIR}"/lib/tqdm/tqdm.1 |
67 |
+ rm "${BUILD_DIR}"/lib/tqdm/tqdm.1 || die |
68 |
+ distutils-r1_python_install --skip-build |
69 |
+} |
70 |
|
71 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
72 |
-RDEPEND="" |
73 |
+python_install_all() { |
74 |
+ if use examples; then |
75 |
+ dodoc -r examples |
76 |
+ docompress -x /usr/share/doc/${PF}/examples |
77 |
+ fi |
78 |
+ distutils-r1_python_install_all |
79 |
+} |