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: Sat, 30 Jan 2016 13:06:43
Message-Id: 1454159197.2296f6f9a2f4c8f5356d4a2f7ba2c10f0e2b9efd.jer@gentoo
1 commit: 2296f6f9a2f4c8f5356d4a2f7ba2c10f0e2b9efd
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 30 13:06:11 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 30 13:06:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2296f6f9
7
8 net-misc/youtube-dl: Version bump.
9
10 Package-Manager: portage-2.2.27
11
12 net-misc/youtube-dl/Manifest | 1 +
13 net-misc/youtube-dl/youtube-dl-2016.01.29.ebuild | 87 ++++++++++++++++++++++++
14 2 files changed, 88 insertions(+)
15
16 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
17 index 58113e4..a1b3d52 100644
18 --- a/net-misc/youtube-dl/Manifest
19 +++ b/net-misc/youtube-dl/Manifest
20 @@ -2,3 +2,4 @@ DIST youtube-dl-2016.01.01.tar.gz 1874602 SHA256 732f37c99d71b4239d72d61dd32214b
21 DIST youtube-dl-2016.01.15.tar.gz 1898595 SHA256 c1e22ca3286aff74a668d1f8ef5c84c37bee2c269824e71ffdb23356a8735c44 SHA512 37cfb097e3345f9775a867d54f61eb60a94ba3408c3ef448ebb895e8bb74915f30f4ae87030d7f5d48bd9dfa2bccff302a6ede28624b7d17c4f164a9561d47db WHIRLPOOL 8a8653e49a043a34934b0e8c68be21a79899be4b391b0c7e6fceb6583f0ec22204349ca4aad0ef56703bb24ce8e4362d1c1cec95bef89cc24743191c6af3c1e8
22 DIST youtube-dl-2016.01.23.tar.gz 1916234 SHA256 449f4330fac38ed9f2bb2a547f42c1cfd705bab6a8839ff279fc4bd91f233154 SHA512 ca3a7f2024ae97a290869e123d4b67c858f35894ce4309c295c3994c9bac1f406152cd36d893cd48c79bd3ada92b6e5e76ac1a87cbffc321fe03efc131d0445f WHIRLPOOL 9c628d0fd5f3abe1d44dd84a50400e837eb61d597a120d17b3e353430a250becea91bbdfa575b821e6f849092494640d4eac0b3917731c459202d324d00cb522
23 DIST youtube-dl-2016.01.27.tar.gz 1918307 SHA256 d06bb62ea19aef3ebb842ac01d98bbeee378e06d9e7c7a2f3bef343205b52ee9 SHA512 a6f38466c5d5c369c487913703348fa04c2272af6cbc300be552eaed5f1e713c0083f6f569dae3fd01a77f30582e36629c90bcd0dfe5641ffded04626c67cc6a WHIRLPOOL fb753cf67fd1142837e78dfbde9e4c14cfc41a499b15b36024647a7eb78763938edf6c9a88c2cd05951071d4e2d66e28fa704188b5b6c553be4bfde243773dfd
24 +DIST youtube-dl-2016.01.29.tar.gz 1919314 SHA256 4b39800787d288c5f44cf00342d900d53386ef41c66a5397b406acac9fd60212 SHA512 24f7646bd81040e16cbe66b5c67c35800799fef797b735c45e3f3c13cc5222c390484c452eedba2a42ba57dc3a88a153d7430bf0db378f6619191af1dfcfa4e8 WHIRLPOOL 975cf0c68ed2149513157e5e7107d66ca7355f97a2e6e8773282df071b28413e19d099a07b241a43fe2d6f5a703ea4dc12567db2c63e110775a35b8e9f5aae78
25
26 diff --git a/net-misc/youtube-dl/youtube-dl-2016.01.29.ebuild b/net-misc/youtube-dl/youtube-dl-2016.01.29.ebuild
27 new file mode 100644
28 index 0000000..5db7401
29 --- /dev/null
30 +++ b/net-misc/youtube-dl/youtube-dl-2016.01.29.ebuild
31 @@ -0,0 +1,87 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=(python{2_7,3_3,3_4,3_5})
39 +DISTUTILS_SINGLE_IMPL=true
40 +inherit bash-completion-r1 distutils-r1 eutils
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 +DEPEND="
52 + dev-python/setuptools[${PYTHON_USEDEP}]
53 + test? ( dev-python/nose[coverage(+)] )
54 +"
55 +
56 +S="${WORKDIR}/${PN}"
57 +
58 +src_prepare() {
59 + if ! use offensive; then
60 + sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \
61 + youtube_dl/version.py || die
62 + # these have single line import statements
63 + local xxx=(
64 + alphaporno anysex behindkink chaturbate drtuber eporner eroprofile
65 + extremetube fourtube foxgay goshgay hellporno hentaistigma
66 + hornbunny keezmovies mofosex motherless porn91 pornhd pornotube
67 + pornovoisines pornoxo redtube sexykarma sexu sunporno slutload
68 + spankbang spankwire thisav trutube tube8 vporn xbef xnxx xtube
69 + xvideos xxxymovies youjizz youporn
70 + )
71 + # these have multi-line import statements
72 + local mxxx=(
73 + pornhub xhamster tnaflix
74 + )
75 + # do single line imports
76 + sed -i \
77 + -e $( printf '/%s/d;' ${xxx[@]} ) \
78 + youtube_dl/extractor/__init__.py \
79 + || die
80 +
81 + # do multiple line imports
82 + sed -i \
83 + -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
84 + youtube_dl/extractor/__init__.py \
85 + || die
86 +
87 + sed -i \
88 + -e $( printf '/%s/d;' ${mxxx[@]} ) \
89 + youtube_dl/extractor/generic.py \
90 + youtube_dl/extractor/tumblr.py \
91 + || die
92 +
93 + rm \
94 + $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
95 + $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
96 + test/test_age_restriction.py \
97 + || die
98 + fi
99 +
100 + epatch_user
101 +}
102 +
103 +src_compile() {
104 + distutils-r1_src_compile
105 +}
106 +
107 +src_test() {
108 + emake test
109 +}
110 +
111 +src_install() {
112 + python_domodule youtube_dl
113 + dobin bin/${PN}
114 + dodoc README.txt
115 + doman ${PN}.1
116 + newbashcomp ${PN}.bash-completion ${PN}
117 + python_fix_shebang "${ED}"
118 +}