commit: b52ce5579837b66f4ab237385cbef0384cbfe7f1
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 26 06:27:18 2025 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 06:34:38 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b52ce557
net-misc/yt-dlp: add 2025.01.26
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
net-misc/yt-dlp/Manifest | 1 +
net-misc/yt-dlp/yt-dlp-2025.01.26.ebuild | 70 ++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest
index 5dec55e0a698..d64f5c432099 100644
--- a/net-misc/yt-dlp/Manifest
+++ b/net-misc/yt-dlp/Manifest
@@ -1 +1,2 @@
DIST yt-dlp-2025.01.15.tar.gz 5819696 BLAKE2B
f846d9bc7dec85667dc6ded40b9307731889fe1736920a40367de8f3ec3b1127f630d437792654baf21a2d83a3cd59757341cb6fbfe95f4b614e650d061c231d
SHA512
20786cb0d16e58dc9fb2b2e35852b496862d79dfa42ebf92e430161c89863fc1d6247a2c1f9220e8555b20ea60ffbabb3e0d81521df98e47677f56ad1f4a68a1
+DIST yt-dlp-2025.01.26.tar.gz 5827713 BLAKE2B
4c305ef5832334b4e21f6f65661392226cfa3c73627153db613f60ef9e8de10b1b795c1d12f81ffd5be435302c8622e0a6bf1a17297db3b3d7b7da957c524723
SHA512
dd3d29f46d897a5595248cb27a9e99447f2638afa449716a96b6712c6cfb53180201e9a6927c09a69eb6d704b8a47d9171c9fb13a674c87b79da0d473bc8bf50
diff --git a/net-misc/yt-dlp/yt-dlp-2025.01.26.ebuild
b/net-misc/yt-dlp/yt-dlp-2025.01.26.ebuild
new file mode 100644
index 000000000000..213369c3ecb0
--- /dev/null
+++ b/net-misc/yt-dlp/yt-dlp-2025.01.26.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+inherit bash-completion-r1 distutils-r1 optfeature wrapper
+
+DESCRIPTION="youtube-dl fork with additional features and fixes"
+HOMEPAGE="https://github.com/yt-dlp/yt-dlp/"
+SRC_URI="
+ https://github.com/yt-dlp/yt-dlp/releases/download/${PV}/${PN}.tar.gz
+ -> ${P}.tar.gz
+"
+S=${WORKDIR}/${PN}
+
+LICENSE="Unlicense"
+SLOT="0"
+# note that yt-dlp bumps are typically done straight-to-stable (unless there
+# was major/breaking changes) given website changes breaks it on a whim
+KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos"
+
+RDEPEND="
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ !net-misc/youtube-dl[-yt-dlp(-)]
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # fails with FEATURES=network-sandbox
+
test/test_networking.py::TestHTTPRequestHandler::test_connect_timeout
+ # fails with FEATURES=distcc, bug #915614
+
test/test_networking.py::TestYoutubeDLNetworking::test_proxy\[None-expected2\]
+ )
+
+ epytest -m 'not download'
+}
+
+python_install_all() {
+ dodoc README.md Changelog.md supportedsites.md
+ doman yt-dlp.1
+
+ dobashcomp completions/bash/yt-dlp
+
+ insinto /usr/share/fish/vendor_completions.d
+ doins completions/fish/yt-dlp.fish
+
+ insinto /usr/share/zsh/site-functions
+ doins completions/zsh/_yt-dlp
+
+ rm -r "${ED}"/usr/share/doc/yt_dlp || die
+
+ make_wrapper youtube-dl "yt-dlp --compat-options youtube-dl"
+}
+
+pkg_postinst() {
+ optfeature "various features (merging tracks, streamed content)"
media-video/ffmpeg
+ has_version media-video/atomicparsley || # allow fallback but don't
advertise
+ optfeature "embedding metadata thumbnails in MP4/M4A files"
media-libs/mutagen
+ optfeature "decrypting cookies from Chromium-based browsers"
dev-python/secretstorage
+
+ if [[ ! ${REPLACING_VERSIONS} ]]; then
+ 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
+}