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, 28 Jan 2019 19:09:32
Message-Id: 1548700200.122ab201e342645a4d3aac722fdae303230812c9.jer@gentoo
1 commit: 122ab201e342645a4d3aac722fdae303230812c9
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 28 18:26:07 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 28 18:30:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=122ab201
7
8 net-misc/youtube-dl: Remove USE=offensive, add RESTRICT=test
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=599928
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=605010
12 Closes: https://bugs.gentoo.org/show_bug.cgi?id=635996
13 Closes: https://bugs.gentoo.org/show_bug.cgi?id=643200
14 Closes: https://bugs.gentoo.org/show_bug.cgi?id=676532
15 Package-Manager: Portage-2.3.58, Repoman-2.3.12
16 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
17
18 net-misc/youtube-dl/youtube-dl-2019.01.27.ebuild | 59 ++---------------------
19 net-misc/youtube-dl/youtube-dl-99999999.ebuild | 60 ++----------------------
20 2 files changed, 7 insertions(+), 112 deletions(-)
21
22 diff --git a/net-misc/youtube-dl/youtube-dl-2019.01.27.ebuild b/net-misc/youtube-dl/youtube-dl-2019.01.27.ebuild
23 index 6ef55f59a57..2cb0551f3e3 100644
24 --- a/net-misc/youtube-dl/youtube-dl-2019.01.27.ebuild
25 +++ b/net-misc/youtube-dl/youtube-dl-2019.01.27.ebuild
26 @@ -8,76 +8,23 @@ inherit bash-completion-r1 distutils-r1 readme.gentoo-r1
27 DESCRIPTION="Download videos from YouTube.com (and more sites...)"
28 HOMEPAGE="https://rg3.github.com/youtube-dl/"
29 SRC_URI="https://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
30 -
31 LICENSE="public-domain"
32 -SLOT="0"
33 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
34 -IUSE="+offensive test"
35
36 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
37 +RESTRICT="test"
38 +SLOT="0"
39 RDEPEND="
40 dev-python/setuptools[${PYTHON_USEDEP}]
41 "
42 DEPEND="
43 ${RDEPEND}
44 - test? ( dev-python/nose[coverage(+)] )
45 "
46 -
47 S="${WORKDIR}/${PN}"
48
49 -python_prepare_all() {
50 - if ! use offensive; then
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 foxgay goshgay hellporno hentaistigma
57 - hornbunny keezmovies lovehomeporn mofosex myvidster porn91 porncom
58 - pornflip pornhd pornotube pornovoisines pornoxo ruleporn sexu
59 - slutload spankbang spankwire sunporno thisav vporn watchindianporn
60 - xbef xnxx xtube xvideos xxxymovies youjizz youporn
61 - )
62 - # these have multi-line import statements
63 - local mxxx=(
64 - drtuber fourtube motherless pornhub redtube tnaflix tube8 xhamster
65 - )
66 - # do single line imports
67 - sed -i \
68 - -e $( printf '/%s/d;' ${xxx[@]} ) \
69 - youtube_dl/extractor/extractors.py \
70 - || die
71 -
72 - # do multiple line imports
73 - sed -i \
74 - -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
75 - youtube_dl/extractor/extractors.py \
76 - || die
77 -
78 - sed -i \
79 - -e $( printf '/%s/d;' ${mxxx[@]} ) \
80 - youtube_dl/extractor/generic.py \
81 - || die
82 -
83 - rm \
84 - $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
85 - $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
86 - test/test_age_restriction.py \
87 - || die
88 - fi
89 -
90 - eapply_user
91 -
92 - distutils-r1_python_prepare_all
93 -}
94 -
95 src_compile() {
96 distutils-r1_src_compile
97 }
98
99 -python_test() {
100 - emake test
101 -}
102 -
103 python_install_all() {
104 dodoc README.txt
105 doman ${PN}.1
106
107 diff --git a/net-misc/youtube-dl/youtube-dl-99999999.ebuild b/net-misc/youtube-dl/youtube-dl-99999999.ebuild
108 index 4713e21251b..632093ebfdb 100644
109 --- a/net-misc/youtube-dl/youtube-dl-99999999.ebuild
110 +++ b/net-misc/youtube-dl/youtube-dl-99999999.ebuild
111 @@ -1,4 +1,4 @@
112 -# Copyright 1999-2018 Gentoo Authors
113 +# Copyright 1999-2019 Gentoo Authors
114 # Distributed under the terms of the GNU General Public License v2
115
116 EAPI="7"
117 @@ -8,76 +8,24 @@ inherit bash-completion-r1 distutils-r1 git-r3 readme.gentoo-r1
118 DESCRIPTION="Download videos from YouTube.com (and more sites...)"
119 HOMEPAGE="https://rg3.github.com/youtube-dl/"
120 EGIT_REPO_URI="https://github.com/rg3/youtube-dl"
121 -
122 LICENSE="public-domain"
123 -SLOT="0"
124 -KEYWORDS=""
125 -IUSE="+offensive test"
126
127 +KEYWORDS=""
128 +RESTRICT="test"
129 +SLOT="0"
130 RDEPEND="
131 dev-python/setuptools[${PYTHON_USEDEP}]
132 "
133 DEPEND="
134 ${RDEPEND}
135 - test? ( dev-python/nose[coverage(+)] )
136 "
137
138 -python_prepare_all() {
139 - if ! use offensive; then
140 - sed -i -e "/..version../s|'$|+gentoo.no.offensive.sites'|g" \
141 - youtube_dl/version.py || die
142 - # these have single line import statements
143 - local xxx=(
144 - alphaporno anysex behindkink camwithher chaturbate eporner
145 - eroprofile extremetube foxgay goshgay hellporno hentaistigma
146 - hornbunny keezmovies lovehomeporn mofosex myvidster porn91 porncom
147 - pornflip pornhd pornotube pornovoisines pornoxo ruleporn sexu
148 - slutload spankbang spankwire sunporno thisav vporn watchindianporn
149 - xbef xnxx xtube xvideos xxxymovies youjizz youporn
150 - )
151 - # these have multi-line import statements
152 - local mxxx=(
153 - drtuber fourtube motherless pornhub redtube tnaflix tube8 xhamster
154 - )
155 - # do single line imports
156 - sed -i \
157 - -e $( printf '/%s/d;' ${xxx[@]} ) \
158 - youtube_dl/extractor/extractors.py \
159 - || die
160 -
161 - # do multiple line imports
162 - sed -i \
163 - -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
164 - youtube_dl/extractor/extractors.py \
165 - || die
166 -
167 - sed -i \
168 - -e $( printf '/%s/d;' ${mxxx[@]} ) \
169 - youtube_dl/extractor/generic.py \
170 - || die
171 -
172 - rm \
173 - $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
174 - $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
175 - test/test_age_restriction.py \
176 - || die
177 - fi
178 -
179 - eapply_user
180 -
181 - distutils-r1_python_prepare_all
182 -}
183 -
184 src_compile() {
185 distutils-r1_src_compile
186
187 emake ${PN}.{bash-completion,fish,zsh}
188 }
189
190 -python_test() {
191 - emake test
192 -}
193 -
194 python_install_all() {
195 dodoc README.md