1 |
jer 15/03/04 13:58:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: youtube-dl-2015.03.03.1.ebuild |
5 |
Removed: youtube-dl-2015.02.18.ebuild |
6 |
youtube-dl-2015.02.20.ebuild |
7 |
Log: |
8 |
Version bump. Fix multi-line python imports with USE=-offensive (bug #540988 by Erik). |
9 |
|
10 |
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
11 |
|
12 |
Revision Changes Path |
13 |
1.458 net-misc/youtube-dl/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/youtube-dl/ChangeLog?rev=1.458&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/youtube-dl/ChangeLog?rev=1.458&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/youtube-dl/ChangeLog?r1=1.457&r2=1.458 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/ChangeLog,v |
22 |
retrieving revision 1.457 |
23 |
retrieving revision 1.458 |
24 |
diff -u -r1.457 -r1.458 |
25 |
--- ChangeLog 21 Feb 2015 11:35:44 -0000 1.457 |
26 |
+++ ChangeLog 4 Mar 2015 13:58:31 -0000 1.458 |
27 |
@@ -1,6 +1,13 @@ |
28 |
# ChangeLog for net-misc/youtube-dl |
29 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/ChangeLog,v 1.457 2015/02/21 11:35:44 jer Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/ChangeLog,v 1.458 2015/03/04 13:58:31 jer Exp $ |
32 |
+ |
33 |
+*youtube-dl-2015.03.03.1 (04 Mar 2015) |
34 |
+ |
35 |
+ 04 Mar 2015; Jeroen Roovers <jer@g.o> -youtube-dl-2015.02.18.ebuild, |
36 |
+ -youtube-dl-2015.02.20.ebuild, +youtube-dl-2015.03.03.1.ebuild: |
37 |
+ Version bump. Fix multi-line python imports with USE=-offensive (bug #540988 |
38 |
+ by Erik). |
39 |
|
40 |
*youtube-dl-2015.02.20 (21 Feb 2015) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-misc/youtube-dl/youtube-dl-2015.03.03.1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/youtube-dl/youtube-dl-2015.03.03.1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/youtube-dl/youtube-dl-2015.03.03.1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: youtube-dl-2015.03.03.1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2015 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/youtube-dl-2015.03.03.1.ebuild,v 1.1 2015/03/04 13:58:31 jer Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
|
58 |
PYTHON_COMPAT=(python{2_7,3_3,3_4}) |
59 |
DISTUTILS_SINGLE_IMPL=true |
60 |
inherit bash-completion-r1 distutils-r1 eutils |
61 |
|
62 |
DESCRIPTION="Download videos from YouTube.com (and more sites...)" |
63 |
HOMEPAGE="http://rg3.github.com/youtube-dl/" |
64 |
SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz" |
65 |
|
66 |
LICENSE="public-domain" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
69 |
IUSE="offensive test" |
70 |
|
71 |
DEPEND=" |
72 |
dev-python/setuptools[${PYTHON_USEDEP}] |
73 |
test? ( dev-python/nose[coverage(+)] ) |
74 |
" |
75 |
|
76 |
S="${WORKDIR}/${PN}" |
77 |
|
78 |
src_prepare() { |
79 |
if ! use offensive; then |
80 |
sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \ |
81 |
youtube_dl/version.py || die |
82 |
# these have single line import statements |
83 |
local xxx=( |
84 |
alphaporno anysex behindkink drtuber empflix eporner eroprofile |
85 |
extremetube fourtube foxgay goshgay hellporno hentaistigma |
86 |
hornbunny keezmovies mofosex motherless pornhd pornotube |
87 |
pornoxo redtube sexykarma sexu sunporno slutload spankwire thisav |
88 |
tnaflix trutube tube8 vporn xbef xhamster xnxx xtube xvideos |
89 |
xxxymovies youjizz youporn |
90 |
) |
91 |
# these have multi-line import statements |
92 |
local mxxx=( |
93 |
pornhub |
94 |
) |
95 |
# do single line imports |
96 |
sed -i -e $( printf '/%s/d;' ${xxx[@]} ) youtube_dl/extractor/__init__.py || die |
97 |
# do multiple line imports |
98 |
sed -i -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) youtube_dl/extractor/__init__.py || die |
99 |
|
100 |
rm $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \ |
101 |
$( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \ |
102 |
test/test_age_restriction.py || die |
103 |
fi |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
distutils-r1_src_compile |
108 |
} |
109 |
|
110 |
src_test() { |
111 |
emake test |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
python_domodule youtube_dl |
116 |
dobin bin/${PN} |
117 |
dodoc README.txt |
118 |
doman ${PN}.1 |
119 |
newbashcomp ${PN}.bash-completion ${PN} |
120 |
python_fix_shebang "${ED}" |
121 |
} |