commit:     52749da69e6520b39045592bd3a6ddf02ce3e2cd
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 28 01:07:22 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Mar 28 01:10:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52749da6

net-misc/yt-dlp: add 2025.03.27

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

 net-misc/yt-dlp/Manifest                 |  1 +
 net-misc/yt-dlp/yt-dlp-2025.03.27.ebuild | 73 ++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest
index 746ead30c38f..f46a8a56eba6 100644
--- a/net-misc/yt-dlp/Manifest
+++ b/net-misc/yt-dlp/Manifest
@@ -1 +1,2 @@
 DIST yt-dlp-2025.03.26.tar.gz 5908282 BLAKE2B 
bb14fb170a8be5b544dc3be3102a459d8ed33f6ffa41f3ffe987f129d89320d359cb29e53c4c10fc7e7969d8445728f6f98e49fa513f927a659dbec66a7fabc4
 SHA512 
c10380b738a44d2345b5e4b872dafd6272f00c2e5122117e35ed08c5488dbd697bf92c20da6f62dd6db81baf7acd4b321adff323c065cb7839645cfeaf63648c
+DIST yt-dlp-2025.03.27.tar.gz 5909156 BLAKE2B 
b2dbd481277a582818998dc97785f8cebc9cefc8ce71ef498eb96a4f7a86d9b482cd059fcb6a7664c64b508be0ac6bacf13c7a376ed91e20166ff777088a2f8c
 SHA512 
565f788752f51cce2a2273ba6af345c7fd10700b8ce86bdce82550874a5f1cba75a740ed3ae67cb0c61448ef590c7dec4fdc7012c44c43ae20346de88775dff6

diff --git a/net-misc/yt-dlp/yt-dlp-2025.03.27.ebuild 
b/net-misc/yt-dlp/yt-dlp-2025.03.27.ebuild
new file mode 100644
index 000000000000..a57a8f5167a7
--- /dev/null
+++ b/net-misc/yt-dlp/yt-dlp-2025.03.27.ebuild
@@ -0,0 +1,73 @@
+# 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 pypy3_11 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}]
+"
+
+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\]
+               # websockets tests break easily depending on 
dev-python/websockets
+               # version and, as far as I know, most users do not use/need it 
--
+               # thus being neither in RDEPEND nor optfeature (bug 
#940630,#950030)
+               test/test_websockets.py
+       )
+
+       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
+}

Reply via email to