commit:     fa2a4b0575891beca88b660fa6c27899799a9d51
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  2 15:25:46 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jan  2 15:26:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa2a4b05

net-misc/yt-dlp: add 2023.1.2

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-misc/yt-dlp/Manifest               |  1 +
 net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild | 64 ++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest
index 3420c7cc33ef..2aa9ed1a80cf 100644
--- a/net-misc/yt-dlp/Manifest
+++ b/net-misc/yt-dlp/Manifest
@@ -1 +1,2 @@
 DIST yt-dlp-2022.11.11.tar.gz 2470530 BLAKE2B 
0d453d08678cccffccd7e4639fd66d08bead30d0cfae6f5a09d46d2a79a03a24b84b7c27d28a1f4b3bb03fdb96b8f9734e7f9910d02b9cd4a04bacdc3ff2c705
 SHA512 
be29154746f4c499eb25489be45ea759bf83f7aeb086a2a0e90a2bee6936c0d9362b1cd7af5eebed4f01f84a3542a9d5fa5746b647c349cad2e26b45cf4a861b
+DIST yt-dlp-2023.1.2.tar.gz 2524384 BLAKE2B 
f26fab8d2066670e89ae3c98feb1b23fd4eaa7b73ab2e7bf8c17f1c208f3b0eeb9b9df373fec0dcdedbf86f48f887580022507847ad3e2d0f2519925df689e19
 SHA512 
088a4ea8af83008872b4e123123c630178d550a31628b170bd1484f11e3dfb70a6b0c8b74d936a8b0893c8406d49e9f0c3dacf59d3855cce4ce22d26fb718709

diff --git a/net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild 
b/net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild
new file mode 100644
index 000000000000..c843dbe792a7
--- /dev/null
+++ b/net-misc/yt-dlp/yt-dlp-2023.1.2.ebuild
@@ -0,0 +1,64 @@
+# 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_{8..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="mirror://pypi/${P::1}/${PN}/${P}.tar.gz"
+
+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
+}

Reply via email to