Gentoo Archives: gentoo-commits

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