commit:     4e814b89568e9ea364a89bf4b607e7758aceea50
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 15 23:44:37 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Nov 16 01:25:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e814b89

net-misc/yt-dlp: add youtube_dl symlink for python site-packages

Compatibility isn't great but this is enough for packages that do
not make a complex use of it, e.g. gpodder can use it and it
effectively removes youtube's 50kB/s throttling.

Should be better than nothing while waiting for the various
upstreams to officially migrate (which already have open issues,
users are pushing for it).

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../{yt-dlp-2021.11.10.1.ebuild => yt-dlp-2021.11.10.1-r1.ebuild}  | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net-misc/yt-dlp/yt-dlp-2021.11.10.1.ebuild 
b/net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild
similarity index 92%
rename from net-misc/yt-dlp/yt-dlp-2021.11.10.1.ebuild
rename to net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild
index 1aa701367fef..990228a53ee5 100644
--- a/net-misc/yt-dlp/yt-dlp-2021.11.10.1.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild
@@ -24,6 +24,13 @@ python_test() {
        epytest -m 'not download'
 }
 
+python_install() {
+       distutils-r1_python_install
+
+       local sitedir=$(python_get_sitedir)
+       dosym yt_dlp "${sitedir#${EPREFIX}}"/youtube_dl
+}
+
 python_install_all() {
        dodoc README.md Changelog.md supportedsites.md
        doman yt-dlp.1

Reply via email to