1 |
commit: 80f97f20189aed74455c4e30ac7118b723cc02ae |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 10 16:16:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 10 16:58:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f97f20 |
7 |
|
8 |
net-misc/youtube-dl: Bump to 2021.02.10 |
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-2021.02.10.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 5134c9544ad..8e999398079 100644 |
18 |
--- a/net-misc/youtube-dl/Manifest |
19 |
+++ b/net-misc/youtube-dl/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST youtube-dl-2021.01.16.tar.gz 3275243 BLAKE2B 970bfff5db0aca7e386027e20f2b4d |
21 |
DIST youtube-dl-2021.01.24.1.tar.gz 3288395 BLAKE2B f0adc4ed7627cfda3b7729afd0e4617c1d78b44b5cb84186251eacdfb54bdd0ad2395253899a1aed1ba708856e872ca0537baf316f08b289140bdacb3976e9d6 SHA512 b5ab1e03f38b5628487fdfa22febd594f87d42c228fcc0b03966205ca3fbc6fa6103388f8736ad22e7d517359823d8ca6cc61aeb80fdd69db06a82d55437bacb |
22 |
DIST youtube-dl-2021.02.04.1.tar.gz 3274333 BLAKE2B 46f5c332f7346db589cd6d5c0fe649b547e948903f90851d6ead0322ec516300dd65189d781ffd24711336dc1f310920a4c5a6f9d6a1944046e900bcd22ee675 SHA512 b1050ace3adf1811adaa336d5b3574c938bf6fde1163e50b35c8a11bb5c251cf272ca5de3ff8132a44417ea2ced7b611c19e4aaf4dfd12adfeac03afe14df0dc |
23 |
DIST youtube-dl-2021.02.04.tar.gz 3274222 BLAKE2B 6ec6b4031b8fff7630bbbebcef5795962d7bc6c12a04799f0a04d8b14023e651a06757f918dc6d3c3b6833b7662c742c26dbe68e3f1a35159c0dda49ef6c2f32 SHA512 44dab7016d625235aab244161bfcc959d6fd22cb176ca0fb59f60eb31229da343f0a40c162c37a7e829bfa82fed541b66266d28cd859fc18a78bb1936f3fde22 |
24 |
+DIST youtube-dl-2021.02.10.tar.gz 3277828 BLAKE2B f3bd3874784ada041c86872621a8f5c9e6e2de7ef266fee1962bf4a609b5361baca0e77eed97624fd2f856748fa826ba361bbf242acafdd6b89bc3a36d5f295e SHA512 84de569e5fb691af84e0dca6de5912b99912df2d88b5933740dfa76ce57027b21e1648dd7c8fe71f40839297d670f1a0cefaa3c1fc4d0c6d9beddbd22d0e93ec |
25 |
|
26 |
diff --git a/net-misc/youtube-dl/youtube-dl-2021.02.10.ebuild b/net-misc/youtube-dl/youtube-dl-2021.02.10.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..9b024e43dbb |
29 |
--- /dev/null |
30 |
+++ b/net-misc/youtube-dl/youtube-dl-2021.02.10.ebuild |
31 |
@@ -0,0 +1,71 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=(python3_{7..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-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 |
+} |