Gentoo Archives: gentoo-commits

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