Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/yt-dlp/
Date: Fri, 29 Oct 2021 22:25:10
Message-Id: 1635546225.b1a1332c95623f7e67ce7ae20f175ccb072015c5.ionen@gentoo
1 commit: b1a1332c95623f7e67ce7ae20f175ccb072015c5
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 29 22:01:44 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 29 22:23:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1a1332c
7
8 net-misc/yt-dlp: revbump with youtube-dl compatibility symlink
9
10 Some video players and tools/scripts still try to call youtube-dl
11 and users would sometime create this symlink themselves given it
12 functions as a drop-in replacement.
13
14 This blocks net-misc/youtube-dl but there should be little reason
15 to have both installed at same time (youtube-dl is likely headed
16 for last riting), and so not providing a USE.
17
18 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
19
20 net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild | 46 +++++++++++++++++++++++++++++
21 1 file changed, 46 insertions(+)
22
23 diff --git a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
24 new file mode 100644
25 index 00000000000..ccda512819f
26 --- /dev/null
27 +++ b/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
28 @@ -0,0 +1,46 @@
29 +# Copyright 1999-2021 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=8
33 +
34 +PYTHON_COMPAT=( python3_{8..10} )
35 +inherit bash-completion-r1 distutils-r1
36 +
37 +DESCRIPTION="youtube-dl fork with additional features and fixes"
38 +HOMEPAGE="https://github.com/yt-dlp/yt-dlp"
39 +SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz"
40 +
41 +LICENSE="Unlicense"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~riscv ~x86"
44 +
45 +RDEPEND="
46 + dev-python/keyring[${PYTHON_USEDEP}]
47 + dev-python/pycryptodome[${PYTHON_USEDEP}]
48 + dev-python/websockets[${PYTHON_USEDEP}]
49 + media-libs/mutagen[${PYTHON_USEDEP}]
50 + media-video/ffmpeg
51 + !net-misc/youtube-dl"
52 +
53 +distutils_enable_tests pytest
54 +
55 +python_test() {
56 + epytest -m 'not download'
57 +}
58 +
59 +python_install_all() {
60 + dodoc README.md Changelog.md supportedsites.md
61 + doman yt-dlp.1
62 +
63 + dobashcomp completions/bash/yt-dlp
64 +
65 + insinto /usr/share/fish/vendor_completions.d
66 + doins completions/fish/yt-dlp.fish
67 +
68 + insinto /usr/share/zsh/site-functions
69 + doins completions/zsh/_yt-dlp
70 +
71 + rm -r "${ED}"/usr/share/doc/yt_dlp || die
72 +
73 + dosym yt-dlp /usr/bin/youtube-dl # compatibility symlink
74 +}