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: Sat, 05 Feb 2022 23:39:30
Message-Id: 1644104280.aa0e98fdb47c02e703a5b799e7ce65f9508b869a.ionen@gentoo
1 commit: aa0e98fdb47c02e703a5b799e7ce65f9508b869a
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 5 22:27:41 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 5 23:38:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa0e98fd
7
8 net-misc/yt-dlp: drop 2022.1.21
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 net-misc/yt-dlp/Manifest | 1 -
13 net-misc/yt-dlp/yt-dlp-2022.1.21.ebuild | 74 ---------------------------------
14 2 files changed, 75 deletions(-)
15
16 diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest
17 index 602e46b2221d..8c615148fb10 100644
18 --- a/net-misc/yt-dlp/Manifest
19 +++ b/net-misc/yt-dlp/Manifest
20 @@ -1,2 +1 @@
21 -DIST yt-dlp-2022.1.21.tar.gz 2160713 BLAKE2B 30ed1c7a317318ca6a6ee183ba8e4396420eb090ddacc64ddde2bb4077c7c45b01c00caca90d1b8be501f90c71407e27d6ef847fdbfea8bed488771f9b59bbe1 SHA512 5844d49dbf50842d4d51dbb00c16efea816322888d16a8dbce16f976f0dd1625ec8243fcdc07e721180a2f02cf14ebaa0d83a1437e331b4aa68c404db3f1e9f4
22 DIST yt-dlp-2022.2.4.tar.gz 2178642 BLAKE2B 2e6c11bb9fbc30b725dc26db727500c33af944d16fbc46be8fb35a75ab4f5c09ca0c8754f075b9739ca9d47e9b409f8d533c03b417217344f8cac1ec45968b51 SHA512 6bb6bee6f748147a566394bbe0b69781ab415398582cb8e88a49b61a5dd106e666b0429c8f4f6483bc4af0363e88eb95c5159457b7049cc11a2c99a6495c6895
23
24 diff --git a/net-misc/yt-dlp/yt-dlp-2022.1.21.ebuild b/net-misc/yt-dlp/yt-dlp-2022.1.21.ebuild
25 deleted file mode 100644
26 index a9f9a75ef095..000000000000
27 --- a/net-misc/yt-dlp/yt-dlp-2022.1.21.ebuild
28 +++ /dev/null
29 @@ -1,74 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -PYTHON_COMPAT=( python3_{8..10} )
36 -inherit bash-completion-r1 distutils-r1 optfeature
37 -
38 -DESCRIPTION="youtube-dl fork with additional features and fixes"
39 -HOMEPAGE="https://github.com/yt-dlp/yt-dlp"
40 -SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz"
41 -
42 -LICENSE="Unlicense"
43 -SLOT="0"
44 -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv x86"
45 -
46 -RDEPEND="
47 - dev-python/pycryptodome[${PYTHON_USEDEP}]
48 - !net-misc/youtube-dl"
49 -
50 -distutils_enable_tests pytest
51 -
52 -python_prepare_all() {
53 - distutils-r1_python_prepare_all
54 -
55 - # adjust requires for pycryptodome and optional dependencies (bug #828466)
56 - sed -ri setup.py \
57 - -e "s/'(pycryptodome)x'/'\1'/" \
58 - -e "s/'(mutagen|websockets)',?//g" || die
59 -}
60 -
61 -python_test() {
62 - epytest -m 'not download' -p no:markdown
63 -}
64 -
65 -python_install() {
66 - distutils-r1_python_install
67 -
68 - local sitedir=$(python_get_sitedir)
69 - dosym yt_dlp "${sitedir#${EPREFIX}}"/youtube_dl
70 -}
71 -
72 -python_install_all() {
73 - dodoc README.md Changelog.md supportedsites.md
74 - doman yt-dlp.1
75 -
76 - dobashcomp completions/bash/yt-dlp
77 -
78 - insinto /usr/share/fish/vendor_completions.d
79 - doins completions/fish/yt-dlp.fish
80 -
81 - insinto /usr/share/zsh/site-functions
82 - doins completions/zsh/_yt-dlp
83 -
84 - rm -r "${ED}"/usr/share/doc/yt_dlp || die
85 -
86 - newbin - youtube-dl <<-EOF
87 - #!/usr/bin/env sh
88 - exec yt-dlp --compat-options youtube-dl "\${@}"
89 - EOF
90 -}
91 -
92 -pkg_postinst() {
93 - optfeature "various features (merging tracks, streamed content)" media-video/ffmpeg
94 - has_version media-video/atomicparsley || # allow fallback but don't advertise
95 - optfeature "embedding metadata thumbnails in MP4/M4A files" media-libs/mutagen
96 -
97 - if [[ ! ${REPLACING_VERSIONS} ]] ||
98 - ver_test ${REPLACING_VERSIONS} -lt 2021.10.22-r2; then
99 - elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was installed'
100 - elog 'as "youtube-dl". This is strictly for compatibility and it is'
101 - elog 'recommended to use "yt-dlp" directly, it may be removed in the future.'
102 - fi
103 -}