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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BCC6315802F for ; Sun, 5 Mar 2023 02:27:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E18C0E0878; Sun, 5 Mar 2023 02:27:03 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B5B47E0878 for ; Sun, 5 Mar 2023 02:27:03 +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 9996B335D8A for ; Sun, 5 Mar 2023 02:27:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD6D4865 for ; Sun, 5 Mar 2023 02:27:00 +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: <1677982524.76432e14632e3306702949baf4fdca6c1da7d35e.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.03.04.ebuild X-VCS-Directories: net-misc/yt-dlp/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 76432e14632e3306702949baf4fdca6c1da7d35e X-VCS-Branch: master Date: Sun, 5 Mar 2023 02:27:00 +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: 5a8bb9f1-56fe-490e-9a6a-a9974505872e X-Archives-Hash: 90d7f1db123c22c10754b2e1a9bde839 commit: 76432e14632e3306702949baf4fdca6c1da7d35e Author: Ionen Wolkens gentoo org> AuthorDate: Sun Mar 5 02:07:33 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Sun Mar 5 02:15:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76432e14 net-misc/yt-dlp: add 2023.03.04 Going straight to stable again given mostly bugfixes and .03.03 was short lived. Signed-off-by: Ionen Wolkens gentoo.org> net-misc/yt-dlp/Manifest | 1 + net-misc/yt-dlp/yt-dlp-2023.03.04.ebuild | 66 ++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest index b5baf5345dd0..efa314711f3d 100644 --- a/net-misc/yt-dlp/Manifest +++ b/net-misc/yt-dlp/Manifest @@ -1 +1,2 @@ DIST yt-dlp-2023.03.03.tar.gz 5113424 BLAKE2B f20e255e32de15c3d25be2b2d73b526281f84dc2cc92667fa2d8887002559873c74aab98ce6f102705391e6621c8423d0e13f8fe2d01f47cbffa061b2fa74aa2 SHA512 179b96697d44d6bde6ca4f99ef90c70ce4b45d25c919e93355bc479765ee9ccaf37d19768b273b05d8018e1d19cd795acd735de8f62e5f160c446fd0feb4e7de +DIST yt-dlp-2023.03.04.tar.gz 5125843 BLAKE2B 8c2a610b98e83b6aa4b4daaaaaaf805a2e780a38af21168a90f305196f14716df5830235a600278158a7e3a758e3a5daf56e88cbaa38f4675b52a7bfbfdb1dd2 SHA512 3220ad0d7445351e5786b5ff1634b633a601f64216813129056d0c8470ce8afa2e6df6d402a9381980df6611e9341039cb7f576dfd444b05fbb1417ba1aced52 diff --git a/net-misc/yt-dlp/yt-dlp-2023.03.04.ebuild b/net-misc/yt-dlp/yt-dlp-2023.03.04.ebuild new file mode 100644 index 000000000000..59b22a558dd2 --- /dev/null +++ b/net-misc/yt-dlp/yt-dlp-2023.03.04.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{9..11} ) +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 ~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() { + 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 +}