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