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: Sun, 28 Feb 2016 13:59:50
Message-Id: 1456667976.a233fec43988ab30d901ed3867379e297e63286a.jer@gentoo
1 commit: a233fec43988ab30d901ed3867379e297e63286a
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 13:58:39 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 13:59:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a233fec4
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.02.27.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 a941def..1bf5e3a 100644
18 --- a/net-misc/youtube-dl/Manifest
19 +++ b/net-misc/youtube-dl/Manifest
20 @@ -1,3 +1,4 @@
21 DIST youtube-dl-2016.01.01.tar.gz 1874602 SHA256 732f37c99d71b4239d72d61dd32214b5a5a618671fb0629c8f8deb28209a172c SHA512 fdb022bed426250e5ee1c2bcc1354dd195c0f9793ca479ca8ca4cfe2f71e07ba100b0dbcda2fb9f310308ab130587d06b16a6a86f9036f0d196b317d2e5b5e92 WHIRLPOOL 152e709ba15264c35a89644ea0d4793bb47c82b317e54043ccfff72e40bdf95e42d76605e801233632d3863537a945cfb9ecc2f75245171b8de31b51ce6af801
22 DIST youtube-dl-2016.02.13.tar.gz 1951048 SHA256 8bb5cb62aad23fd3b049d9ffac76af6d76af8c18d68da3a3b9f602adaca1d534 SHA512 5f453835e2829b74a1dce141180cfab33cb8e3ad8404f0b866495c7421d3e938a3ce374bcc7f4b11c52ac37e26a6e34692e7c147824f447e5f826253d32b1a47 WHIRLPOOL 132c175650f47fdf4d0b17a1c5d36b5dd1a183594193c328eb94eda58a6da6819689bb7fe732606e9c5f901ab3896a0a712f534cb29cf4355a925e9290441dc0
23 DIST youtube-dl-2016.02.22.tar.gz 1971515 SHA256 14cf17af94a23d451c1c8d2fcc8ee072ee99746d6bc7487c91043498599d630a SHA512 9b1e5bf5cfe8aef0dd55093c046669358b7efc01d0a89abd8a75a4f3dd132dec90b74f1e7bddadf22d4ea21a91168f4962752739c9acd9c232c6757c2307054c WHIRLPOOL 45690a4b1e1e0233d3217d481b9c078b3a4833eaa9857bc762eab4d2c6f663f7bcdbf7a1e065d52b555a6194572cff1e0bcafaf687381153f1e4c3b74c0da361
24 +DIST youtube-dl-2016.02.27.tar.gz 1982455 SHA256 fe22ed108ec94f35e66b0907edffc6e67af54ead95a6f71e4b1ac53d2e1e006e SHA512 cec7d1d3dea8276d8bf14f1f6892ee080fcb50aa2db86eeb06a3ac3e71035ce8168b2ededf57b5d10d66af4fd7d802efb8268baf1f6fc9e79b1f8bd663e8f498 WHIRLPOOL 607adfcc682bc2020f1262cd6128a8ea86c8ed3d7d9909f2f920e866ae5cd946b21aa68bfbcca1260c2b498f3dc19e2827c9504a9e7c2207fb690f682192af6b
25
26 diff --git a/net-misc/youtube-dl/youtube-dl-2016.02.27.ebuild b/net-misc/youtube-dl/youtube-dl-2016.02.27.ebuild
27 new file mode 100644
28 index 0000000..5db7401
29 --- /dev/null
30 +++ b/net-misc/youtube-dl/youtube-dl-2016.02.27.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 +}