diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /net-misc/yt-dlp | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'net-misc/yt-dlp')
-rw-r--r-- | net-misc/yt-dlp/Manifest | 6 | ||||
-rw-r--r-- | net-misc/yt-dlp/yt-dlp-2021.10.22.ebuild | 43 | ||||
-rw-r--r-- | net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild (renamed from net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild) | 9 | ||||
-rw-r--r-- | net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild | 65 |
4 files changed, 10 insertions, 113 deletions
diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest index ef53308918fb..ae96ba4ac296 100644 --- a/net-misc/yt-dlp/Manifest +++ b/net-misc/yt-dlp/Manifest @@ -1,7 +1,3 @@ -DIST yt-dlp-2021.10.22.tar.gz 2010916 BLAKE2B fb8f789c74df06dcd672d00ac16eb7cbf466755c3fa607acdd21dd9a9ef2af158a5272f88656133078bd50585506b65cf3b3c03236726de954ccfa0b6c1195fc SHA512 2b590703f8d4f9454b50983019aca8046205234bd98cac4da73a6688eae177a19ef641e486aea92d86197ee7ad6c564c65f9b9496d623c00bdcc349817d5b1f8 -DIST yt-dlp-2021.11.10.1.tar.gz 2042241 BLAKE2B c4542edce26931a8753002a5cf0fda46549dd9b79709fc595c0c807837b07242d5d7a7fa19cc4f64cf7b7fc5803c4937185d68f4593250f9fa21155d5a24ee92 SHA512 54a371d70b7b82349a184b26201fca12fabbc9a107dc199347c412062776d63879d22955d76726df61bc40ec594a7179a997e4679c683673c8c0dd41f62b16f6 DIST yt-dlp-2021.12.1.tar.gz 2064958 BLAKE2B d97bf6bc5d6a97aec05be73dcc00aac6b1aff011c307abcbf604a3bfab06dadfd28401eab8ad26d42b7ec3db778c66e9fa2de09d3e6c28304fd28791532509d9 SHA512 d04e9e5ae36e73923ac79bb98af6e402ba0b4403430cbcc0517e7f446d42b6c637846b11489c0159faf667ab798b937abb9597fb5fba76b6f7b6e2b379bae328 -EBUILD yt-dlp-2021.10.22.ebuild 999 BLAKE2B 36e72cb572e5640d596036634b3ecd7d02945eb63dfe9ed63af6a73283fb9161334a99bac7d879089ff2b02552726ad171b3f0758f0e8d5f15da3d386699bae8 SHA512 54552a9a36c3e335ade68c5c20f905069c17cd8c8c47f41ba8396cce2613a4b9c6e730f4d8a100b5e567c202dfe002903b28c4ced340e76f48e584bf095d1341 -EBUILD yt-dlp-2021.11.10.1-r1.ebuild 1773 BLAKE2B 7081587398e739d478451f9c0faf3e88fc73c7703e85568ffc6587454c78097f999fb62b52a8c7e6248cf930850ba94a0c97cd741697f6adcc926b18cbeda745 SHA512 bf5863ae2433774ccff6311ccbda227a52393178b65a37f765523829d9deccf8e8a3d0a676896b42a58702571d5fc23661b62b8673be4cfca3c7dd9e151b41cd -EBUILD yt-dlp-2021.12.1.ebuild 1775 BLAKE2B d03e77ab2e76cb0849fb6c254666e5e5572dc3a90dec2826f51bb8d1ed31fb142a2d10fa7f67c20b66adefe0ae831ca52e79aa4bff0a4120981f6209a0c706e0 SHA512 0ef0ec553b54b55cbd5bfd68f9107f1bf58008ce745d3344d3cfcadcd131917d143b2315bee482eeb11adff73fe46010e232ce4248700cd264bd5c5bf4ce4e6e +EBUILD yt-dlp-2021.12.1-r1.ebuild 2008 BLAKE2B 289ee6fd98fd60002e19aa82c706dc67f72a61c26b82fab1ec6cd9bf9d9461f8373473bfaf1c1be6931d0fcf98283c9868522c1b6fa805be3cb159e58985642c SHA512 cdd1d4390e74f2463a37db297b40ea0ba50c7676a364db00292242ea16a2488900d3f87a7db77724fd0d39cadc22c2b165766353d66f85af80d210ef61f817c9 MISC metadata.xml 461 BLAKE2B cf54d866278b449c8551d3d1681df0c08315b3863fb2e61ece2613b9a263f9fc122b54028f6f6cce5442db62b49e8c422c5b0baccd57a79b63f926efcbb1a85b SHA512 bb30935bab43083ba0328512acf204d8494571b00ee08caadc53a300ffccef2ae63bab8852166d9c158ce554f15493deeffef17ae52f7fe82734f9ef6bbf07ff diff --git a/net-misc/yt-dlp/yt-dlp-2021.10.22.ebuild b/net-misc/yt-dlp/yt-dlp-2021.10.22.ebuild deleted file mode 100644 index e4e5268e2804..000000000000 --- a/net-misc/yt-dlp/yt-dlp-2021.10.22.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit bash-completion-r1 distutils-r1 - -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 ~riscv x86" - -RDEPEND=" - dev-python/keyring[${PYTHON_USEDEP}] - dev-python/pycryptodome[${PYTHON_USEDEP}] - dev-python/websockets[${PYTHON_USEDEP}] - media-libs/mutagen[${PYTHON_USEDEP}] - media-video/ffmpeg" - -distutils_enable_tests pytest - -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 -} diff --git a/net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild index 88bf8090cd8a..f6633c012f81 100644 --- a/net-misc/yt-dlp/yt-dlp-2021.11.10.1-r1.ebuild +++ b/net-misc/yt-dlp/yt-dlp-2021.12.1-r1.ebuild @@ -20,6 +20,15 @@ RDEPEND=" distutils_enable_tests pytest +python_prepare_all() { + distutils-r1_python_prepare_all + + # adjust requires for pycryptodome and optional dependencies (bug #828466) + sed -ri setup.py \ + -e "s/'(pycryptodome)x'/'\1'/" \ + -e "s/'(mutagen|websockets)',?//g" || die +} + python_test() { epytest -m 'not download' -p no:markdown } diff --git a/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild deleted file mode 100644 index 79ffad33d94f..000000000000 --- a/net-misc/yt-dlp/yt-dlp-2021.12.1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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" - -distutils_enable_tests pytest - -python_test() { - epytest -m 'not download' -p no:markdown -} - -python_install() { - distutils-r1_python_install - - local sitedir=$(python_get_sitedir) - dosym yt_dlp "${sitedir#${EPREFIX}}"/youtube_dl -} - -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} ]] || - ver_test ${REPLACING_VERSIONS} -lt 2021.10.22-r2; 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 -} |