net-misc/yt-dlp: new package, add 2023.09.24
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
a174b7680a
commit
0bc213dc52
3
net-misc/yt-dlp/Manifest
Normal file
3
net-misc/yt-dlp/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST yt-dlp-2023.09.24.tar.gz 5494731 BLAKE2B 558fc80691951ba33e591a9bf1820e3da45f265f9392d28c6dcab1c2feb9bac84a0143d8034dde8c772f227eb9896c6406974440bd141ac88de0899438f229e0 SHA512 37f1c5c9af9f8cdd66a2fa09771f018042c3efac61a657ea1573a68a77dce2f76fbd8bb7a59ed72942093ddfd80d57573305ec8b60d00e6b0ba50276e3df2dfd
|
||||
EBUILD yt-dlp-2023.09.24.ebuild 1857 BLAKE2B 280a0973a5e45cac2dd8d79e919173e192b511ec238b48f7f1255a43cc1053747d3fe88a8d076f2e04297d3c286f5fdcef80d174a9b272da40859dd4caf5367f SHA512 ca703668cd3091d90ee828775df7db999986ab3b0b967e2cba80582c679796c487d63feafadd771a432f430e57eb161b3da5667f892f41326e38af817d869986
|
||||
MISC metadata.xml 508 BLAKE2B 21d7714827de27566946d208f7aa30b908f1b4dcc85cbe8f8e743f40a58a1be742047139adeedccffa28b6996877543cb11393a77e19f3e473e8420ed09a4d1c SHA512 5995ac642d9c24614b1bb5d9e3d35d886c1cae214fadde19c99a57a8a2953b3abf4d187cb4c527fb4e173bbe67a6b89a259cdc4729437f17b4e1ee9726cf4bc5
|
16
net-misc/yt-dlp/metadata.xml
Normal file
16
net-misc/yt-dlp/metadata.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">yt-dlp</remote-id>
|
||||
<remote-id type="github">yt-dlp/yt-dlp</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>pukkandan.ytdlp@gmail.com</email>
|
||||
<name>pukkandan</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
66
net-misc/yt-dlp/yt-dlp-2023.09.24.ebuild
Normal file
66
net-misc/yt-dlp/yt-dlp-2023.09.24.ebuild
Normal file
@ -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
|
||||
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 x86"
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user