1 |
commit: 9ad7c82ce15f0ef9ac5f1fe4ea612cfc7af2d92f |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 28 11:12:03 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 11:12:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ad7c82c |
7 |
|
8 |
media-video/yle-dl: 2020-06-28 release |
9 |
|
10 |
- upstream is dropping support for php backend. |
11 |
|
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
media-video/yle-dl/yle-dl-20200628.ebuild | 58 +++++++++++++++++++++++++++++++ |
15 |
1 file changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/media-video/yle-dl/yle-dl-20200628.ebuild b/media-video/yle-dl/yle-dl-20200628.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..645801818b9 |
20 |
--- /dev/null |
21 |
+++ b/media-video/yle-dl/yle-dl-20200628.ebuild |
22 |
@@ -0,0 +1,58 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6..8} ) |
29 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
+ |
31 |
+inherit distutils-r1 eutils |
32 |
+ |
33 |
+DESCRIPTION="Download media files from Yle Areena" |
34 |
+HOMEPAGE="https://aajanki.github.io/yle-dl/ https://github.com/aajanki/yle-dl" |
35 |
+SRC_URI="https://github.com/aajanki/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-3" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+ |
41 |
+IUSE="test" |
42 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
43 |
+ |
44 |
+# Requires an active internet connection during tests, |
45 |
+# FEATURES="-network-sandbox" to test. |
46 |
+RESTRICT="test" |
47 |
+ |
48 |
+RDEPEND="${PYTHON_DEPS} |
49 |
+ media-video/ffmpeg |
50 |
+ net-misc/wget |
51 |
+ >=dev-python/attrs-18.1.0[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/configargparse-0.13.0[${PYTHON_USEDEP}] |
53 |
+ dev-python/future[${PYTHON_USEDEP}] |
54 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
55 |
+ dev-python/mini-amf[${PYTHON_USEDEP}] |
56 |
+ dev-python/progress[${PYTHON_USEDEP}] |
57 |
+ dev-python/requests[${PYTHON_USEDEP}]" |
58 |
+DEPEND="test? ( |
59 |
+ ${RDEPEND} |
60 |
+ media-video/ffmpeg[gnutls] |
61 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
62 |
+ )" |
63 |
+BDEPEND="${PYTHON_DEPS}" |
64 |
+ |
65 |
+distutils_enable_tests setup.py |
66 |
+ |
67 |
+DOCS=( COPYING ChangeLog README.fi README.md yledl.conf.sample ) |
68 |
+ |
69 |
+src_install() { |
70 |
+ docompress -x "/usr/share/doc/${PF}/yledl.conf.sample" |
71 |
+ distutils-r1_src_install |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ elog "Sample configuration file has been installed to " |
76 |
+ elog " /usr/share/doc/yle-dl-${PV}/yledl.conf.sample" |
77 |
+ elog "" |
78 |
+ elog "Optional download engines: " |
79 |
+ optfeature "youtube-dl download engine" net-misc/youtube-dl |
80 |
+} |