1 |
commit: cd5beaca8f28eee1e0676abcf15bbc82c670b3e9 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 10:39:29 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 10:39:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd5beaca |
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.30.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 446fbf4..523b843 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.17.tar.gz 2288138 SHA256 a87d716b796df153a3561107a935d96c2b049507a09c0a02a4039e751ae63e33 SHA512 20349a25d15259509dfd34837b8938e050c7fd5da7566f435d83ccd76c02bf3ccce79ade1f3e97f2fe08dfe90473fe2e3cad754482f524fd8961fd1324d66025 WHIRLPOOL 128f2c7849669eff58bacc6d11f89f8758524cf615457a099e5b37707d23ca208ad98f587f68c4ec360ef27a310024f65883e2731039b1fb241e535423cc05aa |
23 |
DIST youtube-dl-2016.07.22.tar.gz 2291788 SHA256 69aad90eb92d0c2814ebdd3eefc863ad74a02a490e42cbbadf4befbbd8ed8c0b SHA512 1f1bb80bded13c45bfbdaded01a0259d91dcccbb583b34719426c26b00c3810cd6dc864953c2dc34f87f092e7973c22bb45042aecda5873984069a8031e25e92 WHIRLPOOL f8c3e67f4f2331ec5e6a97269cff88e4fed858f07b3203b605c6b2b7ac592a8a00bf308e5dd3d756c1cc3eae26aad9d482e199822bc5e0c1c12f5c8b97abfe6a |
24 |
+DIST youtube-dl-2016.07.30.tar.gz 2295943 SHA256 c3a1e9732e2c44eccd97297f460a011d9822d068ba484156bf25cf11d1053ae9 SHA512 689cce8c898328b29b6ff47936d40435ca9035f26d329207af752bcee469bffe282553d5cfe45ab99b98aa6227d768c53ae3c4a0720382ee311c36bfb60cfa30 WHIRLPOOL 7772164f9528938fe5fe73659d6203fda4d6ebd46df09680a40375ff3287a092446b4c118e9afeb7ce1228ff9c2e8b9d43f350b1774bfa4d590bac3279106da3 |
25 |
|
26 |
diff --git a/net-misc/youtube-dl/youtube-dl-2016.07.30.ebuild b/net-misc/youtube-dl/youtube-dl-2016.07.30.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..9d7ca82 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/youtube-dl/youtube-dl-2016.07.30.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 |
+} |