1 |
commit: 142e79169d82889577701334837f0d0fe73c3640 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 14:03:31 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 14:12:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=142e7916 |
7 |
|
8 |
net-misc/yt-dlp: add 2022.9.1 |
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.9.1.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 077e711ea5f6..f885ab95da54 100644 |
18 |
--- a/net-misc/yt-dlp/Manifest |
19 |
+++ b/net-misc/yt-dlp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST yt-dlp-2022.8.19.tar.gz 2373949 BLAKE2B c95aabee39ebf4a9285f05e17f85c6fcdb2d7ddc07bc9866e59f55cbbc10bbbb048d22d6dda434eae8383834308e29c959e47ed40d07d20296ead8ad09efb999 SHA512 277a91f4790d7bc34f913e420d3c8b1c563a6a88e6175077cdbf53c60d05afaae56b4103acfc3725015e5075fc1346194e06a81d1d68de743d7173265cb39d25 |
22 |
+DIST yt-dlp-2022.9.1.tar.gz 2387756 BLAKE2B d13f27a4666a967d6bc99a0705cb534b940cf42079eb9d3003c7759542ac8587375b0bf88e0d9c9ddba4f2cace5de00f97f025a624cc15324714e8f3b370737e SHA512 972bc3228ea7800007e56de0c0e182f99fddda76ebee05154827a6d4cf50e056cbaee3ca50d9fc396b2080a65ad5d02cde64de9c26896f33c617346465568355 |
23 |
|
24 |
diff --git a/net-misc/yt-dlp/yt-dlp-2022.9.1.ebuild b/net-misc/yt-dlp/yt-dlp-2022.9.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..775abf17078d |
27 |
--- /dev/null |
28 |
+++ b/net-misc/yt-dlp/yt-dlp-2022.9.1.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+inherit bash-completion-r1 distutils-r1 optfeature wrapper |
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 ~x64-macos" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
49 |
+ !net-misc/youtube-dl[-yt-dlp(-)]" |
50 |
+ |
51 |
+distutils_enable_tests pytest |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ distutils-r1_src_prepare |
55 |
+ |
56 |
+ # adjust requires for pycryptodome and optional dependencies (bug #828466) |
57 |
+ sed -ri requirements.txt \ |
58 |
+ -e "s/^(pycryptodome)x/\1/" \ |
59 |
+ -e "/^(brotli.*|certifi|mutagen|websockets)/d" || die |
60 |
+} |
61 |
+ |
62 |
+python_test() { |
63 |
+ epytest -m 'not download' |
64 |
+} |
65 |
+ |
66 |
+python_install_all() { |
67 |
+ dodoc README.md Changelog.md supportedsites.md |
68 |
+ doman yt-dlp.1 |
69 |
+ |
70 |
+ dobashcomp completions/bash/yt-dlp |
71 |
+ |
72 |
+ insinto /usr/share/fish/vendor_completions.d |
73 |
+ doins completions/fish/yt-dlp.fish |
74 |
+ |
75 |
+ insinto /usr/share/zsh/site-functions |
76 |
+ doins completions/zsh/_yt-dlp |
77 |
+ |
78 |
+ rm -r "${ED}"/usr/share/doc/yt_dlp || die |
79 |
+ |
80 |
+ make_wrapper youtube-dl "yt-dlp --compat-options youtube-dl" |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ optfeature "various features (merging tracks, streamed content)" media-video/ffmpeg |
85 |
+ has_version media-video/atomicparsley || # allow fallback but don't advertise |
86 |
+ optfeature "embedding metadata thumbnails in MP4/M4A files" media-libs/mutagen |
87 |
+ |
88 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
89 |
+ elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was installed' |
90 |
+ elog 'as "youtube-dl". This is strictly for compatibility and it is' |
91 |
+ elog 'recommended to use "yt-dlp" directly, it may be removed in the future.' |
92 |
+ fi |
93 |
+} |