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