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: Wed, 16 Jan 2019 21:38:43
Message-Id: 1547674715.8b80453c678b619d5e7b81d48463629e57fedc96.jer@gentoo
1 commit: 8b80453c678b619d5e7b81d48463629e57fedc96
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 16 20:31:51 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 16 21:38:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b80453c
7
8 net-misc/youtube-dl: Old
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-misc/youtube-dl/Manifest | 1 -
14 net-misc/youtube-dl/youtube-dl-2019.01.02.ebuild | 117 -----------------------
15 2 files changed, 118 deletions(-)
16
17 diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
18 index 33e85411865..338d103813e 100644
19 --- a/net-misc/youtube-dl/Manifest
20 +++ b/net-misc/youtube-dl/Manifest
21 @@ -1,2 +1 @@
22 -DIST youtube-dl-2019.01.02.tar.gz 3079437 BLAKE2B 6eb1610f5638fe64f4d1352ab763014550b99037dde08beb19b94a8d4877cd05f392ce840ec1bba28eee37a7b45b793afb4f68f6d5b234fe7d849501b7fb10f5 SHA512 745a1e9286c225ed0ad3517197304e39655d50ed33df44525579b7fe7038ff2be8fa0872adbc8c35cc738004b0d58c1f30f7af918c7251427da84002cc9ab944
23 DIST youtube-dl-2019.01.10.tar.gz 3085961 BLAKE2B 938fe458a22f1c02c5e420ed43bc65247b7992e90d224891e2f5c8fb6410a0fba62dedd035a37b0e8c42a7dadc8082a26c97fb3f192a02df8795c9cfac6c6a42 SHA512 86c86688bf9120b56a0cda54ca4c8fef20f7afeea38a80b44d5aa77958b80ac4605b8de9666668297d0a9244693b17dcdfd85ddacc8990b179bd942c4d7158f2
24
25 diff --git a/net-misc/youtube-dl/youtube-dl-2019.01.02.ebuild b/net-misc/youtube-dl/youtube-dl-2019.01.02.ebuild
26 deleted file mode 100644
27 index c26955b4088..00000000000
28 --- a/net-misc/youtube-dl/youtube-dl-2019.01.02.ebuild
29 +++ /dev/null
30 @@ -1,117 +0,0 @@
31 -# Copyright 1999-2019 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI="7"
35 -PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
36 -inherit bash-completion-r1 distutils-r1 readme.gentoo-r1
37 -
38 -DESCRIPTION="Download videos from YouTube.com (and more sites...)"
39 -HOMEPAGE="https://rg3.github.com/youtube-dl/"
40 -SRC_URI="https://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
41 -
42 -LICENSE="public-domain"
43 -SLOT="0"
44 -KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
45 -IUSE="+offensive test"
46 -
47 -RDEPEND="
48 - dev-python/setuptools[${PYTHON_USEDEP}]
49 -"
50 -DEPEND="
51 - ${RDEPEND}
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 eporner
64 - eroprofile extremetube foxgay goshgay hellporno hentaistigma
65 - hornbunny keezmovies lovehomeporn mofosex myvidster porn91 porncom
66 - pornflip pornhd pornotube pornovoisines pornoxo ruleporn sexu
67 - slutload spankbang spankwire sunporno thisav vporn watchindianporn
68 - xbef xnxx xtube xvideos xxxymovies youjizz youporn
69 - )
70 - # these have multi-line import statements
71 - local mxxx=(
72 - drtuber fourtube motherless pornhub redtube tnaflix tube8 xhamster
73 - )
74 - # do single line imports
75 - sed -i \
76 - -e $( printf '/%s/d;' ${xxx[@]} ) \
77 - youtube_dl/extractor/extractors.py \
78 - || die
79 -
80 - # do multiple line imports
81 - sed -i \
82 - -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
83 - youtube_dl/extractor/extractors.py \
84 - || die
85 -
86 - sed -i \
87 - -e $( printf '/%s/d;' ${mxxx[@]} ) \
88 - youtube_dl/extractor/generic.py \
89 - || die
90 -
91 - rm \
92 - $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
93 - $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
94 - test/test_age_restriction.py \
95 - || die
96 - fi
97 -
98 - eapply_user
99 -
100 - distutils-r1_python_prepare_all
101 -}
102 -
103 -src_compile() {
104 - distutils-r1_src_compile
105 -}
106 -
107 -python_test() {
108 - emake test
109 -}
110 -
111 -python_install_all() {
112 - dodoc README.txt
113 - doman ${PN}.1
114 -
115 - newbashcomp ${PN}.bash-completion ${PN}
116 -
117 - insinto /usr/share/zsh/site-functions
118 - newins ${PN}.zsh _${PN}
119 -
120 - insinto /usr/share/fish/vendor_completions.d
121 - doins ${PN}.fish
122 -
123 - distutils-r1_python_install_all
124 -
125 - rm -r "${ED}"/usr/etc || die
126 - rm -r "${ED}"/usr/share/doc/youtube_dl || die
127 -}
128 -
129 -pkg_postinst() {
130 - elog "${PN}(1) / https://bugs.gentoo.org/355661 /"
131 - elog "https://github.com/rg3/${PN}/blob/master/README.md#faq :"
132 - elog
133 - elog "${PN} works fine on its own on most sites. However, if you want"
134 - elog "to convert video/audio, you'll need avconf (media-video/libav) or"
135 - elog "ffmpeg (media-video/ffmpeg). On some sites - most notably YouTube -"
136 - elog "videos can be retrieved in a higher quality format without sound."
137 - elog "${PN} will detect whether avconv/ffmpeg is present and"
138 - elog "automatically pick the best option."
139 - elog
140 - elog "Videos or video formats streamed via RTMP protocol can only be"
141 - elog "downloaded when rtmpdump (media-video/rtmpdump) is installed."
142 - elog "Downloading MMS and RTSP videos requires either mplayer"
143 - elog "(media-video/mplayer) or mpv (media-video/mpv) to be installed."
144 - elog
145 - elog "If you want ${PN} to embed thumbnails from the metadata into the"
146 - elog "resulting MP4 files, consider installing media-video/atomicparsley"
147 -}