From b02a2ac044a27eeef2c52b57308a8591b07448fa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 21 Jun 2023 13:19:15 +0100 Subject: gentoo auto-resync : 21:06:2023 - 13:19:15 --- net-misc/yt-dlp/Manifest | 2 + net-misc/yt-dlp/yt-dlp-2023.06.21.ebuild | 65 ++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 net-misc/yt-dlp/yt-dlp-2023.06.21.ebuild (limited to 'net-misc/yt-dlp') diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest index 7c526136ae5a..bc455823fdb4 100644 --- a/net-misc/yt-dlp/Manifest +++ b/net-misc/yt-dlp/Manifest @@ -1,4 +1,6 @@ DIST yt-dlp-2023.03.04.tar.gz 5125843 BLAKE2B 8c2a610b98e83b6aa4b4daaaaaaf805a2e780a38af21168a90f305196f14716df5830235a600278158a7e3a758e3a5daf56e88cbaa38f4675b52a7bfbfdb1dd2 SHA512 3220ad0d7445351e5786b5ff1634b633a601f64216813129056d0c8470ce8afa2e6df6d402a9381980df6611e9341039cb7f576dfd444b05fbb1417ba1aced52 +DIST yt-dlp-2023.06.21.tar.gz 5320227 BLAKE2B c7a48345623a1ef1419c3eb3d762c03ec960ae386751c317425c0e13e123f4afd23e8ea6aeca70741026ee9ea716f819641768c84da5a2e963d0863b4eaf14fe SHA512 6073e37df7bc080cfb74192ba3af1912ff73e8689e321a1e9156e9c23f80fe2a4fbb956da2a9df60ad147bbadf19d185e5eab892b8634a7fd5d907dc675c238a EBUILD yt-dlp-2023.03.04.ebuild 1923 BLAKE2B b7bbe208d836233327fe6a739ff6063e922f96c006c3bdf3d6645eb81af49becd1a7e604c0a44d172b03287295256423bb5d9cf2976c90312d76a5e236f32c1d SHA512 591d14ef83f0a8f9924c8dbdd42e34de1acc5b67915d3baf24ba42ac986d63cef73a1c90bd01da1b51e66d4c9a88902be4e0f1e7c045c365c39d35fc73908922 +EBUILD yt-dlp-2023.06.21.ebuild 1909 BLAKE2B 026c83844f9bcdecc0d69e9c496a135edecad68cf2c51582764176d277ff665504da5864be2aafa81b2688cbc02c75051c1f0ffc6deff6d9a3dfed34eafb9a02 SHA512 3d2db49fa77b7ebea762cb5d9fda918b04d0360bb396ce3fbafb7ccd24a8374b5c5ee37e6141868aea15131789ab58b9a523006f9f25283d1d9575fb6f358734 EBUILD yt-dlp-9999.ebuild 2083 BLAKE2B 966d5cc4008e409d9a664e1e99dfb35c547f30182057c906414c7f3907cde39690aa6ec09fe4d2a5ffc64e17d871f796a2efba6f3123b980e2e4fbe5ae3f907c SHA512 0e02591e3e852849f2979478751cc90f145550f8f22cea5b45567c0450ce542c27ab2e435d399d5257834a11ae5580492b64a220a68031dd4da642a94fbc26ac MISC metadata.xml 505 BLAKE2B 520725078c47caf245904b10aab8929bf9a9a357a70315fda67e7dd59b77cb0c1614e7de03029772288aefa76678c7c4c97c7153364552f5ebe0f951df651e9f SHA512 af72cc5782fe5ed5a6748dcd7ebe7c9393ff7a9ad6d5a1a3a8c2824d323e86f1a97036745570790898fe9a51047601f9a4d95befc0e02b8c16822b7cc94e0734 diff --git a/net-misc/yt-dlp/yt-dlp-2023.06.21.ebuild b/net-misc/yt-dlp/yt-dlp-2023.06.21.ebuild new file mode 100644 index 000000000000..77c77e61186a --- /dev/null +++ b/net-misc/yt-dlp/yt-dlp-2023.06.21.ebuild @@ -0,0 +1,65 @@ +# 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..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 ~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() { + 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 +} -- cgit v1.2.3