Gentoo Archives: gentoo-commits

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/yt-dlp/
Date: Mon, 23 Aug 2021 20:45:59
Message-Id: 1629751535.bd0405f4a21669cb9f063e19594723c7e63be5c2.slashbeast@gentoo
1 commit: bd0405f4a21669cb9f063e19594723c7e63be5c2
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 23 20:45:35 2021 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 23 20:45:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd0405f4
7
8 net-misc/yt-dlp: new package.
9
10 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
11
12 net-misc/yt-dlp/Manifest | 1 +
13 net-misc/yt-dlp/metadata.xml | 11 ++++++++
14 net-misc/yt-dlp/yt-dlp-2021.8.10.ebuild | 47 +++++++++++++++++++++++++++++++++
15 3 files changed, 59 insertions(+)
16
17 diff --git a/net-misc/yt-dlp/Manifest b/net-misc/yt-dlp/Manifest
18 new file mode 100644
19 index 00000000000..7787307fae0
20 --- /dev/null
21 +++ b/net-misc/yt-dlp/Manifest
22 @@ -0,0 +1 @@
23 +DIST yt-dlp-2021.8.10.tar.gz 1807968 BLAKE2B 664f9f5680c18531bb1c194e6e26a31b6be62894a88c6748bf146fbba79164fec6f5e6db017785daf6c8f5a2c1b7cfc0c2ee6c0d437b9d7bb4e1835eff73650f SHA512 fb321d308e634f6358f046762cc3e827b036083b4764d495bbcef253d06ce445152f4a330c51b5aac1eb3b21a8a345fc791f0fdbdc01089ea2a414b1cd457f20
24
25 diff --git a/net-misc/yt-dlp/metadata.xml b/net-misc/yt-dlp/metadata.xml
26 new file mode 100644
27 index 00000000000..2b132d02ee4
28 --- /dev/null
29 +++ b/net-misc/yt-dlp/metadata.xml
30 @@ -0,0 +1,11 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>slashbeast@g.o</email>
36 + <name>Piotr Karbowski</name>
37 + </maintainer>
38 + <upstream>
39 + <remote-id type="github">yt-dlp/yt-dlp</remote-id>
40 + </upstream>
41 +</pkgmetadata>
42
43 diff --git a/net-misc/yt-dlp/yt-dlp-2021.8.10.ebuild b/net-misc/yt-dlp/yt-dlp-2021.8.10.ebuild
44 new file mode 100644
45 index 00000000000..33b03f94720
46 --- /dev/null
47 +++ b/net-misc/yt-dlp/yt-dlp-2021.8.10.ebuild
48 @@ -0,0 +1,47 @@
49 +# Copyright 1999-2021 Gentoo Authors
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=7
53 +
54 +PYTHON_COMPAT=( python3_{8..10} )
55 +inherit bash-completion-r1 distutils-r1 readme.gentoo-r1
56 +
57 +DESCRIPTION="A youtube-dl fork with additional features and fixes"
58 +HOMEPAGE="https://github.com/yt-dlp/yt-dlp"
59 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
60 +KEYWORDS="~amd64 ~x86"
61 +LICENSE="public-domain"
62 +SLOT="0"
63 +
64 +RDEPEND="
65 + dev-python/pycryptodome[${PYTHON_USEDEP}]
66 + media-libs/mutagen[${PYTHON_USEDEP}]
67 + dev-python/websockets[${PYTHON_USEDEP}]
68 + dev-python/keyring[${PYTHON_USEDEP}]
69 + media-video/ffmpeg
70 +
71 +"
72 +
73 +distutils_enable_tests nose
74 +
75 +python_test() {
76 + # make_lazy_extractors.py tries to rename it out, so fails if it does not exists.
77 + mkdir ytdlp_plugins
78 + epytest -k 'not download'
79 +}
80 +
81 +python_install_all() {
82 + doman yt-dlp.1
83 +
84 + newbashcomp completions/bash/yt-dlp yt-dlp
85 +
86 + insinto /usr/share/zsh/site-functions
87 + newins completions/zsh/_yt-dlp _yt-dlp
88 +
89 + insinto /usr/share/fish/vendor_completions.d
90 + doins completions/fish/yt-dlp.fish
91 +
92 + distutils-r1_python_install_all
93 +
94 + rm -rf "${ED}"/usr/share/doc/yt_dlp || die
95 +}