1 |
commit: fa2a4b0575891beca88b660fa6c27899799a9d51 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 2 15:25:46 2023 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 15:26:29 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa2a4b05 |
7 |
|
8 |
net-misc/yt-dlp: add 2023.1.2 |
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-2023.1.2.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 3420c7cc33ef..2aa9ed1a80cf 100644 |
18 |
--- a/net-misc/yt-dlp/Manifest |
19 |
+++ b/net-misc/yt-dlp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST yt-dlp-2022.11.11.tar.gz 2470530 BLAKE2B 0d453d08678cccffccd7e4639fd66d08bead30d0cfae6f5a09d46d2a79a03a24b84b7c27d28a1f4b3bb03fdb96b8f9734e7f9910d02b9cd4a04bacdc3ff2c705 SHA512 be29154746f4c499eb25489be45ea759bf83f7aeb086a2a0e90a2bee6936c0d9362b1cd7af5eebed4f01f84a3542a9d5fa5746b647c349cad2e26b45cf4a861b |
22 |
+DIST yt-dlp-2023.1.2.tar.gz 2524384 BLAKE2B f26fab8d2066670e89ae3c98feb1b23fd4eaa7b73ab2e7bf8c17f1c208f3b0eeb9b9df373fec0dcdedbf86f48f887580022507847ad3e2d0f2519925df689e19 SHA512 088a4ea8af83008872b4e123123c630178d550a31628b170bd1484f11e3dfb70a6b0c8b74d936a8b0893c8406d49e9f0c3dacf59d3855cce4ce22d26fb718709 |
23 |
|
24 |
diff --git a/net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild b/net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..c843dbe792a7 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2023 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 |
+} |