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 099A715814C for ; Sat, 14 Oct 2023 00:01:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 487E42BC01C; Sat, 14 Oct 2023 00:01:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 323822BC01C for ; Sat, 14 Oct 2023 00:01:55 +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 5B142335C2A for ; Sat, 14 Oct 2023 00:01:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFA6110AC for ; Sat, 14 Oct 2023 00:01:52 +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: <1697241673.45d85b78920ebfeb005375ce92f44f98f726bd4e.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/Manifest net-misc/yt-dlp/yt-dlp-2023.10.13.ebuild X-VCS-Directories: net-misc/yt-dlp/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 45d85b78920ebfeb005375ce92f44f98f726bd4e X-VCS-Branch: master Date: Sat, 14 Oct 2023 00:01:52 +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: 4a6adf38-8f70-4012-bb74-4a31c934f453 X-Archives-Hash: f0389282f655b62c2d02f45b26770815 commit: 45d85b78920ebfeb005375ce92f44f98f726bd4e Author: Ionen Wolkens gentoo org> AuthorDate: Fri Oct 13 23:32:12 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Sat Oct 14 00:01:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45d85b78 net-misc/yt-dlp: add 2023.10.13 Signed-off-by: Ionen Wolkens gentoo.org> net-misc/yt-dlp/Manifest | 1 + net-misc/yt-dlp/yt-dlp-2023.10.13.ebuild | 71 ++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest index 2e3aecb05f60..1b9b287a5cb7 100644 --- a/net-misc/yt-dlp/Manifest +++ b/net-misc/yt-dlp/Manifest @@ -1 +1,2 @@ DIST yt-dlp-2023.10.07.tar.gz 5513194 BLAKE2B 5d30895125eb2a67935e6f1b98fa93daf9230379309a19799b1813008075b1fe96811acc608baefb054b21f288cd4a8771d8b325b98a007097f0342111dc523e SHA512 21dcb85807b87446faadbdd20206cf3a9da67a575bbb8bdbf40f7af34e7b1d2530c9e15f76a28d3021c91b68bb6762d46a66446ca43c83ac02880b710286435d +DIST yt-dlp-2023.10.13.tar.gz 5525233 BLAKE2B 424ff7d1b3254e5ca1e86d38d08da351e53da040be5b4d6bc6cae502595af886d99d11f495365d66d87fcf4fa665d19dd42628c5115a622b85ccc1a9d8a617bc SHA512 b1f00fa3bb073a18e76478097712247c94ade588159bddb2472b8f210ffe4d9e72be529cd0990948219ab6df33d312426fb73e074b15013e098bafb737960311 diff --git a/net-misc/yt-dlp/yt-dlp-2023.10.13.ebuild b/net-misc/yt-dlp/yt-dlp-2023.10.13.ebuild new file mode 100644 index 000000000000..2048994016f1 --- /dev/null +++ b/net-misc/yt-dlp/yt-dlp-2023.10.13.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +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" +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 + +src_prepare() { + distutils-r1_src_prepare + + # adjust requires for pycryptodome and optional dependencies (bug #828466) + sed -ri requirements.txt \ + -e "s/^(pycryptodome)x/\1/" \ + -e "/^(brotli.*|certifi|mutagen|websockets)/d" || die +} + +python_test() { + local EPYTEST_DESELECT=( + # 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 + + 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 +}