1 |
commit: ba409b25936da9f200fabe27042891382128a97a |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 29 07:49:00 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 07:49:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba409b25 |
7 |
|
8 |
media-video/yle-dl: fix dependency on configargparse |
9 |
|
10 |
- when using yle-dl in ~amd64 or ~x86 systems. |
11 |
|
12 |
Package-Manager: Portage-2.3.80, Repoman-2.3.18 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
media-video/yle-dl/yle-dl-20191022-r1.ebuild | 68 ++++++++++++++++++++++++++++ |
16 |
1 file changed, 68 insertions(+) |
17 |
|
18 |
diff --git a/media-video/yle-dl/yle-dl-20191022-r1.ebuild b/media-video/yle-dl/yle-dl-20191022-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..91b1833ded1 |
21 |
--- /dev/null |
22 |
+++ b/media-video/yle-dl/yle-dl-20191022-r1.ebuild |
23 |
@@ -0,0 +1,68 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+PYTHON_COMPAT=( python2_7 python3_{5..6} ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Download media files from Yle Areena" |
33 |
+HOMEPAGE="http://aajanki.github.io/yle-dl/" |
34 |
+SRC_URI="https://github.com/aajanki/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="amd64 x86" |
39 |
+ |
40 |
+IUSE="libav php test +youtube-dl" |
41 |
+ |
42 |
+# Requires an active internet connection during tests |
43 |
+RESTRICT="test" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ !libav? ( media-video/ffmpeg ) |
47 |
+ >=dev-python/attrs-18.1.0[${PYTHON_USEDEP}] |
48 |
+ <=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
49 |
+ ~dev-python/configargparse-0.13.0[${PYTHON_USEDEP}] |
50 |
+ dev-python/future[${PYTHON_USEDEP}] |
51 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
52 |
+ dev-python/mini-amf[${PYTHON_USEDEP}] |
53 |
+ dev-python/progress[${PYTHON_USEDEP}] |
54 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
55 |
+ dev-python/requests[${PYTHON_USEDEP}] |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ net-misc/wget |
58 |
+ php? ( |
59 |
+ dev-lang/php:*[bcmath,cli,curl,simplexml] |
60 |
+ >=dev-libs/openssl-1.0.2:0= |
61 |
+ media-video/rtmpdump |
62 |
+ ) |
63 |
+ youtube-dl? ( net-misc/youtube-dl[${PYTHON_USEDEP}] ) |
64 |
+" |
65 |
+DEPEND=" |
66 |
+ test? ( |
67 |
+ ${RDEPEND} |
68 |
+ dev-python/pytest-runner[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+DOCS=( COPYING ChangeLog README.fi README.md yledl.conf.sample ) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ # Gentoo doesn't ship pycryptodomex with pycryptodome |
78 |
+ sed -i 's/pycryptodomex/pycryptodome/g' setup.py || die |
79 |
+} |
80 |
+ |
81 |
+python_test() { |
82 |
+ # For tests to run succesfully, you need to disable network stricting |
83 |
+ # feature first. |
84 |
+ # FEATURES="-network-sandbox test" emerge -a yle-dl |
85 |
+ esetup.py test |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ einfo "Sample configuration file has been installed in " |
90 |
+ einfo " /usr/share/doc/yle-dl-2.37/yledl.conf.sample.bz2" |
91 |
+} |