1 |
commit: c51a2927d2e9bcf2803771e32a95aac22a0f3a3b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 29 04:07:03 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 29 04:17:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c51a2927 |
7 |
|
8 |
net-misc/yt-dlp: add 2022.6.29 |
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.6.29.ebuild | 64 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest |
17 |
index b4490211a700..78dc5f11fc7b 100644 |
18 |
--- a/net-misc/yt-dlp/Manifest |
19 |
+++ b/net-misc/yt-dlp/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST yt-dlp-2022.5.18.tar.gz 2277146 BLAKE2B 95237fcb12aef9d849e5cc5603baeb5b8e6f416db2dad04d8ea7408b966dcd0d05ad3e276342fb9cc3551293a569b48d2b806c360e95c9c96ffb17dff4cbeb9a SHA512 d0c11e6dba336124898e73234c5935386163af8a9dbbe3e2c38ec834ff631557a763e5224c30747dcffcf98364b95b7f1b6121c50ef91ed56653e2ce453548b5 |
22 |
DIST yt-dlp-2022.6.22.1.tar.gz 2314891 BLAKE2B 4c3e854f89281be9c8c301be0ebaf27434f04a6e26f7fe3bbb60e4d68d36605d5d2fce8ae9245c5e6421913bea90cbd4030d30babed81bdd9df56c3c73dfbcdc SHA512 0a0a4b25e0a75774bc659770af7d83a307d2ff4a3eef11c02ca422c0f4920ba47e02350cd72a4c4a4903aa7f97879b979c755318d3b48def6be738e09d72c3c6 |
23 |
+DIST yt-dlp-2022.6.29.tar.gz 2321677 BLAKE2B c1c6e18af961c7d433fae432ecf38feb28bff315ad9a3949c431f35f46a469460ade8a44e23f699d248dee1088bd507981479ab009c3e8152508c730ff146683 SHA512 f6832e70a73a3b787af9a9e2c4219bd593d2eb0e4c37a0d5696a5a11413a7230f4ca5e480db43713477fba6eae076c600ec98f24adb5c651fa5fbb9fdd83ad45 |
24 |
|
25 |
diff --git a/net-misc/yt-dlp/yt-dlp-2022.6.29.ebuild b/net-misc/yt-dlp/yt-dlp-2022.6.29.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..775abf17078d |
28 |
--- /dev/null |
29 |
+++ b/net-misc/yt-dlp/yt-dlp-2022.6.29.ebuild |
30 |
@@ -0,0 +1,64 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+inherit bash-completion-r1 distutils-r1 optfeature wrapper |
39 |
+ |
40 |
+DESCRIPTION="youtube-dl fork with additional features and fixes" |
41 |
+HOMEPAGE="https://github.com/yt-dlp/yt-dlp/" |
42 |
+SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Unlicense" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86 ~x64-macos" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
50 |
+ !net-misc/youtube-dl[-yt-dlp(-)]" |
51 |
+ |
52 |
+distutils_enable_tests pytest |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ distutils-r1_src_prepare |
56 |
+ |
57 |
+ # adjust requires for pycryptodome and optional dependencies (bug #828466) |
58 |
+ sed -ri requirements.txt \ |
59 |
+ -e "s/^(pycryptodome)x/\1/" \ |
60 |
+ -e "/^(brotli.*|certifi|mutagen|websockets)/d" || die |
61 |
+} |
62 |
+ |
63 |
+python_test() { |
64 |
+ epytest -m 'not download' |
65 |
+} |
66 |
+ |
67 |
+python_install_all() { |
68 |
+ dodoc README.md Changelog.md supportedsites.md |
69 |
+ doman yt-dlp.1 |
70 |
+ |
71 |
+ dobashcomp completions/bash/yt-dlp |
72 |
+ |
73 |
+ insinto /usr/share/fish/vendor_completions.d |
74 |
+ doins completions/fish/yt-dlp.fish |
75 |
+ |
76 |
+ insinto /usr/share/zsh/site-functions |
77 |
+ doins completions/zsh/_yt-dlp |
78 |
+ |
79 |
+ rm -r "${ED}"/usr/share/doc/yt_dlp || die |
80 |
+ |
81 |
+ make_wrapper youtube-dl "yt-dlp --compat-options youtube-dl" |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ optfeature "various features (merging tracks, streamed content)" media-video/ffmpeg |
86 |
+ has_version media-video/atomicparsley || # allow fallback but don't advertise |
87 |
+ optfeature "embedding metadata thumbnails in MP4/M4A files" media-libs/mutagen |
88 |
+ |
89 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
90 |
+ elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was installed' |
91 |
+ elog 'as "youtube-dl". This is strictly for compatibility and it is' |
92 |
+ elog 'recommended to use "yt-dlp" directly, it may be removed in the future.' |
93 |
+ fi |
94 |
+} |