From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63E27158086 for ; Tue, 16 Nov 2021 01:26:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D228E07D7; Tue, 16 Nov 2021 01:26:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15C81E07D7 for ; Tue, 16 Nov 2021 01:26:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DC18C342C1D for ; Tue, 16 Nov 2021 01:26:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FC6C143 for ; Tue, 16 Nov 2021 01:26:45 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1637025958.4e814b89568e9ea364a89bf4b607e7758aceea50.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/yt-dlp/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild net-misc/yt-dlp/yt-dlp-2021.11.10.1.ebuild X-VCS-Directories: net-misc/yt-dlp/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 4e814b89568e9ea364a89bf4b607e7758aceea50 X-VCS-Branch: master Date: Tue, 16 Nov 2021 01:26:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2f81de05-3834-4007-b9a8-b632d8529f74 X-Archives-Hash: 4120c9f20084236f71aba489f29346cc commit: 4e814b89568e9ea364a89bf4b607e7758aceea50 Author: Ionen Wolkens gentoo org> AuthorDate: Mon Nov 15 23:44:37 2021 +0000 Commit: Ionen Wolkens gentoo 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 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