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, 02 Jul 2017 20:38:50
Message-Id: 1499027916.fdc7deed820d17807ef4b6e0ccf6caedb5497d1a.jer@gentoo
1 commit: fdc7deed820d17807ef4b6e0ccf6caedb5497d1a
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 2 20:35:51 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 2 20:38:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdc7deed
7
8 net-misc/youtube-dl: Version bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-misc/youtube-dl/Manifest | 1 +
13 net-misc/youtube-dl/youtube-dl-2017.07.02.ebuild | 98 ++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
17 index f3660b8b961..dd28a46bd3b 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.06.05.tar.gz 2723532 SHA256 b54ca848490285909d0830c04c19376c2d78da74d8de0056387b11ba34234e8c SHA512 60b99df0e5aa9fc9248cbc47ce8c61f7d78485e6c6b4d8aba795e3a0da9e085d03cf860e94738fe184f8c6bec83897f5fdf5bd24c414bb8153053914203a4b7f WHIRLPOOL cbda1593c1c66524f68a97126465b7fc334b781c144aac6f55652ff454364da2df452bca636bd422ab43391b7c3720d3728d5f1a59b7a7f868d9e5f41b1029d6
22 DIST youtube-dl-2017.06.18.tar.gz 2728617 SHA256 f53d32c2ca64bb7bf2307666b42c88fa68dcc399f6a92ebed01b8693794e5f99 SHA512 5cf18135beea4331acaf3edc9e8b9c78f9ef2a9c9813a3708936e0c8c5119cf355c1afc932138e650fc4ba831025b2be6bde3fac33a62a49581d5964305bd3d1 WHIRLPOOL 07612cdc1c0463a4640642352833b23834d25e8ba6622a2311a518a227edfc5353e9425a4d889e268b7f6d8c199f0e17dd3197015728db05dd4f83891f40a0b3
23 DIST youtube-dl-2017.06.25.tar.gz 2737382 SHA256 0531958d4dc10f0fae7960a4c8d08d17fe57acf79719a76387d765c382809f59 SHA512 49a298ab041b264ca4a48b479851bcff96b2a535da8ed280d69fc1799702a43eb38289f00253271d9b320a538a8a374dcc27a0f3148d44db22fa57f8b41afce4 WHIRLPOOL e7bf63b54e35a2061d36c358f000dadb22769e20a1309dd4c43215c0fe1bb4096b198da2245c9ba4c967837d065525229861ca345a6392b83829f2ce58726f82
24 +DIST youtube-dl-2017.07.02.tar.gz 2740061 SHA256 5b8b11c932ddbc346e2188f0e3a4c0ab8203b1b749f8ea9b212e10d34fa20168 SHA512 08cf4693450ad9ecdad653d4e5508c0899a54e3e16f49f5957ee1ff1486f55333860c3b8ea0d45a1ec12bf5cdc4ce3f57abf9f6c1eb73eca1dd41a38e86bbe68 WHIRLPOOL f28898208dfe3230284f7e6803cb4002a0bd7f493bbc5826ae0ad76ee4453cb5c7413cfc9609fa7bb1131754a07415318e1c380e04a07bba4ff9c88ba1517915
25
26 diff --git a/net-misc/youtube-dl/youtube-dl-2017.07.02.ebuild b/net-misc/youtube-dl/youtube-dl-2017.07.02.ebuild
27 new file mode 100644
28 index 00000000000..867867e7361
29 --- /dev/null
30 +++ b/net-misc/youtube-dl/youtube-dl-2017.07.02.ebuild
31 @@ -0,0 +1,98 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +
37 +PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
38 +inherit bash-completion-r1 distutils-r1 eutils
39 +
40 +DESCRIPTION="Download videos from YouTube.com (and more sites...)"
41 +HOMEPAGE="https://rg3.github.com/youtube-dl/"
42 +SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
43 +
44 +LICENSE="public-domain"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
47 +IUSE="+offensive test"
48 +
49 +RDEPEND="
50 + dev-python/setuptools[${PYTHON_USEDEP}]
51 +"
52 +DEPEND="
53 + ${RDEPEND}
54 + test? ( dev-python/nose[coverage(+)] )
55 +"
56 +
57 +S="${WORKDIR}/${PN}"
58 +
59 +python_prepare_all() {
60 + if ! use offensive; then
61 + sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \
62 + youtube_dl/version.py || die
63 + # these have single line import statements
64 + local xxx=(
65 + alphaporno anysex behindkink camwithher chaturbate eporner
66 + eroprofile extremetube fourtube foxgay goshgay hellporno
67 + hentaistigma hornbunny keezmovies lovehomeporn mofosex motherless
68 + myvidster porn91 porncom pornflip pornhd pornotube pornovoisines
69 + pornoxo ruleporn sexu slutload spankbang spankwire sunporno thisav
70 + tube8 vporn watchindianporn xbef xnxx xtube xvideos xxxymovies
71 + youjizz youporn
72 + )
73 + # these have multi-line import statements
74 + local mxxx=(
75 + drtuber pornhub redtube tnaflix xhamster
76 + )
77 + # do single line imports
78 + sed -i \
79 + -e $( printf '/%s/d;' ${xxx[@]} ) \
80 + youtube_dl/extractor/extractors.py \
81 + || die
82 +
83 + # do multiple line imports
84 + sed -i \
85 + -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
86 + youtube_dl/extractor/extractors.py \
87 + || die
88 +
89 + sed -i \
90 + -e $( printf '/%s/d;' ${mxxx[@]} ) \
91 + youtube_dl/extractor/generic.py \
92 + || die
93 +
94 + rm \
95 + $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
96 + $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
97 + test/test_age_restriction.py \
98 + || die
99 + fi
100 +
101 + epatch_user
102 +
103 + distutils-r1_python_prepare_all
104 +}
105 +
106 +src_compile() {
107 + distutils-r1_src_compile
108 +}
109 +
110 +python_test() {
111 + emake test
112 +}
113 +
114 +python_install_all() {
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 + distutils-r1_python_install_all
127 +
128 + rm -r "${ED}"/usr/etc || die
129 +}