Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/youtube-dl/
Date: Mon, 02 Nov 2020 14:27:28
Message-Id: 1604327234.64e3792a9bb231bba9af78494e8027477a75b1ad.whissi@gentoo
1 commit: 64e3792a9bb231bba9af78494e8027477a75b1ad
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 2 14:25:10 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 2 14:27:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e3792a
7
8 net-misc/youtube-dl: bump to v2020.11.01
9
10 Closes: https://bugs.gentoo.org/752156
11 Closes: https://bugs.gentoo.org/745420
12 Package-Manager: Portage-3.0.8, Repoman-3.0.2
13 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
14
15 net-misc/youtube-dl/Manifest | 1 +
16 net-misc/youtube-dl/youtube-dl-2020.11.01.ebuild | 82 ++++++++++++++++++++++++
17 2 files changed, 83 insertions(+)
18
19 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
20 index 382bd3f1962..3ef7e395b2b 100644
21 --- a/net-misc/youtube-dl/Manifest
22 +++ b/net-misc/youtube-dl/Manifest
23 @@ -1 +1,2 @@
24 DIST youtube-dl-2020.09.20.tar.gz 3188480 BLAKE2B c12ee589d112155207b59da9f710b2c776c07464d5c64a5d8355b963a81765b0dbc65df4f9564504fb963f30d5a11dc7e662c14d58ddf9fe6347352363cf70a5 SHA512 ed511016d0cfcbbee0cd651f793cb31cdb46d80243f86186de1cc54cb2a2055fae2f5cc3e16f838fc2ba47f3ff6f3b484219c8a707904fbc30193a2b28a1e30c
25 +DIST youtube-dl-2020.11.01.1.tar.gz 3190146 BLAKE2B 9f0a6d5041f12881d0f028459054e9cd6fbb91de35dc3d61782889f97611a39fe4a8e1c28fd45585d638ec179f6d9cd6587b06ee2d268a9f44f83f282961f367 SHA512 2c84305a71776808797a651e22690a396c1bd4c922ab6f15b086516b836aa6ac3acf5b08f556567b11f470c0d972adbf67fb110dc34ccfc5c0897e576e42ebab
26
27 diff --git a/net-misc/youtube-dl/youtube-dl-2020.11.01.ebuild b/net-misc/youtube-dl/youtube-dl-2020.11.01.ebuild
28 new file mode 100644
29 index 00000000000..9bb60f065e6
30 --- /dev/null
31 +++ b/net-misc/youtube-dl/youtube-dl-2020.11.01.ebuild
32 @@ -0,0 +1,82 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=(python3_{6,7,8,9})
39 +
40 +DISTUTILS_USE_SETUPTOOLS=rdepend
41 +
42 +inherit bash-completion-r1 distutils-r1 readme.gentoo-r1
43 +
44 +DESCRIPTION="Download videos from YouTube.com (and more sites...)"
45 +HOMEPAGE="https://youtube-dl.org/ https://github.com/ytdl-org/youtube-dl/"
46 +SRC_URI="https://youtube-dl.org/downloads/latest/youtube-dl-2020.11.01.1.tar.gz"
47 +LICENSE="public-domain"
48 +
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
50 +SLOT="0"
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +
54 +BDEPEND="
55 + test? (
56 + dev-python/flake8[${PYTHON_USEDEP}]
57 + )
58 +"
59 +
60 +RDEPEND="
61 + dev-python/pycryptodome[${PYTHON_USEDEP}]
62 +"
63 +
64 +DEPEND="${RDEPEND}"
65 +
66 +distutils_enable_tests nose
67 +
68 +S=${WORKDIR}/${PN}
69 +
70 +src_compile() {
71 + distutils-r1_src_compile
72 +}
73 +
74 +python_test() {
75 + emake offlinetest
76 +}
77 +
78 +python_install_all() {
79 + dodoc README.txt
80 + doman ${PN}.1
81 +
82 + newbashcomp ${PN}.bash-completion ${PN}
83 +
84 + insinto /usr/share/zsh/site-functions
85 + newins ${PN}.zsh _${PN}
86 +
87 + insinto /usr/share/fish/vendor_completions.d
88 + doins ${PN}.fish
89 +
90 + distutils-r1_python_install_all
91 +
92 + rm -r "${ED}"/usr/etc || die
93 + rm -r "${ED}"/usr/share/doc/youtube_dl || die
94 +}
95 +
96 +pkg_postinst() {
97 + elog "${PN}(1) / https://bugs.gentoo.org/355661 /"
98 + elog "https://github.com/rg3/${PN}/blob/master/README.md#faq :"
99 + elog
100 + elog "${PN} works fine on its own on most sites. However, if you want"
101 + elog "to convert video/audio, you'll need ffmpeg (media-video/ffmpeg)."
102 + elog "On some sites - most notably YouTube - videos can be retrieved in"
103 + elog "a higher quality format without sound. ${PN} will detect whether"
104 + elog "ffmpeg is present and automatically pick the best option."
105 + elog
106 + elog "Videos or video formats streamed via RTMP protocol can only be"
107 + elog "downloaded when rtmpdump (media-video/rtmpdump) is installed."
108 + elog
109 + elog "Downloading MMS and RTSP videos requires either mplayer"
110 + elog "(media-video/mplayer) or mpv (media-video/mpv) to be installed."
111 + elog
112 + elog "If you want ${PN} to embed thumbnails from the metadata into the"
113 + elog "resulting MP4 files, consider installing media-video/atomicparsley"
114 +}