Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/youtube-dl/
Date: Thu, 23 Jan 2020 22:57:56
Message-Id: 1579820268.f8a2d422f9008e8e6803a3f407f6a6ac3a15f404.jer@gentoo
1 commit: f8a2d422f9008e8e6803a3f407f6a6ac3a15f404
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 23 22:54:58 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 23 22:57:48 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a2d422
7
8 net-misc/youtube-dl: Version 2020.01.24
9
10 Package-Manager: Portage-2.3.85, 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.24.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 d42f3519b71..d8388151866 100644
19 --- a/net-misc/youtube-dl/Manifest
20 +++ b/net-misc/youtube-dl/Manifest
21 @@ -1 +1,2 @@
22 DIST youtube-dl-2020.01.15.tar.gz 3159264 BLAKE2B 4f7b527e02e5ce6923f66db322c4ba8695e6e2850b7bcf4353914a27c31c7d5d28980b948326585bd2a25b76f4d7e903e8589fe1f137d905aca9ad30d54818d2 SHA512 1b450feef1d6040726f99e482edb6119b66224a98bdec1983f6921f21b08bd8fceb77cff055326b660fb66742815e5e0238807707547ef82b51b9966fdc82be7
23 +DIST youtube-dl-2020.01.24.tar.gz 3159926 BLAKE2B 0b1be74f74eb0be6cb0a41faf0538110bfc5d1a213fa1c456a6a358096f16ac8768ebd3d4673e523251fd0721a4a0990f061713d32b13c11077e79f8f02989e1 SHA512 8f85a218395d2932b26c7b76d5b03cbdf9a7c541415c8d1b805239b6ab1ca74b94fc497f32052a1d93fe20ac760994975a13551dd8c5319f0549af20b70a1a78
24
25 diff --git a/net-misc/youtube-dl/youtube-dl-2020.01.24.ebuild b/net-misc/youtube-dl/youtube-dl-2020.01.24.ebuild
26 new file mode 100644
27 index 00000000000..faa91ea76c9
28 --- /dev/null
29 +++ b/net-misc/youtube-dl/youtube-dl-2020.01.24.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_{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 +}