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: Mon, 27 Nov 2017 23:54:39
Message-Id: 1511826867.10d28d4e0692ea3cac38f9b075fd67b95386bd28.jer@gentoo
1 commit: 10d28d4e0692ea3cac38f9b075fd67b95386bd28
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 23:52:21 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 23:54:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d28d4e
7
8 net-misc/youtube-dl: Version bump.
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 net-misc/youtube-dl/Manifest | 7 +-
13 net-misc/youtube-dl/youtube-dl-2017.11.26.ebuild | 97 ++++++++++++++++++++++++
14 2 files changed, 101 insertions(+), 3 deletions(-)
15
16 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
17 index 85652f149d8..9f1a924e1ca 100644
18 --- a/net-misc/youtube-dl/Manifest
19 +++ b/net-misc/youtube-dl/Manifest
20 @@ -1,3 +1,4 @@
21 -DIST youtube-dl-2017.03.16.tar.gz 2631620 SHA256 55df3cbda9cf86e49baf54040340ec74c692bb3d6da3d2f5a1bc1238017dd492 SHA512 f3b8942f6b2be3b1cfd4bddfb74c17bad48c8ef4bea34114970ecb9d65b5a3dcbe71beba6d7c2dbda168371bbb2e8bbaddce58039bd9d158bf23950a2a88123c WHIRLPOOL 8345da00074e62ec9a9c244cb9ef64930fbd0e5e9e5bc1709bfcf56517cc6312031a09523c3016db2a1542c16a0297bea9d6883a201ae94e347e358307e92422
22 -DIST youtube-dl-2017.11.06.tar.gz 2831531 SHA256 6d0c0226a1e914c94a9a68e8bff5a6498bdf783ffb9513ecf18646139c1e58b6 SHA512 0f7707084f84e7375ae61ffa88979990ba27cf2afb44992d75172415190f5959fe317313b127cbdde33500ed6b0525e9ff03872116dfa7ca188a97e74d562574 WHIRLPOOL a077a96023aec039e74380f91c34c59208cae3e2e06635003547bf8ed7fbb80756bdc73fac7b5607449b9740ea61ce2f1185d2adc738ccd7f6cbfbc32fe9b4ad
23 -DIST youtube-dl-2017.11.15.tar.gz 2834012 SHA256 88b177baaad0ceafc496bbef790c24b35272cbd9527e2b64f536131aad040ce8 SHA512 e10c0d53db7fdfb02610b53f54046c0a9354b305ba05c5d00a43649a283a6449263f66ff56171d52cf18f906c6aeccc25dc48ea708b4b1bb2b8323b937abca96 WHIRLPOOL a9d82b0881c91ed410cb57c14a80417e1791a44a51e2a59f14b039ca8bed25715b8de5e70b4434d5b0e87ebbde9b17399e04cf468e878a14b09e3729f239f66f
24 +DIST youtube-dl-2017.03.16.tar.gz 2631620 BLAKE2B 2aff8710a296140a4329b0f8e7f57526684ca114ba39a7397eef81b1b79b4b5dfae685c1f0011cddf8569d8df1e50111bbce7f12647c067972c79ea3b116b2ff SHA512 f3b8942f6b2be3b1cfd4bddfb74c17bad48c8ef4bea34114970ecb9d65b5a3dcbe71beba6d7c2dbda168371bbb2e8bbaddce58039bd9d158bf23950a2a88123c
25 +DIST youtube-dl-2017.11.06.tar.gz 2831531 BLAKE2B 42a9d1735ac7fb0c42454475ccf24d141a742a2c8aaa89e8d5bf23479aa4a017bb6f19ac18f2355c0caef2c9a0dc8c5d102bd656d61a6f505e4b388fcf70c474 SHA512 0f7707084f84e7375ae61ffa88979990ba27cf2afb44992d75172415190f5959fe317313b127cbdde33500ed6b0525e9ff03872116dfa7ca188a97e74d562574
26 +DIST youtube-dl-2017.11.15.tar.gz 2834012 BLAKE2B fd93e3923f99874be58681a886c09e31ac10063975ab636badf27e59b44743c72cddf05e3a431c49ffd0f7b40f9b005f4d90feff85d4ca889dee80833300b076 SHA512 e10c0d53db7fdfb02610b53f54046c0a9354b305ba05c5d00a43649a283a6449263f66ff56171d52cf18f906c6aeccc25dc48ea708b4b1bb2b8323b937abca96
27 +DIST youtube-dl-2017.11.26.tar.gz 2839867 BLAKE2B c4f1b9739283fb4016ff0892bdcb0db86f1ddc88842553d76159fe4312e70e7145085f3b6a1bfc157d7f5811f28eb1ab79661db701a3366be12be2357b464f19 SHA512 ecf1eb88b37e271505a50709a468afcc6048f00bc6531e8df1eb064dcea62ad6fa2a5a9016d1d106e56b9d3b9904325e133491ca124e06ec64e6f4a5902a2368
28
29 diff --git a/net-misc/youtube-dl/youtube-dl-2017.11.26.ebuild b/net-misc/youtube-dl/youtube-dl-2017.11.26.ebuild
30 new file mode 100644
31 index 00000000000..975ce26c347
32 --- /dev/null
33 +++ b/net-misc/youtube-dl/youtube-dl-2017.11.26.ebuild
34 @@ -0,0 +1,97 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
40 +inherit bash-completion-r1 distutils-r1
41 +
42 +DESCRIPTION="Download videos from YouTube.com (and more sites...)"
43 +HOMEPAGE="https://rg3.github.com/youtube-dl/"
44 +SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
45 +
46 +LICENSE="public-domain"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
49 +IUSE="+offensive test"
50 +
51 +RDEPEND="
52 + dev-python/setuptools[${PYTHON_USEDEP}]
53 +"
54 +DEPEND="
55 + ${RDEPEND}
56 + test? ( dev-python/nose[coverage(+)] )
57 +"
58 +
59 +S="${WORKDIR}/${PN}"
60 +
61 +python_prepare_all() {
62 + if ! use offensive; then
63 + sed -i -e "/..version../s|'$|+gentoo.no.offensive.sites'|g" \
64 + youtube_dl/version.py || die
65 + # these have single line import statements
66 + local xxx=(
67 + alphaporno anysex behindkink camwithher chaturbate eporner
68 + eroprofile extremetube foxgay goshgay hellporno hentaistigma
69 + hornbunny keezmovies lovehomeporn mofosex motherless myvidster
70 + porn91 porncom pornflip pornhd pornotube pornovoisines pornoxo
71 + ruleporn sexu slutload spankbang spankwire sunporno thisav tube8
72 + vporn watchindianporn xbef xnxx xtube xvideos xxxymovies youjizz
73 + youporn
74 + )
75 + # these have multi-line import statements
76 + local mxxx=(
77 + drtuber fourtube pornhub redtube tnaflix xhamster
78 + )
79 + # do single line imports
80 + sed -i \
81 + -e $( printf '/%s/d;' ${xxx[@]} ) \
82 + youtube_dl/extractor/extractors.py \
83 + || die
84 +
85 + # do multiple line imports
86 + sed -i \
87 + -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
88 + youtube_dl/extractor/extractors.py \
89 + || die
90 +
91 + sed -i \
92 + -e $( printf '/%s/d;' ${mxxx[@]} ) \
93 + youtube_dl/extractor/generic.py \
94 + || die
95 +
96 + rm \
97 + $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
98 + $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
99 + test/test_age_restriction.py \
100 + || die
101 + fi
102 +
103 + eapply_user
104 +
105 + distutils-r1_python_prepare_all
106 +}
107 +
108 +src_compile() {
109 + distutils-r1_src_compile
110 +}
111 +
112 +python_test() {
113 + emake test
114 +}
115 +
116 +python_install_all() {
117 + dodoc README.txt
118 + doman ${PN}.1
119 +
120 + newbashcomp ${PN}.bash-completion ${PN}
121 +
122 + insinto /usr/share/zsh/site-functions
123 + newins youtube-dl.zsh _youtube-dl
124 +
125 + insinto /usr/share/fish/completions
126 + doins youtube-dl.fish
127 +
128 + distutils-r1_python_install_all
129 +
130 + rm -r "${ED}"/usr/etc || die
131 +}