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