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, 15 Oct 2017 11:54:06
Message-Id: 1508068375.fa3c4862b23c23639467b3ae6c7b8c96130c0ed8.jer@gentoo
1 commit: fa3c4862b23c23639467b3ae6c7b8c96130c0ed8
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 15 11:52:55 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 15 11:52:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa3c4862
7
8 net-misc/youtube-dl: Version bump.
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 net-misc/youtube-dl/Manifest | 1 +
13 net-misc/youtube-dl/youtube-dl-2017.10.15.1.ebuild | 97 ++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
17 index ef9116fb301..009ab62396f 100644
18 --- a/net-misc/youtube-dl/Manifest
19 +++ b/net-misc/youtube-dl/Manifest
20 @@ -2,3 +2,4 @@ DIST youtube-dl-2017.03.16.tar.gz 2631620 SHA256 55df3cbda9cf86e49baf54040340ec7
21 DIST youtube-dl-2017.09.24.tar.gz 2810181 SHA256 7d7140ce63377e84a2072b4922809c7a2e90e3916cde2f4f1cc8860664395548 SHA512 de96406aeabb993a39941f5c67947fd1b77ec003be36b215cb3df1e5c90d63c7c570a5ca7627f5b2faae6a15ee07d45cf339cac6b511890acf49c5c38e6c5672 WHIRLPOOL e248990cce1bcbe50ae9e0ac6a95d760948809ec371b93126011d71599e721f1e9b0784690b832d3c5c04fb55c048b08c091193f821b18e1211f4c393ab2d017
22 DIST youtube-dl-2017.10.01.tar.gz 2813364 SHA256 0b4f0e12b099c46ad47597764b10f45ceae3935834abf99d49ccd8cfb48dff10 SHA512 f1eafecb2418276df7e7bdb73402779521197f551be3431eda9727390884d42c50a73895d0c58fc3783ab04712e4bf5aa072dad6d3241724e19e6c4c80c0080d WHIRLPOOL 281b7cdb288c1890e785d15cf1aa7c1f8e33976c521559551924b0f18b26981fb33a0b60ff86df796613ef34d273a13b3ada3c5f3e851534dad4bf124260f509
23 DIST youtube-dl-2017.10.07.tar.gz 2816312 SHA256 d9a8935087c1e2fa3307594ae15f1e9ea0f8676e825fa676a50a3a3d471bba83 SHA512 4842c8b324a10a4eff398226749ff8394ca60cf1e47873c1dfb5cf9828b77772670ea30891f32b26bab421aa0e7ca95e2815e062061a2cbaf22e6c5f76e1d87d WHIRLPOOL 525eb2eb3f18bf5ed1776f1a4d43dd010793b3b1681f27b3ed4ed4afdbd0c3dcd2c18b8e532de1fa3c318ac6a5f186c0bdf60fa4c7c69fe939335a7235679c3c
24 +DIST youtube-dl-2017.10.15.1.tar.gz 2820437 SHA256 da6ae68b2fbe81da7cf4ac6b989fa7bf27b3beb214eed551d466cc6e41d7297f SHA512 6093747f732dac4eda4c71d334ed01fc24ba70d29e5660c38ff795861f06c4029441c3a4576e6a5463974488aeb7732687e5634481c8b04127f77499a2405a1c WHIRLPOOL cc8fca27f2a110fde556e6c6506a88715d4e4a03c971b7e74e77a91a5b28916c66146afd6e476a19aca2fff3270719da102d254a05f62dbabb5dc2a10040d839
25
26 diff --git a/net-misc/youtube-dl/youtube-dl-2017.10.15.1.ebuild b/net-misc/youtube-dl/youtube-dl-2017.10.15.1.ebuild
27 new file mode 100644
28 index 00000000000..975ce26c347
29 --- /dev/null
30 +++ b/net-misc/youtube-dl/youtube-dl-2017.10.15.1.ebuild
31 @@ -0,0 +1,97 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
37 +inherit bash-completion-r1 distutils-r1
38 +
39 +DESCRIPTION="Download videos from YouTube.com (and more sites...)"
40 +HOMEPAGE="https://rg3.github.com/youtube-dl/"
41 +SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
42 +
43 +LICENSE="public-domain"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
46 +IUSE="+offensive test"
47 +
48 +RDEPEND="
49 + dev-python/setuptools[${PYTHON_USEDEP}]
50 +"
51 +DEPEND="
52 + ${RDEPEND}
53 + test? ( dev-python/nose[coverage(+)] )
54 +"
55 +
56 +S="${WORKDIR}/${PN}"
57 +
58 +python_prepare_all() {
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 camwithher chaturbate eporner
65 + eroprofile extremetube foxgay goshgay hellporno hentaistigma
66 + hornbunny keezmovies lovehomeporn mofosex motherless myvidster
67 + porn91 porncom pornflip pornhd pornotube pornovoisines pornoxo
68 + ruleporn sexu slutload spankbang spankwire sunporno thisav tube8
69 + vporn watchindianporn xbef xnxx xtube xvideos xxxymovies youjizz
70 + youporn
71 + )
72 + # these have multi-line import statements
73 + local mxxx=(
74 + drtuber fourtube pornhub redtube tnaflix xhamster
75 + )
76 + # do single line imports
77 + sed -i \
78 + -e $( printf '/%s/d;' ${xxx[@]} ) \
79 + youtube_dl/extractor/extractors.py \
80 + || die
81 +
82 + # do multiple line imports
83 + sed -i \
84 + -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
85 + youtube_dl/extractor/extractors.py \
86 + || die
87 +
88 + sed -i \
89 + -e $( printf '/%s/d;' ${mxxx[@]} ) \
90 + youtube_dl/extractor/generic.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 + eapply_user
101 +
102 + distutils-r1_python_prepare_all
103 +}
104 +
105 +src_compile() {
106 + distutils-r1_src_compile
107 +}
108 +
109 +python_test() {
110 + emake test
111 +}
112 +
113 +python_install_all() {
114 + dodoc README.txt
115 + doman ${PN}.1
116 +
117 + newbashcomp ${PN}.bash-completion ${PN}
118 +
119 + insinto /usr/share/zsh/site-functions
120 + newins youtube-dl.zsh _youtube-dl
121 +
122 + insinto /usr/share/fish/completions
123 + doins youtube-dl.fish
124 +
125 + distutils-r1_python_install_all
126 +
127 + rm -r "${ED}"/usr/etc || die
128 +}