1 |
commit: 7915bf352ebddb9e455c5c14590bcc9616677ad5 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 11 04:55:08 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 11 04:59:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7915bf35 |
7 |
|
8 |
net-misc/youtube-dl: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-misc/youtube-dl/Manifest | 1 + |
13 |
net-misc/youtube-dl/youtube-dl-2016.07.11.ebuild | 94 ++++++++++++++++++++++++ |
14 |
2 files changed, 95 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest |
17 |
index a4dc2db..385c88a 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.07.07.tar.gz 2264691 SHA256 9e2008db1f00140233ee188674eef96ba11e6e7bb84a51a9140ceb18f1c6942f SHA512 326fcbc721eed2dd652e2d496693bf173f3024cbf9c68345df0bafca362221233f8503e2b26865353fe76ef036d0a9edaa87cb9a91de61582555d86128b8d979 WHIRLPOOL 4320d44dedfc45cf919a9400a7926af384a6e1b53f0ca890a79ec4fb36471c2d92820f875576ac3a7957617b579adfd646aeed9dcecb16ff9ac05d00f6f17861 |
23 |
DIST youtube-dl-2016.07.09.1.tar.gz 2270473 SHA256 244585080738b4ea6374559c55a38d11577d36cccead6cf90a57c15e55500b36 SHA512 d6d77396fd347f0852dbe57208884200d588e7b8428c780b10670d08a3319c5fb791b6138e6cd9d52583db13f6a4cb1fcc4b119d2bc361753907cbe2712f1903 WHIRLPOOL 54660596a21b5d781692db5c7af076091fa157bf3eee17b7961e02129c38e60343abb4baa5bf33ef77ca7ac54d4960160c1d9ea98fc2afa7407603d74e2a1d3b |
24 |
+DIST youtube-dl-2016.07.11.tar.gz 2277011 SHA256 f661957cf1f52bfa7b621cf1b02c0200862a7931e92e25cd984a9c302c3e4d87 SHA512 7c112b238f65a7e4029204f06fa42c67c2fa5d370dc1d796c8fe83d0f585b355e2dfdebc8312bb082acbc72e98b0969b9894c0fba9297016eca2ac09d14b7c51 WHIRLPOOL 19b542560d7044783160671b40187b33b0034a5770bacef8c68d9e490e40bb1af47a1c4e7ebb2b1eb208963b6d3f8732899a2cf1c90e4ce7fbb347dc9dd2b5f6 |
25 |
|
26 |
diff --git a/net-misc/youtube-dl/youtube-dl-2016.07.11.ebuild b/net-misc/youtube-dl/youtube-dl-2016.07.11.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..9d7ca82 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/youtube-dl/youtube-dl-2016.07.11.ebuild |
31 |
@@ -0,0 +1,94 @@ |
32 |
+# Copyright 1999-2016 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 |
+inherit bash-completion-r1 distutils-r1 eutils |
40 |
+ |
41 |
+DESCRIPTION="Download videos from YouTube.com (and more sites...)" |
42 |
+HOMEPAGE="https://rg3.github.com/youtube-dl/" |
43 |
+SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="public-domain" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
48 |
+IUSE="offensive test" |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
52 |
+ test? ( dev-python/nose[coverage(+)] ) |
53 |
+" |
54 |
+ |
55 |
+S="${WORKDIR}/${PN}" |
56 |
+ |
57 |
+python_prepare_all() { |
58 |
+ if ! use offensive; then |
59 |
+ sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \ |
60 |
+ youtube_dl/version.py || die |
61 |
+ # these have single line import statements |
62 |
+ local xxx=( |
63 |
+ alphaporno anysex behindkink camwithher chaturbate drtuber eporner |
64 |
+ eroprofile extremetube fourtube foxgay goshgay hellporno |
65 |
+ hentaistigma hornbunny keezmovies lovehomeporn mofosex motherless |
66 |
+ myvidster porn91 pornhd pornotube pornovoisines pornoxo redtube |
67 |
+ ruleporn sexu slutload spankbang spankwire sunporno thisav trutube |
68 |
+ tube8 vporn watchindianporn xbef xnxx xtube xvideos xxxymovies |
69 |
+ 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/extractors.py \ |
79 |
+ || die |
80 |
+ |
81 |
+ # do multiple line imports |
82 |
+ sed -i \ |
83 |
+ -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \ |
84 |
+ youtube_dl/extractor/extractors.py \ |
85 |
+ || die |
86 |
+ |
87 |
+ sed -i \ |
88 |
+ -e $( printf '/%s/d;' ${mxxx[@]} ) \ |
89 |
+ youtube_dl/extractor/generic.py \ |
90 |
+ || die |
91 |
+ |
92 |
+ rm \ |
93 |
+ $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \ |
94 |
+ $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \ |
95 |
+ test/test_age_restriction.py \ |
96 |
+ || die |
97 |
+ fi |
98 |
+ |
99 |
+ epatch_user |
100 |
+ |
101 |
+ distutils-r1_python_prepare_all |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ distutils-r1_src_compile |
106 |
+} |
107 |
+ |
108 |
+python_test() { |
109 |
+ emake test |
110 |
+} |
111 |
+ |
112 |
+python_install_all() { |
113 |
+ dodoc README.txt |
114 |
+ doman ${PN}.1 |
115 |
+ |
116 |
+ newbashcomp ${PN}.bash-completion ${PN} |
117 |
+ |
118 |
+ insinto /usr/share/zsh/site-functions |
119 |
+ newins youtube-dl.zsh _youtube-dl |
120 |
+ |
121 |
+ insinto /usr/share/fish/completions |
122 |
+ doins youtube-dl.fish |
123 |
+ |
124 |
+ distutils-r1_python_install_all |
125 |
+} |