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: Wed, 27 Jan 2016 07:19:03
Message-Id: 1453879118.dffd2edeb3f42ec7907ed603e5355fe0261eaa34.jer@gentoo
1 commit: dffd2edeb3f42ec7907ed603e5355fe0261eaa34
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 07:12:52 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 27 07:18:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dffd2ede
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.23.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 9df2115..712a9ba 100644
18 --- a/net-misc/youtube-dl/Manifest
19 +++ b/net-misc/youtube-dl/Manifest
20 @@ -5,3 +5,4 @@ DIST youtube-dl-2016.01.01.tar.gz 1874602 SHA256 732f37c99d71b4239d72d61dd32214b
21 DIST youtube-dl-2016.01.09.tar.gz 1888095 SHA256 463cfed59a1e2c6609a8e3d3354e0494833f1b249fe1979984b06a51ac5c904d SHA512 bc022939ec2cdd574ca5ecedbfb349d516881996b50aac6a96220d94c358a38ff4ec8f8bd50195e2a6087dee558149e820935c60eaff8bb521bc8828413d44bf WHIRLPOOL a9fcffa926a72d6558b583390f1023568ee8c97695a87e15add7d72b7bd556c23056948df2bfb55902d7f2cbc3206c69844bee8b5e8ea1e3d7786b58806108f6
22 DIST youtube-dl-2016.01.14.tar.gz 1891877 SHA256 8fb4829219c591d0b9a94ebc7bda933db33d4b04d9875a8d725affdbc28e5aad SHA512 2c75fb70472daa7ee83c3a5c25af3c0a9a8928cc5c0517f4b566164495aece3274af5003f21fd861f543b32659ea507c8bf96319c6451a9ba9f16320433f4b5d WHIRLPOOL 74bb7949baff66a87729ec60b9c33451581325bd1e412d8d48bf7fa3fa095873849a3efe5c36ccc15e92a89ebfbe2ae50ddf140f900372bca87abe53213f60c3
23 DIST youtube-dl-2016.01.15.tar.gz 1898595 SHA256 c1e22ca3286aff74a668d1f8ef5c84c37bee2c269824e71ffdb23356a8735c44 SHA512 37cfb097e3345f9775a867d54f61eb60a94ba3408c3ef448ebb895e8bb74915f30f4ae87030d7f5d48bd9dfa2bccff302a6ede28624b7d17c4f164a9561d47db WHIRLPOOL 8a8653e49a043a34934b0e8c68be21a79899be4b391b0c7e6fceb6583f0ec22204349ca4aad0ef56703bb24ce8e4362d1c1cec95bef89cc24743191c6af3c1e8
24 +DIST youtube-dl-2016.01.23.tar.gz 1916234 SHA256 449f4330fac38ed9f2bb2a547f42c1cfd705bab6a8839ff279fc4bd91f233154 SHA512 ca3a7f2024ae97a290869e123d4b67c858f35894ce4309c295c3994c9bac1f406152cd36d893cd48c79bd3ada92b6e5e76ac1a87cbffc321fe03efc131d0445f WHIRLPOOL 9c628d0fd5f3abe1d44dd84a50400e837eb61d597a120d17b3e353430a250becea91bbdfa575b821e6f849092494640d4eac0b3917731c459202d324d00cb522
25
26 diff --git a/net-misc/youtube-dl/youtube-dl-2016.01.23.ebuild b/net-misc/youtube-dl/youtube-dl-2016.01.23.ebuild
27 new file mode 100644
28 index 0000000..5db7401
29 --- /dev/null
30 +++ b/net-misc/youtube-dl/youtube-dl-2016.01.23.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 +}