commit:     897446f88ae976b6487c35ed173736290459f52e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  1 00:00:49 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Nov  1 00:08:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=897446f8

net-misc/yt-dlp: update live

This makes the _pre releases mostly obsolete, but keeping it
until a proper release.

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

 net-misc/yt-dlp/metadata.xml       |  3 ---
 net-misc/yt-dlp/yt-dlp-9999.ebuild | 23 ++++++++++++++++++++++-
 2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/net-misc/yt-dlp/metadata.xml b/net-misc/yt-dlp/metadata.xml
index 597c3a97fb41..20e6fe577213 100644
--- a/net-misc/yt-dlp/metadata.xml
+++ b/net-misc/yt-dlp/metadata.xml
@@ -8,9 +8,6 @@
        <stabilize-allarches/>
        <use>
                <flag name="deno">
-                       (warning: this USE is for testing versions only
-                       currently and can be ignored at the moment)
-
                        Pull in <pkg>dev-lang/deno-bin</pkg> by default
                        needed for proper YouTube support (if this USE
                        is masked on your profile, refer to yt-dlp's

diff --git a/net-misc/yt-dlp/yt-dlp-9999.ebuild 
b/net-misc/yt-dlp/yt-dlp-9999.ebuild
index d94bf67bc493..f553e928b153 100644
--- a/net-misc/yt-dlp/yt-dlp-9999.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-9999.ebuild
@@ -26,9 +26,20 @@ HOMEPAGE="https://github.com/yt-dlp/yt-dlp/";
 
 LICENSE="Unlicense"
 SLOT="0"
-
+IUSE="+deno"
+
+# deno is technically a optfeature, but it is needed for proper YouTube
+# support and most users would expect that to work out-of-the-box
+# (there are alternatives like nodejs but upstream disables support by
+# default due to security concerns, users are on their own for these)
+#
+# yt-dlp-ejs requires pinning due to yt-dlp checking sha512sum of .js,
+# live ebuild users may need to use the self-updater method if out of
+# sync as there are no plans for a yt-dlp-ejs live ebuild at the moment
 RDEPEND="
        dev-python/pycryptodome[${PYTHON_USEDEP}]
+       ~dev-python/yt-dlp-ejs-0.3.0[${PYTHON_USEDEP}]
+       deno? ( dev-lang/deno-bin )
 "
 BDEPEND="
        test? ( media-video/ffmpeg[webp] )
@@ -93,8 +104,18 @@ pkg_postinst() {
        optfeature "decrypting cookies from Chromium-based browsers" 
dev-python/secretstorage
 
        if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog
                elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was 
installed'
                elog 'as "youtube-dl". This is strictly for compatibility and 
it is'
                elog 'recommended to use "yt-dlp" directly, it may be removed 
in the future.'
        fi
+
+       if use !deno; then
+               ewarn
+               ewarn "USE=deno is disabled, using ${PN} with some websites 
like YouTube may"
+               ewarn "not function properly. If your profile does not allow 
enabling this USE,"
+               ewarn "can use net-libs/nodejs instead but it is disabled by 
default due to"
+               ewarn "security(!) concerns and requires manually passing 
'--js-runtimes node'"
+               ewarn "(to be permanent: echo '--js-runtimes node' >> 
~/.config/yt-dlp/config)"
+       fi
 }

Reply via email to