1 |
commit: 98cb6a8f2a936d03d30456fdb649b070acde004f |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 26 07:22:39 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 26 07:22:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98cb6a8f |
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.06.25.ebuild | 96 ++++++++++++++++++++++++ |
14 |
2 files changed, 97 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest |
17 |
index 30741d9..c85a1e4 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.06.03.tar.gz 2155490 SHA256 29d9eb4eeea9c781010ee6111a8d0dc6469b9974fbd76c6c6d1641f3e8d489e2 SHA512 bd810f636c0a840ffd09cf1fe87001c64b4dc749b1a52a6807412bee36646862bbea6204457b4cb27425d2386d3f96a9b00eef674170cb013d12859944e256d7 WHIRLPOOL 6cf36e1f4f6d97613f59f204a94876f09c816d82b306a413833e183ac1c95d5fbd92f1bde70dbc063bd39e753ab43527b41e1a8d04dac7bca58ef1ec9a23ef2e |
23 |
DIST youtube-dl-2016.06.23.1.tar.gz 2214493 SHA256 fd4e2304eb71c934502929446596b898ca7197b26dabb3540795bcfcc16a2e13 SHA512 342ef1304050547cbce5f057ae980b71c016a13fba06e6f9a42a2dcf29a493b3d398527a1a482013df5c7aad41e2e76981a707133214b7e3fc002dbb82e4e262 WHIRLPOOL 8b6c0e993a944e4b6ba73128bcd6ccd5d020feb8a9d7d2598be892c72a4b1dda1ae8135e7c8840e0e33a523e7987b7fa74beaea20a8f318db5d10769a8cf25ec |
24 |
+DIST youtube-dl-2016.06.25.tar.gz 2218218 SHA256 4b89cb8dd9314f3291509ec9fce99e25ffd2161b745e1fff064ae102bbf6a12f SHA512 ec7362d19d442fefae59df23e1b0cd5f9bafea21e3b47999f93674d2acfc7058ecae4ec15038e7cdd5d6c05f40839bbaa771b01dc5c38ad888214b5fff9497b7 WHIRLPOOL 11be7196c5f8647a61e26e401b783601beca666f53b805e652759ebe7c87f45b6eb06da58841b2aa7d5ab5bf5e4b4449fef13359f4c3ece64f6ed274aa3deea8 |
25 |
|
26 |
diff --git a/net-misc/youtube-dl/youtube-dl-2016.06.25.ebuild b/net-misc/youtube-dl/youtube-dl-2016.06.25.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..969c3bf |
29 |
--- /dev/null |
30 |
+++ b/net-misc/youtube-dl/youtube-dl-2016.06.25.ebuild |
31 |
@@ -0,0 +1,96 @@ |
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 |
+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 camwithher chaturbate drtuber eporner |
65 |
+ eroprofile extremetube fourtube foxgay goshgay hellporno |
66 |
+ hentaistigma hornbunny keezmovies lovehomeporn mofosex motherless |
67 |
+ myvidster porn91 pornhd pornotube pornovoisines pornoxo redtube |
68 |
+ ruleporn sexu slutload spankbang spankwire sunporno thisav trutube |
69 |
+ tube8 vporn watchindianporn xbef xnxx xtube xvideos xxxymovies |
70 |
+ youjizz youporn |
71 |
+ ) |
72 |
+ # these have multi-line import statements |
73 |
+ local mxxx=( |
74 |
+ pornhub xhamster tnaflix |
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 |
+ 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 |
+ |
115 |
+ dodoc README.txt |
116 |
+ doman ${PN}.1 |
117 |
+ |
118 |
+ newbashcomp ${PN}.bash-completion ${PN} |
119 |
+ |
120 |
+ insinto /usr/share/zsh/site-functions |
121 |
+ newins youtube-dl.zsh _youtube-dl |
122 |
+ |
123 |
+ insinto /usr/share/fish/completions |
124 |
+ doins youtube-dl.fish |
125 |
+ |
126 |
+ python_fix_shebang "${ED}" |
127 |
+} |