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