Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/streamlink/
Date: Wed, 12 Sep 2018 18:23:46
Message-Id: 1536776567.c099dfffc9c8d8341e8fb7ed38a1e12bf6930ef4.leio@gentoo
1 commit: c099dfffc9c8d8341e8fb7ed38a1e12bf6930ef4
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 12 18:19:00 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 12 18:22:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c099dfff
7
8 net-misc/streamlink: bump to 0.14.2, fix test deps, python-single
9
10 * Use proper release tarball, which is much smaller
11 * Use python-single, as the modules are only used by the main
12 streamlink executable
13 * Fix backports-shutil_which dep to be only for python2
14 * Adjust test and doc deps (some might be new deps, some were
15 probably used and missing from earlier versions too)
16
17 Closes: https://bugs.gentoo.org/662266
18 Closes: https://bugs.gentoo.org/645932
19 Package-Manager: Portage-2.3.49, Repoman-2.3.10
20
21 net-misc/streamlink/Manifest | 1 +
22 net-misc/streamlink/streamlink-0.14.2.ebuild | 69 ++++++++++++++++++++++++++++
23 2 files changed, 70 insertions(+)
24
25 diff --git a/net-misc/streamlink/Manifest b/net-misc/streamlink/Manifest
26 index 2881b97031a..5386c76826f 100644
27 --- a/net-misc/streamlink/Manifest
28 +++ b/net-misc/streamlink/Manifest
29 @@ -1,5 +1,6 @@
30 DIST streamlink-0.1.0.tar.gz 960622 BLAKE2B 8d035784fc3585c738135a901b6da35b9acee2cc993e4b99b0ed609e6d68eefd6df5fff5ae4b63ef2267fd0606b2f5e29b56da4d40cf49a41c433ab58570a561 SHA512 78b5bd9d35c2fc9c1d9fe3954b439e56cfee48f2b73a95a2c08a53c3a66143938ba162f2d2ba29c8af989565c920756cab605ae772d73828a3dd5a41fc6d30c2
31 DIST streamlink-0.11.0.tar.gz 30718822 BLAKE2B cbda2783bed0e7d721dad44ca8815fa862531fdff84007245a76205dd869098d9ef2d371035e784e1d002497bbbcf8268aa4ee94c63fdc0f16082cf55d878b8f SHA512 a62e906f7b37c9cd33ce5e7d5d84bfee9fa8ca5ddd4699e4985ed932147a346188026fd868b30e6b26ce6b5806217f838bbf8191074f9b0271dd87aaee501f7f
32 +DIST streamlink-0.14.2.tar.gz 643695 BLAKE2B ea28daac32903738206226bce85a4615338b6039be1e4cce18325e977112c3301d6e6ed90d1210f4f362c898397fd980c136a98d8a0d5ff7ee2b6c5cf077f2c6 SHA512 0d9f1db32915392f9d29bcfb40743058352a924435a8ee77f1218c108e937204e88041c908d2f93546beaa70e18db62c961ea31fbdd85c5e7e4315a18118e276
33 DIST streamlink-0.4.0.tar.gz 30674625 BLAKE2B 301ff7e2086425604c59d12063cd5b14f789dc39249bba96faedb0fece663f9e5d65f1f696d40f92f07a95a9edd5c915c71d22dcd1afb378cc000bac6eeebd5e SHA512 58a4110b1e6b20f0b05842ee8450a93d646d523a284cf60ad878b460b8e80081d78658f5abb67744609cfdd0a88ebbf97faf6453b2b53709f259e4f9cc093eed
34 DIST streamlink-0.6.0.tar.gz 30696706 BLAKE2B d735c9605b1d0bb9aa6c52c145b1ee3d9645d5a1be0ab0bbc4a84a3e9c5b527a8a35f3d61c2bc5e51d1549f6328802e13ca83231c08bebc90496144fb25c7dfe SHA512 b9f75bfd2cab577688ed84a6c690f776b2e3af38fa60edb7f2fd73f2c25246c81098652180c3adae61eec8798a7805988cad01c366989a961efdb1e12578af49
35 DIST streamlink-0.7.0.tar.gz 30709251 BLAKE2B 215a8aa8b273e9b46fb86020dd53cb15bd19cb3de77e0b6e4a124916b964077a012cec5358d81707782834031490921fcae8a3a8321b70a43a4b538321eac06e SHA512 6e908229295c4d129d2bb9bfc26c76b20d45c2c9dc8193528a259c572cddd4ea620f9f903fb639ddad206bcad05a416ccc50328d01489a7684ec724a8cf1c3c1
36
37 diff --git a/net-misc/streamlink/streamlink-0.14.2.ebuild b/net-misc/streamlink/streamlink-0.14.2.ebuild
38 new file mode 100644
39 index 00000000000..29939af76eb
40 --- /dev/null
41 +++ b/net-misc/streamlink/streamlink-0.14.2.ebuild
42 @@ -0,0 +1,69 @@
43 +# Copyright 1999-2018 Gentoo Foundation
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=6
47 +
48 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
49 +PYTHON_REQ_USE='xml(+),threads(+)'
50 +DISTUTILS_SINGLE_IMPL=1
51 +
52 +inherit distutils-r1
53 +
54 +DESCRIPTION="CLI for extracting streams from websites to a video player of your choice"
55 +HOMEPAGE="https://streamlink.github.io/"
56 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
57 +
58 +KEYWORDS="~amd64 ~x86"
59 +LICENSE="BSD-2 Apache-2.0"
60 +SLOT="0"
61 +IUSE="doc test"
62 +
63 +RDEPEND="
64 + virtual/python-futures[${PYTHON_USEDEP}]
65 + virtual/python-singledispatch[${PYTHON_USEDEP}]
66 + >dev-python/requests-2.17.1[${PYTHON_USEDEP}]
67 + dev-python/urllib3[${PYTHON_USEDEP}]
68 + dev-python/websocket-client[${PYTHON_USEDEP}]
69 + $(python_gen_cond_dep 'dev-python/backports-shutil_which[${PYTHON_USEDEP}]' 'python2*')
70 + $(python_gen_cond_dep 'dev-python/backports-shutil_get_terminal_size[${PYTHON_USEDEP}]' 'python2*')
71 + dev-python/pycountry[${PYTHON_USEDEP}]
72 + >=dev-python/pycryptodome-3.4.3[${PYTHON_USEDEP}]
73 +"
74 +DEPEND="${RDEPEND}
75 + dev-python/setuptools[${PYTHON_USEDEP}]
76 + doc? (
77 + dev-python/sphinx[${PYTHON_USEDEP}]
78 + dev-python/docutils[${PYTHON_USEDEP}]
79 + dev-python/recommonmark[${PYTHON_USEDEP}]
80 + )
81 + test? (
82 + dev-python/mock[${PYTHON_USEDEP}]
83 + dev-python/requests-mock[${PYTHON_USEDEP}]
84 + dev-python/pytest[${PYTHON_USEDEP}]
85 + dev-python/freezegun[${PYTHON_USEDEP}]
86 + )"
87 +RDEPEND="${RDEPEND}
88 + media-video/rtmpdump
89 + virtual/ffmpeg
90 +"
91 +
92 +python_configure_all() {
93 + # Avoid iso-639, iso3166 dependencies since we use pycountry.
94 + export STREAMLINK_USE_PYCOUNTRY=1
95 +}
96 +
97 +python_compile_all() {
98 + use doc && emake -C docs html man
99 +}
100 +
101 +python_test() {
102 + esetup.py test
103 +}
104 +
105 +python_install_all() {
106 + if use doc; then
107 + local HTML_DOCS=( docs/_build/html/. )
108 + doman docs/_build/man/*
109 + fi
110 + distutils-r1_python_install_all
111 +}