1 |
commit: 354e050c9c802d45ad23a0e810327fb68d3b428c |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 25 11:46:10 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 11:47:17 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=354e050c |
7 |
|
8 |
net-misc/youtube-dl: Update live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.83, Repoman-2.3.20 |
11 |
Bug: https://bugs.gentoo.org/703168 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
net-misc/youtube-dl/youtube-dl-99999999.ebuild | 22 +++++++++++++++------- |
15 |
1 file changed, 15 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/youtube-dl/youtube-dl-99999999.ebuild b/net-misc/youtube-dl/youtube-dl-99999999.ebuild |
18 |
index f30b1cfa0a0..6e013900116 100644 |
19 |
--- a/net-misc/youtube-dl/youtube-dl-99999999.ebuild |
20 |
+++ b/net-misc/youtube-dl/youtube-dl-99999999.ebuild |
21 |
@@ -1,8 +1,8 @@ |
22 |
# Copyright 1999-2019 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI="7" |
26 |
-PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7}) |
27 |
+EAPI=7 |
28 |
+PYTHON_COMPAT=(python{2_7,3_{5,6,7,8}}) |
29 |
inherit bash-completion-r1 distutils-r1 git-r3 readme.gentoo-r1 |
30 |
|
31 |
DESCRIPTION="Download videos from YouTube.com (and more sites...)" |
32 |
@@ -11,18 +11,22 @@ EGIT_REPO_URI="${HOMEPAGE}" |
33 |
LICENSE="public-domain" |
34 |
|
35 |
KEYWORDS="" |
36 |
-RESTRICT="test" |
37 |
SLOT="0" |
38 |
-DEPEND=" |
39 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
40 |
-" |
41 |
+IUSE="test" |
42 |
RDEPEND=" |
43 |
- ${DEPEND} |
44 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
45 |
|| ( |
46 |
dev-python/pycryptodome[${PYTHON_USEDEP}] |
47 |
dev-python/pycrypto[${PYTHON_USEDEP}] |
48 |
) |
49 |
" |
50 |
+DEPEND=" |
51 |
+ ${RDEPEND} |
52 |
+ test? ( |
53 |
+ dev-python/nose[${PYTHON_USEDEP}] |
54 |
+ dev-python/flake8[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+" |
57 |
|
58 |
src_compile() { |
59 |
distutils-r1_src_compile |
60 |
@@ -30,6 +34,10 @@ src_compile() { |
61 |
emake ${PN}.{bash-completion,fish,zsh} |
62 |
} |
63 |
|
64 |
+python_test() { |
65 |
+ emake offlinetest |
66 |
+} |
67 |
+ |
68 |
python_install_all() { |
69 |
dodoc README.md |