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: Tue, 29 Oct 2019 08:28:25
Message-Id: 1572337698.c0ebd01099bc29574e489fd2af0d75885a49d92b.jer@gentoo
1 commit: c0ebd01099bc29574e489fd2af0d75885a49d92b
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 29 08:28:04 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 29 08:28:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0ebd010
7
8 net-misc/youtube-dl: Version 2019.10.29
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
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-2019.10.29.ebuild | 69 ++++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
18 index 98e87a21105..11970580f92 100644
19 --- a/net-misc/youtube-dl/Manifest
20 +++ b/net-misc/youtube-dl/Manifest
21 @@ -1 +1,2 @@
22 DIST youtube-dl-2019.10.22.tar.gz 3176020 BLAKE2B 4b72273eec5252cd3950d13dcd799924c8cea121e654e43532b2912198b3777903e94776758995e56f49c1c5d782ec9f440f5890a6cde3451e7b62ab731f196d SHA512 02199f67ca52cb55638e8013583b414727345c410cf3078c9bad08aabc544ba830b43ddf75c8cfd87f1db4da5544866576836ae45427c7cfb9c563c86f74a8eb
23 +DIST youtube-dl-2019.10.29.tar.gz 3172150 BLAKE2B 2cdaed88f1518245515d3d4030db8dd22b83ad1955bbd08fcef52b581d35f2de28dd9a95aafaede4edcba67aaf3b6e7697142ed6c715754da957a5cf8476cf80 SHA512 53d79440a86a08c39ec2f6d26e54aec12594b41419aeba2494eab087b49de97485beaeabc17cf819024799cf6f44d2386422c9d8f484c091c34b8cb202023c9d
24
25 diff --git a/net-misc/youtube-dl/youtube-dl-2019.10.29.ebuild b/net-misc/youtube-dl/youtube-dl-2019.10.29.ebuild
26 new file mode 100644
27 index 00000000000..89ac8f636ee
28 --- /dev/null
29 +++ b/net-misc/youtube-dl/youtube-dl-2019.10.29.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2019 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,3_6,3_7})
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 +RESTRICT="test"
45 +SLOT="0"
46 +DEPEND="
47 + dev-python/setuptools[${PYTHON_USEDEP}]
48 +"
49 +RDEPEND="
50 + ${DEPEND}
51 + || (
52 + dev-python/pycryptodome[${PYTHON_USEDEP}]
53 + dev-python/pycrypto[${PYTHON_USEDEP}]
54 + )
55 +"
56 +S="${WORKDIR}/${PN}"
57 +
58 +src_compile() {
59 + distutils-r1_src_compile
60 +}
61 +
62 +python_install_all() {
63 + dodoc README.txt
64 + doman ${PN}.1
65 +
66 + newbashcomp ${PN}.bash-completion ${PN}
67 +
68 + insinto /usr/share/zsh/site-functions
69 + newins ${PN}.zsh _${PN}
70 +
71 + insinto /usr/share/fish/vendor_completions.d
72 + doins ${PN}.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 + elog "${PN}(1) / https://bugs.gentoo.org/355661 /"
82 + elog "https://github.com/rg3/${PN}/blob/master/README.md#faq :"
83 + elog
84 + elog "${PN} works fine on its own on most sites. However, if you want"
85 + elog "to convert video/audio, you'll need avconf (media-video/libav) or"
86 + elog "ffmpeg (media-video/ffmpeg). On some sites - most notably YouTube -"
87 + elog "videos can be retrieved in a higher quality format without sound."
88 + elog "${PN} will detect whether avconv/ffmpeg is present and"
89 + elog "automatically pick the best option."
90 + elog
91 + elog "Videos or video formats streamed via RTMP protocol can only be"
92 + elog "downloaded when rtmpdump (media-video/rtmpdump) is installed."
93 + elog
94 + elog "Downloading MMS and RTSP videos requires either mplayer"
95 + elog "(media-video/mplayer) or mpv (media-video/mpv) to be installed."
96 + elog
97 + elog "If you want ${PN} to embed thumbnails from the metadata into the"
98 + elog "resulting MP4 files, consider installing media-video/atomicparsley"
99 +}