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 56DF815808B for ; Wed, 9 Mar 2022 14:50:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2D75E07ED; Wed, 9 Mar 2022 14:50:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 79500E07ED for ; Wed, 9 Mar 2022 14:50:13 +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 A716A34316C for ; Wed, 9 Mar 2022 14:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 248732A5 for ; Wed, 9 Mar 2022 14:50:05 +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: <1646837378.d48792dae4a07663081dbe8b77b00f547f6e62d2.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-2022.3.8.2.ebuild X-VCS-Directories: net-misc/yt-dlp/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: d48792dae4a07663081dbe8b77b00f547f6e62d2 X-VCS-Branch: master Date: Wed, 9 Mar 2022 14:50:05 +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: 651d9e2c-55ed-4a5d-84e0-f1c3d43df820 X-Archives-Hash: f05551ec1e68562973c74f9dda845660 commit: d48792dae4a07663081dbe8b77b00f547f6e62d2 Author: Ionen Wolkens gentoo org> AuthorDate: Wed Mar 9 14:27:10 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Mar 9 14:49:38 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d48792da net-misc/yt-dlp: add 2022.3.8.2 Semi-unnecessary release given the issue it's fixing (setup.py using requirements.txt despite missing from pypi tarball) was already handled by the ebuild. The new tarball includes all files, and adds an additional extractor which seemingly was deleted by mistake giving some worth to this. Signed-off-by: Ionen Wolkens gentoo.org> net-misc/yt-dlp/Manifest | 1 + net-misc/yt-dlp/yt-dlp-2022.3.8.2.ebuild | 67 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest index ff8af23f6048..af38202d318f 100644 --- a/net-misc/yt-dlp/Manifest +++ b/net-misc/yt-dlp/Manifest @@ -1,2 +1,3 @@ DIST yt-dlp-2022.2.4.tar.gz 2178642 BLAKE2B 2e6c11bb9fbc30b725dc26db727500c33af944d16fbc46be8fb35a75ab4f5c09ca0c8754f075b9739ca9d47e9b409f8d533c03b417217344f8cac1ec45968b51 SHA512 6bb6bee6f748147a566394bbe0b69781ab415398582cb8e88a49b61a5dd106e666b0429c8f4f6483bc4af0363e88eb95c5159457b7049cc11a2c99a6495c6895 DIST yt-dlp-2022.3.8.1.tar.gz 2220785 BLAKE2B 787fbd29bf5330deb8d731f38501aeeb393149591f926c314b9a0b38c72c03548c29bdb98209b982eebf2e11d2d4ca45dfb146e2bec3ca553a82d68b10ea5735 SHA512 1d3728cdac1eb9f46de8c80ca364f5f4fd026b9d2e13db375682e0b7f755dd80b6f55f88e62232d243ee1584dcd10ac65e71244aa4c17e731c9a9576d825130f +DIST yt-dlp-2022.3.8.2.tar.gz 2454754 BLAKE2B f07c1eb8d0e1f936298d6516e518f366558107ba9ae65f7c0b52bdcd185b27e501d0d0ffb20e923a94ce5f42c88ae335069876946c411232b9dfc1309ae796ca SHA512 bd6c105f65415e2229781bb1e859167686a5f5f6886e98f9693acc127d4f9124aa2d55f32835f82509f6ab5a82601a5d612ac608063ef9041769fa91e3539c44 diff --git a/net-misc/yt-dlp/yt-dlp-2022.3.8.2.ebuild b/net-misc/yt-dlp/yt-dlp-2022.3.8.2.ebuild new file mode 100644 index 000000000000..2166cac25340 --- /dev/null +++ b/net-misc/yt-dlp/yt-dlp-2022.3.8.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +inherit bash-completion-r1 distutils-r1 optfeature + +DESCRIPTION="youtube-dl fork with additional features and fixes" +HOMEPAGE="https://github.com/yt-dlp/yt-dlp" +SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" + +RDEPEND=" + dev-python/pycryptodome[${PYTHON_USEDEP}] + !net-misc/youtube-dl[-yt-dlp(-)]" + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + + # adjust requires for pycryptodome and optional dependencies (bug #828466) + sed -ri requirements.txt \ + -e "s/^(pycryptodome)x/\1/" \ + -e "/^(brotli.*|mutagen|websockets)/d" || die +} + +python_test() { + epytest -m 'not download' -p no:markdown +} + +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 + + newbin - youtube-dl <<-EOF + #!/usr/bin/env sh + exec yt-dlp --compat-options youtube-dl "\${@}" + EOF +} + +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 +}