1 |
commit: 40f7b73142b624f8ca1b6c371716c0234c653189 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 1 12:42:12 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 1 12:42:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40f7b731 |
7 |
|
8 |
net-misc/youtube-dl: Version 2020.01.01 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-misc/youtube-dl/Manifest | 1 + |
14 |
net-misc/youtube-dl/youtube-dl-2020.01.01.ebuild | 77 ++++++++++++++++++++++++ |
15 |
2 files changed, 78 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest |
18 |
index 09b53c0f02f..b38adedbd01 100644 |
19 |
--- a/net-misc/youtube-dl/Manifest |
20 |
+++ b/net-misc/youtube-dl/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST youtube-dl-2019.12.25.tar.gz 3153090 BLAKE2B c86aa3f905c2cea84b6083cba215e6404d8dc25689290aaac6a642d5da61df162609d52bcf578b6463cd1898b282a15245efc8a3cc36f26f163170427c3174cb SHA512 951219648597d5e19fd3bcb3c64d8641bffd63cf3c6b4b30332d9148ad8b12c1be252e4cacbcd8169ce502b0fe20b2ff7163620382769b5e83e82d155e4f38c8 |
23 |
+DIST youtube-dl-2020.01.01.tar.gz 3156193 BLAKE2B 0052e8da07d83127a8c2cf3a25ab9733e7f4417473e89cdaf849e11e79285e4c8bdce5003b59f6ff8cbf3980043ce2e992346264f08caecebfa4ee33370203b0 SHA512 035d44aa4989067587d3c5a8d1bb4214bb7bfa16b91562c730fcf93de1578de75ddf12c8a0900643578546a4230da776b8b83f69378525c1480e9e0061f492cf |
24 |
|
25 |
diff --git a/net-misc/youtube-dl/youtube-dl-2020.01.01.ebuild b/net-misc/youtube-dl/youtube-dl-2020.01.01.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0199f8e970a |
28 |
--- /dev/null |
29 |
+++ b/net-misc/youtube-dl/youtube-dl-2020.01.01.ebuild |
30 |
@@ -0,0 +1,77 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_COMPAT=(python{2_7,3_{5,6,7,8}}) |
36 |
+inherit bash-completion-r1 distutils-r1 readme.gentoo-r1 |
37 |
+ |
38 |
+DESCRIPTION="Download videos from YouTube.com (and more sites...)" |
39 |
+HOMEPAGE="https://github.com/ytdl-org/youtube-dl/" |
40 |
+SRC_URI="https://youtube-dl.org/downloads/${PV}/${P}.tar.gz" |
41 |
+LICENSE="public-domain" |
42 |
+ |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
44 |
+SLOT="0" |
45 |
+IUSE="test" |
46 |
+RDEPEND=" |
47 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
48 |
+ || ( |
49 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
50 |
+ dev-python/pycrypto[${PYTHON_USEDEP}] |
51 |
+ ) |
52 |
+" |
53 |
+DEPEND=" |
54 |
+ ${RDEPEND} |
55 |
+ test? ( |
56 |
+ dev-python/nose[${PYTHON_USEDEP}] |
57 |
+ dev-python/flake8[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+" |
60 |
+S=${WORKDIR}/${PN} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ distutils-r1_src_compile |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ emake offlinetest |
68 |
+} |
69 |
+ |
70 |
+python_install_all() { |
71 |
+ dodoc README.txt |
72 |
+ doman ${PN}.1 |
73 |
+ |
74 |
+ newbashcomp ${PN}.bash-completion ${PN} |
75 |
+ |
76 |
+ insinto /usr/share/zsh/site-functions |
77 |
+ newins ${PN}.zsh _${PN} |
78 |
+ |
79 |
+ insinto /usr/share/fish/vendor_completions.d |
80 |
+ doins ${PN}.fish |
81 |
+ |
82 |
+ distutils-r1_python_install_all |
83 |
+ |
84 |
+ rm -r "${ED}"/usr/etc || die |
85 |
+ rm -r "${ED}"/usr/share/doc/youtube_dl || die |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ elog "${PN}(1) / https://bugs.gentoo.org/355661 /" |
90 |
+ elog "https://github.com/rg3/${PN}/blob/master/README.md#faq :" |
91 |
+ elog |
92 |
+ elog "${PN} works fine on its own on most sites. However, if you want" |
93 |
+ elog "to convert video/audio, you'll need avconf (media-video/libav) or" |
94 |
+ elog "ffmpeg (media-video/ffmpeg). On some sites - most notably YouTube -" |
95 |
+ elog "videos can be retrieved in a higher quality format without sound." |
96 |
+ elog "${PN} will detect whether avconv/ffmpeg is present and" |
97 |
+ elog "automatically pick the best option." |
98 |
+ elog |
99 |
+ elog "Videos or video formats streamed via RTMP protocol can only be" |
100 |
+ elog "downloaded when rtmpdump (media-video/rtmpdump) is installed." |
101 |
+ elog |
102 |
+ elog "Downloading MMS and RTSP videos requires either mplayer" |
103 |
+ elog "(media-video/mplayer) or mpv (media-video/mpv) to be installed." |
104 |
+ elog |
105 |
+ elog "If you want ${PN} to embed thumbnails from the metadata into the" |
106 |
+ elog "resulting MP4 files, consider installing media-video/atomicparsley" |
107 |
+} |