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: Sun, 29 Jul 2018 19:26:23
Message-Id: 1532892375.01200cf7dc458cbceae343c877c4e670bf9e2d93.jer@gentoo
1 commit: 01200cf7dc458cbceae343c877c4e670bf9e2d93
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 29 19:25:48 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 29 19:26:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01200cf7
7
8 net-misc/youtube-dl: Update live ebuild.
9
10 Package-Manager: Portage-2.3.44, Repoman-2.3.10
11
12 net-misc/youtube-dl/youtube-dl-99999999.ebuild | 52 +++++++++++++++++++-------
13 1 file changed, 39 insertions(+), 13 deletions(-)
14
15 diff --git a/net-misc/youtube-dl/youtube-dl-99999999.ebuild b/net-misc/youtube-dl/youtube-dl-99999999.ebuild
16 index 683bc08f1a1..5d18c509625 100644
17 --- a/net-misc/youtube-dl/youtube-dl-99999999.ebuild
18 +++ b/net-misc/youtube-dl/youtube-dl-99999999.ebuild
19 @@ -1,10 +1,9 @@
20 -# Copyright 1999-2017 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=6
25 -
26 PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
27 -inherit bash-completion-r1 distutils-r1 git-r3
28 +inherit bash-completion-r1 distutils-r1 git-r3 readme.gentoo-r1
29
30 DESCRIPTION="Download videos from YouTube.com (and more sites...)"
31 HOMEPAGE="https://rg3.github.com/youtube-dl/"
32 @@ -13,34 +12,32 @@ EGIT_REPO_URI="https://github.com/rg3/youtube-dl.git"
33 LICENSE="public-domain"
34 SLOT="0"
35 KEYWORDS=""
36 -IUSE="offensive test"
37 +IUSE="+offensive test"
38
39 RDEPEND="
40 dev-python/setuptools[${PYTHON_USEDEP}]
41 "
42 DEPEND="
43 ${RDEPEND}
44 - dev-python/sphinx[${PYTHON_USEDEP}]
45 test? ( dev-python/nose[coverage(+)] )
46 "
47
48 python_prepare_all() {
49 if ! use offensive; then
50 - sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \
51 + sed -i -e "/..version../s|'$|+gentoo.no.offensive.sites'|g" \
52 youtube_dl/version.py || die
53 # these have single line import statements
54 local xxx=(
55 alphaporno anysex behindkink camwithher chaturbate eporner
56 - eroprofile extremetube fourtube foxgay goshgay hellporno
57 - hentaistigma hornbunny keezmovies lovehomeporn mofosex motherless
58 - myvidster porn91 porncom pornflip pornhd pornotube pornovoisines
59 - pornoxo ruleporn sexu slutload spankbang spankwire sunporno thisav
60 - tube8 vporn watchindianporn xbef xnxx xtube xvideos xxxymovies
61 - youjizz youporn
62 + eroprofile extremetube foxgay goshgay hellporno hentaistigma
63 + hornbunny keezmovies lovehomeporn mofosex myvidster porn91 porncom
64 + pornflip pornhd pornotube pornovoisines pornoxo ruleporn sexu
65 + slutload spankbang spankwire sunporno thisav vporn watchindianporn
66 + xbef xnxx xtube xvideos xxxymovies youjizz youporn
67 )
68 # these have multi-line import statements
69 local mxxx=(
70 - drtuber pornhub redtube tnaflix xhamster
71 + drtuber fourtube motherless pornhub redtube tnaflix tube8 xhamster
72 )
73 # do single line imports
74 sed -i \
75 @@ -73,6 +70,8 @@ python_prepare_all() {
76
77 src_compile() {
78 distutils-r1_src_compile
79 +
80 + emake ${PN}.{bash-completion,fish,zsh}
81 }
82
83 python_test() {
84 @@ -82,7 +81,34 @@ python_test() {
85 python_install_all() {
86 dodoc README.md
87
88 + newbashcomp ${PN}.bash-completion ${PN}
89 +
90 + insinto /usr/share/zsh/site-functions
91 + newins ${PN}.zsh _${PN}
92 +
93 + insinto /usr/share/fish/completions/vendor_completions.d
94 + doins ${PN}.fish
95 +
96 distutils-r1_python_install_all
97
98 rm -r "${ED}"/usr/etc || die
99 + rm -r "${ED}"/usr/share/doc/youtube_dl || die
100 +}
101 +
102 +pkg_postinst() {
103 + elog "${PN}(1) / https://bugs.gentoo.org/355661 /"
104 + elog "https://github.com/rg3/${PN}/blob/master/README.md#faq :"
105 + elog
106 + elog "${PN} works fine on its own on most sites. However, if you want"
107 + elog "to convert video/audio, you'll need avconf (media-video/libav) or"
108 + elog "ffmpeg (media-video/ffmpeg). On some sites - most notably YouTube -"
109 + elog "videos can be retrieved in a higher quality format without sound."
110 + elog "${PN} will detect whether avconv/ffmpeg is present and"
111 + elog "automatically pick the best option."
112 +
113 + elog
114 + elog "Videos or video formats streamed via RTMP protocol can only be"
115 + elog "downloaded when rtmpdump (media-video/rtmpdump) is installed."
116 + elog "Downloading MMS and RTSP videos requires either mplayer"
117 + elog "(media-video/mplayer) or mpv (media-video/mpv) to be installed."
118 }