1 |
commit: 7f94d7c9bc4621fef179bff47ce602b959cc1263 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 3 17:37:17 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 3 17:48:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f94d7c9 |
7 |
|
8 |
net-misc/youtube-dl: add 2021.12.17 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
net-misc/youtube-dl/Manifest | 1 + |
13 |
net-misc/youtube-dl/youtube-dl-2021.12.17.ebuild | 74 ++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest |
17 |
index dcf1041ec7b5..86bc013deba6 100644 |
18 |
--- a/net-misc/youtube-dl/Manifest |
19 |
+++ b/net-misc/youtube-dl/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST youtube-dl-2021.06.06.tar.gz 3336227 BLAKE2B f30252927ddd79062995ec78d45854e1723fe561ca34777fb0a337750bf09c76da8c205af63869c68c6bc09bfe8f6de1d3f5ee240914ae871bb7920076d8d16c SHA512 7b4d453723d03c3fde46451277d5c44be01469ed1b414ce94e782d6228c132c982835805207222862d0d7b8ba162157196f976400fd15cea7ea513e3595aeea3 |
22 |
+DIST youtube-dl-2021.12.17.tar.gz 3332299 BLAKE2B 5c798ad1f54f06cc42fd9a538536310e1084a02ec96969ff8e85ef0c6487ef54f34d58858512ade8b279929d8ebb9dda48175302fa23af9833c2301daa1d49c2 SHA512 bfc8280703b08f66e1108e9ebd9ab4689f064ac7cef03bd3d1fd2bc64928570e4376e389c9bc188eafdbcd74444cfc8aeccc83ee362ad4f478910efef3573ddb |
23 |
|
24 |
diff --git a/net-misc/youtube-dl/youtube-dl-2021.12.17.ebuild b/net-misc/youtube-dl/youtube-dl-2021.12.17.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..110a9df0641e |
27 |
--- /dev/null |
28 |
+++ b/net-misc/youtube-dl/youtube-dl-2021.12.17.ebuild |
29 |
@@ -0,0 +1,74 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+ |
37 |
+inherit bash-completion-r1 distutils-r1 readme.gentoo-r1 |
38 |
+ |
39 |
+DESCRIPTION="Download videos from YouTube.com (and more sites...)" |
40 |
+HOMEPAGE="https://youtube-dl.org/ https://github.com/ytdl-org/youtube-dl/" |
41 |
+SRC_URI="https://youtube-dl.org/downloads/${PV}/${P}.tar.gz" |
42 |
+S=${WORKDIR}/${PN} |
43 |
+ |
44 |
+LICENSE="public-domain" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
46 |
+SLOT="0" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
50 |
+" |
51 |
+ |
52 |
+distutils_enable_tests nose |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ sed -i -e '/flake8/d' Makefile || die |
56 |
+ distutils-r1_src_prepare |
57 |
+} |
58 |
+ |
59 |
+python_test() { |
60 |
+ emake offlinetest |
61 |
+} |
62 |
+ |
63 |
+python_install_all() { |
64 |
+ doman youtube-dl.1 |
65 |
+ |
66 |
+ newbashcomp youtube-dl.bash-completion youtube-dl |
67 |
+ |
68 |
+ insinto /usr/share/zsh/site-functions |
69 |
+ newins youtube-dl.zsh _youtube-dl |
70 |
+ |
71 |
+ insinto /usr/share/fish/vendor_completions.d |
72 |
+ doins youtube-dl.fish |
73 |
+ |
74 |
+ distutils-r1_python_install_all |
75 |
+ |
76 |
+ rm -r "${ED}"/usr/etc || die |
77 |
+ rm -r "${ED}"/usr/share/doc/youtube_dl || die |
78 |
+} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ if ! has_version media-video/ffmpeg; then |
82 |
+ elog "${PN} works fine on its own on most sites. However, if you want" |
83 |
+ elog "to convert video/audio, you'll need media-video/ffmpeg." |
84 |
+ elog "On some sites - most notably YouTube - videos can be retrieved in" |
85 |
+ elog "a higher quality format without sound. ${PN} will detect whether" |
86 |
+ elog "ffmpeg is present and automatically pick the best option." |
87 |
+ fi |
88 |
+ if ! has_version media-video/rtmpdump; then |
89 |
+ elog |
90 |
+ elog "Videos or video formats streamed via RTMP protocol can only be" |
91 |
+ elog "downloaded when media-video/rtmpdump is installed." |
92 |
+ fi |
93 |
+ if ! has_version media-video/mplayer && ! has_version media-video/mpv; then |
94 |
+ elog |
95 |
+ elog "Downloading MMS and RTSP videos requires either media-video/mplayer" |
96 |
+ elog "or media-video/mpv to be installed." |
97 |
+ fi |
98 |
+ if ! has_version media-video/atomicparsley; then |
99 |
+ elog |
100 |
+ elog "Install media-video/atomicparsley if you want ${PN} to embed thumbnails" |
101 |
+ elog "from the metadata into the resulting MP4/M4A files." |
102 |
+ fi |
103 |
+} |