diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-10-13 19:32:12 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-10-13 20:01:13 -0400 |
commit | 45d85b78920ebfeb005375ce92f44f98f726bd4e (patch) | |
tree | ef513d5f187cc61ed3f3a83091854f44f969cdf1 /net-misc/yt-dlp | |
parent | net-misc/yt-dlp: drop 2023.09.24 (diff) | |
download | gentoo-45d85b78920ebfeb005375ce92f44f98f726bd4e.tar.gz gentoo-45d85b78920ebfeb005375ce92f44f98f726bd4e.tar.bz2 gentoo-45d85b78920ebfeb005375ce92f44f98f726bd4e.zip |
net-misc/yt-dlp: add 2023.10.13
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-misc/yt-dlp')
-rw-r--r-- | net-misc/yt-dlp/Manifest | 1 | ||||
-rw-r--r-- | net-misc/yt-dlp/yt-dlp-2023.10.13.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
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 +} |