commit: 5d5d04a25548de045059dbd1e59c8c28cead2590
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 30 08:48:17 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Oct 30 09:13:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d5d04a2
net-misc/yt-dlp: improve compatibility with youtube-dl
Usually not needed, but some more advanced use of options
may lead to issues without a wrapper.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
.../{yt-dlp-2021.10.22-r1.ebuild => yt-dlp-2021.10.22-r2.ebuild} | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
similarity index 90%
rename from net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
rename to net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
index ccda512819f..c9b4d7614b7 100644
--- a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
@@ -42,5 +42,8 @@ python_install_all() {
rm -r "${ED}"/usr/share/doc/yt_dlp || die
- dosym yt-dlp /usr/bin/youtube-dl # compatibility symlink
+ newbin - youtube-dl <<-EOF
+ #!/usr/bin/env sh
+ exec yt-dlp --compat-options youtube-dl "\${@}"
+ EOF
}