Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/youtube-dl/
Date: Wed, 30 Dec 2020 23:00:59
Message-Id: 1609369251.9742b1bce94aa9c5b5c4aefbd75f7ce6b64e0a8c.mgorny@gentoo
1 commit: 9742b1bce94aa9c5b5c4aefbd75f7ce6b64e0a8c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 30 22:36:44 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 30 23:00:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9742b1bc
7
8 net-misc/youtube-dl: Bump to 2020.12.31
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-misc/youtube-dl/Manifest | 1 +
13 net-misc/youtube-dl/youtube-dl-2020.12.31.ebuild | 71 ++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
17 index 2761442f676..fc9bd9138de 100644
18 --- a/net-misc/youtube-dl/Manifest
19 +++ b/net-misc/youtube-dl/Manifest
20 @@ -1,3 +1,4 @@
21 DIST youtube-dl-2020.12.22.tar.gz 3238866 BLAKE2B 8f2f07c59b4d64ed9176bdbfcb858c4f90d7acfe97fad02bf98c517e46fca049421deb764a039466557cfda20d3921535e0e0ae0be4c9afe514a2242a18a45b5 SHA512 2acd7256d3479387db25cc85882da77996cb8fe09a6c6400a9580c1c10317ab72ee18b0e1c2429f533992c41e172f2bbd8c9570daed01578aa971b1ba9d3fbc2
22 DIST youtube-dl-2020.12.26.tar.gz 3246941 BLAKE2B 7e2c3cea21e10458c1ee3718e9e039301590d8213367229818f36df488865eca7d1e76a27dfc1d4374d15314f271b12fc2c548f43927c724a936399fffa5ac19 SHA512 6a577aa435639af7c5e60183d7548d5f0a74cdea3cb87edaa81dc20ce5ca788ba99f731cbaacffdae74cc10d530e6b8d5b0cfccaf4cb9c2f4cc4f9c540b2d175
23 DIST youtube-dl-2020.12.29.tar.gz 3246557 BLAKE2B 94ad5b81e9bfd17a1b05725920dab04f9d2e6e6655cf5df3bd42c443207253251b26f8c969a4baaabce7eb44e4cd2ec04d4ed20ad56569b540f2eba8796da3f9 SHA512 361bb9d60ca1b45887e56d346121412d4a23a7245d2960afdfca55e96d1134ef68126fd1aa5630e6067002de9e704cb70688d12d6e997413f221d28dced4fa81
24 +DIST youtube-dl-2020.12.31.tar.gz 3252801 BLAKE2B 23b6acffb1d312b628f4c9c485b81645f679df7c0d40649acca665bc524115e81d842d9e336145d65ca8d6e4217f46f4a6fee8dfa48c11fa0316af2a069a68ce SHA512 78c69648f40c99581a533bac0e1afa2339f5681a01278f9234ad8b6b3f0f1b29e21bb669d27d0a6f9bccae0e3be954b571261d1ab9a1e778f3f028c8795595b6
25
26 diff --git a/net-misc/youtube-dl/youtube-dl-2020.12.31.ebuild b/net-misc/youtube-dl/youtube-dl-2020.12.31.ebuild
27 new file mode 100644
28 index 00000000000..04afa74ada0
29 --- /dev/null
30 +++ b/net-misc/youtube-dl/youtube-dl-2020.12.31.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=(python3_{6..9})
38 +
39 +DISTUTILS_USE_SETUPTOOLS=rdepend
40 +
41 +inherit bash-completion-r1 distutils-r1 readme.gentoo-r1
42 +
43 +DESCRIPTION="Download videos from YouTube.com (and more sites...)"
44 +HOMEPAGE="https://youtube-dl.org/ https://github.com/ytdl-org/youtube-dl/"
45 +SRC_URI="https://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
46 +S=${WORKDIR}/${PN}
47 +
48 +LICENSE="public-domain"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
50 +SLOT="0"
51 +
52 +RDEPEND="
53 + dev-python/pycryptodome[${PYTHON_USEDEP}]
54 +"
55 +
56 +distutils_enable_tests nose
57 +
58 +src_prepare() {
59 + sed -i -e '/flake8/d' Makefile || die
60 + distutils-r1_src_prepare
61 +}
62 +
63 +python_test() {
64 + emake offlinetest
65 +}
66 +
67 +python_install_all() {
68 + doman youtube-dl.1
69 +
70 + newbashcomp youtube-dl.bash-completion youtube-dl
71 +
72 + insinto /usr/share/zsh/site-functions
73 + newins youtube-dl.zsh _youtube-dl
74 +
75 + insinto /usr/share/fish/vendor_completions.d
76 + doins youtube-dl.fish
77 +
78 + distutils-r1_python_install_all
79 +
80 + rm -r "${ED}"/usr/etc || die
81 + rm -r "${ED}"/usr/share/doc/youtube_dl || die
82 +}
83 +
84 +pkg_postinst() {
85 + elog "youtube-dl(1) / https://bugs.gentoo.org/355661 /"
86 + elog "https://github.com/rg3/youtube-dl/blob/master/README.md#faq :"
87 + elog
88 + elog "youtube-dl works fine on its own on most sites. However, if you want"
89 + elog "to convert video/audio, you'll need ffmpeg (media-video/ffmpeg)."
90 + elog "On some sites - most notably YouTube - videos can be retrieved in"
91 + elog "a higher quality format without sound. youtube-dl will detect whether"
92 + elog "ffmpeg is present and automatically pick the best option."
93 + elog
94 + elog "Videos or video formats streamed via RTMP protocol can only be"
95 + elog "downloaded when rtmpdump (media-video/rtmpdump) is installed."
96 + elog
97 + elog "Downloading MMS and RTSP videos requires either mplayer"
98 + elog "(media-video/mplayer) or mpv (media-video/mpv) to be installed."
99 + elog
100 + elog "If you want youtube-dl to embed thumbnails from the metadata into the"
101 + elog "resulting MP4 files, consider installing media-video/atomicparsley"
102 +}