1 |
commit: b31adceb35117e4ff777099e9274d65bfa87c764 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 04:18:47 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 04:18:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b31adceb |
7 |
|
8 |
net-misc/youtube-dl: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-misc/youtube-dl/Manifest | 1 + |
13 |
net-misc/youtube-dl/youtube-dl-2016.03.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 995f6f6..571a4fd 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.03.01.tar.gz 1983124 SHA256 fc0f9aebcf3983a848a35631ed1aa465ff3feca507387bff72286a9b49f14d70 SHA512 2b2c273ef047dbc3b9d70945e32e49ee11067a11c9cb518c05cb1998f53a20f341cca60906db4cb48fbbd9d464b6a35566d1296e85d65b2db7dc007f4c74f262 WHIRLPOOL b24b72c96cc352a13edd8f21fd0f2145be4c2d701d236c677d1867f1e48bad1876c74a90057a09723dfe9144ece7549af685ad7fed60a928412ce9f599002bc1 |
23 |
DIST youtube-dl-2016.03.18.tar.gz 2022466 SHA256 1322afa755bc84531d1ede700a5fa2a6abb815b13a9382b83b78c5193f56fb8a SHA512 46f955a104155f44cf003acff350c7d94f6b206cb0e0026fd8bbbf1041553fca2ca2d3796bb8e9f1c6417be829b77c2c89dc0816229488fe806fae766d62ec03 WHIRLPOOL 2382ebbf4b4a694dfae9d8627d6fbc4749bfc4ae1755ec0a102dbfd0ae10d91f0207c1e84f67d5cb68d564ad86d37776ac421e857ef711ca6a75983689edbf45 |
24 |
+DIST youtube-dl-2016.03.27.tar.gz 2047145 SHA256 472e5d0b5907ace17267974ca8f3548c02c44c6ff679ab10ee01987873285dbf SHA512 ce7c3767e68844ed36a552b43e0f01903aadf0f8889e67b13d3679cf77dda80c739b7938c094dc5a0eb2073c5f3a0d032b40b184a50e5a2c25f9877efca12c75 WHIRLPOOL 0f6ba03d32c1a035ddffc4d7949dbe6c6bef16fc540ab63bffec04cef3d489f6b61914c2036d99c54091689a8ded35607500b783c5f626e79c7175a8b80de7bf |
25 |
|
26 |
diff --git a/net-misc/youtube-dl/youtube-dl-2016.03.27.ebuild b/net-misc/youtube-dl/youtube-dl-2016.03.27.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..5db7401 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/youtube-dl/youtube-dl-2016.03.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 |
+} |