From 7166cff34350f69c13d7859dd0bb2d3d20b199a1 Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Fri, 21 Feb 2025 10:32:01 +0100 Subject: [PATCH] net-misc/yt-dlp: add 2024.12.13 Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/4253 Signed-off-by: Andreas Billmeier --- README.md | 4 +- net-misc/yt-dlp/Manifest | 2 + net-misc/yt-dlp/yt-dlp-2024.12.13.ebuild | 70 ++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 net-misc/yt-dlp/yt-dlp-2024.12.13.ebuild diff --git a/README.md b/README.md index 06c438fc4..f7b92971f 100644 --- a/README.md +++ b/README.md @@ -606,7 +606,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 2375 Ebuilds in total, 2361 of them have in total 2404 (43 different) licenses assigned. +There are 2376 Ebuilds in total, 2362 of them have in total 2405 (43 different) licenses assigned. |License| Ebuilds using it| |-------|-----| @@ -620,7 +620,7 @@ There are 2375 Ebuilds in total, 2361 of them have in total 2404 (43 different) |GPL-3+|17| |LGPL-3+|17| |all-rights-reserved|15| -|Unlicense|14| +|Unlicense|15| |PSF-2|10| |ISC|8| |MPL-2.0|6| diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest index 053feaad6..dfeb636ce 100644 --- a/net-misc/yt-dlp/Manifest +++ b/net-misc/yt-dlp/Manifest @@ -3,9 +3,11 @@ DIST yt-dlp-2024.08.06.tar.gz 5710396 BLAKE2B ba657ddd054fc814adfc9644378ab51e50 DIST yt-dlp-2024.09.27.tar.gz 5750902 BLAKE2B 22c36dc45fd8f0b059542edf721757d50f4f4df640dfb2415ef0143e287e7ae6535e868705faa738ad1be3dd07bede85660ecc47f133c2eba2d13abc40e99c71 SHA512 9440eafd8c68bc4cc9d34edf616dbb34e0810556d21bd2276198359e653d155586cc398ebedc1088fb238dae78f62f2443463e4a63f90b323aec4ca53d3211e1 DIST yt-dlp-2024.10.22.tar.gz 5766340 BLAKE2B 6a1d0b1358196224b99333dec155b37401c1c73ad4d65752b8e776758aa1eec448317ebec9b007db1f318424f5853b4d25bec1b925032c7b9567c7c1496ed775 SHA512 486463af3487d3773fbeb975c741164131b802eac621eb1dc43f47704bcf2405bbb62b72d0fcc41a5b7e1651c81aec9fe284a42217bf06148d1870fbe362b0d7 DIST yt-dlp-2024.11.04.tar.gz 5790714 BLAKE2B 01e28d2058ee7f899b8046bb8409b4eadcc2eb4ed2881068a9710913fea92fb37c5f7e638d94d0d1ef8314549d161c5e5b2a4a4065ad9620610ddd73cbcdeb0f SHA512 6af8973ca83cd622cfd61bbdd02fea6db34eb9b3986b9b2c402b7828d1c9da6c2931fc616f43be08be5332c6b2b1707a9ed21a14b71f639a5891a0ecbd1baccd +DIST yt-dlp-2024.12.13.tar.gz 5813833 BLAKE2B ead14c4922e74e75dcdabe63ed5bb4a91e7d30a3b475acad63c03320a5958190118a886c88a7f5424ed6b7cbb9115c2368b41737b1ad99165f925c3f6a38275b SHA512 369cb303a4bf14b8e872ea3315478c943bc13741eaa4ee1d219df0d5e89d1c46992577acb8530c592e4278da1af7969a25417972c2ca55d84ee0f8e7e25c31b4 EBUILD yt-dlp-2024.05.27.ebuild 2369 BLAKE2B 777602125c69c719654a47b3e05427154c8487065cf382f25ae6b83e5cece189afc431f0b6f7b244ccc12fc0690ff6fd682a5799ec3b39d18e7e7e700032bbd5 SHA512 fc1707c2f664f5d12f93a09806ceda7d7e0ce53c10678a09feac1d3267a056137c5c79a25a63b0289c5710aad2469ffd92ca5b07deab98a5dc5c9b5922c1360d EBUILD yt-dlp-2024.08.06.ebuild 2369 BLAKE2B 777602125c69c719654a47b3e05427154c8487065cf382f25ae6b83e5cece189afc431f0b6f7b244ccc12fc0690ff6fd682a5799ec3b39d18e7e7e700032bbd5 SHA512 fc1707c2f664f5d12f93a09806ceda7d7e0ce53c10678a09feac1d3267a056137c5c79a25a63b0289c5710aad2469ffd92ca5b07deab98a5dc5c9b5922c1360d EBUILD yt-dlp-2024.09.27.ebuild 2369 BLAKE2B 777602125c69c719654a47b3e05427154c8487065cf382f25ae6b83e5cece189afc431f0b6f7b244ccc12fc0690ff6fd682a5799ec3b39d18e7e7e700032bbd5 SHA512 fc1707c2f664f5d12f93a09806ceda7d7e0ce53c10678a09feac1d3267a056137c5c79a25a63b0289c5710aad2469ffd92ca5b07deab98a5dc5c9b5922c1360d EBUILD yt-dlp-2024.10.22.ebuild 2369 BLAKE2B 777602125c69c719654a47b3e05427154c8487065cf382f25ae6b83e5cece189afc431f0b6f7b244ccc12fc0690ff6fd682a5799ec3b39d18e7e7e700032bbd5 SHA512 fc1707c2f664f5d12f93a09806ceda7d7e0ce53c10678a09feac1d3267a056137c5c79a25a63b0289c5710aad2469ffd92ca5b07deab98a5dc5c9b5922c1360d EBUILD yt-dlp-2024.11.04.ebuild 2124 BLAKE2B d1aae250d69bb542c0ad86184321d64e08db1736f4b8aeb5dcf5642dc0eceb7a9cee51be475527061b2b36bd4b6f9c15b2bb97464e0438cb1409bc2ebf68e3b0 SHA512 ed456497edd8495486aa5413a8184ffd4cfa5ec8da013a1f5461249c62c74d106fd4472be0baad8c40dbc567f8022cd4b9a32aa65399d886c9a6cef8028a49b4 +EBUILD yt-dlp-2024.12.13.ebuild 2124 BLAKE2B d1aae250d69bb542c0ad86184321d64e08db1736f4b8aeb5dcf5642dc0eceb7a9cee51be475527061b2b36bd4b6f9c15b2bb97464e0438cb1409bc2ebf68e3b0 SHA512 ed456497edd8495486aa5413a8184ffd4cfa5ec8da013a1f5461249c62c74d106fd4472be0baad8c40dbc567f8022cd4b9a32aa65399d886c9a6cef8028a49b4 MISC metadata.xml 508 BLAKE2B 21d7714827de27566946d208f7aa30b908f1b4dcc85cbe8f8e743f40a58a1be742047139adeedccffa28b6996877543cb11393a77e19f3e473e8420ed09a4d1c SHA512 5995ac642d9c24614b1bb5d9e3d35d886c1cae214fadde19c99a57a8a2953b3abf4d187cb4c527fb4e173bbe67a6b89a259cdc4729437f17b4e1ee9726cf4bc5 diff --git a/net-misc/yt-dlp/yt-dlp-2024.12.13.ebuild b/net-misc/yt-dlp/yt-dlp-2024.12.13.ebuild new file mode 100644 index 000000000..72c67fa3f --- /dev/null +++ b/net-misc/yt-dlp/yt-dlp-2024.12.13.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{11..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 x86" + +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 +}