1 |
commit: 93402a30cfbae60defdf592fddc226ff4c181384 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 31 19:19:21 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 31 19:19:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93402a30 |
7 |
|
8 |
net-misc/youtube-dl: Version 2018.12.31 |
9 |
|
10 |
Package-Manager: Portage-2.3.53, 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-2018.12.31.ebuild | 117 +++++++++++++++++++++++ |
15 |
2 files changed, 118 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest |
18 |
index 7c33773ea3b..041d7305e37 100644 |
19 |
--- a/net-misc/youtube-dl/Manifest |
20 |
+++ b/net-misc/youtube-dl/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST youtube-dl-2018.12.17.tar.gz 3074432 BLAKE2B b6f4b3a7a2c2159093494230219914ee4a2f87194ebe741cc4687aefa76dfef09c282bcc6534030bb65cd87a641b05cc74bd74eecc0c78b57157970fbea98121 SHA512 88d98391d110d6542503590c4735c765137cde43bc3a1f1b33b197d323a1226ed550d559f67bd4aadab3c82de8a471fa71bf4e1440e5641e1c51ba5cb7059904 |
23 |
+DIST youtube-dl-2018.12.31.tar.gz 3076229 BLAKE2B e5ad08d81fd39f19fea592106c74b0f11eaab1ffb51ba3560234036623b6b41630af80d069f61c337d7a691e87d7092931fd498a3a4216fb160ed576eab254f7 SHA512 d86df7dfa49339019b31f4d10be448d1f82239568f05fd2c4a3d8a21b826489b3cc07eec3d1afb2d3e9e64be0ecefeade19de4deeed2fdbad8cb5c5edad9682c |
24 |
|
25 |
diff --git a/net-misc/youtube-dl/youtube-dl-2018.12.31.ebuild b/net-misc/youtube-dl/youtube-dl-2018.12.31.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..29fd6bd3825 |
28 |
--- /dev/null |
29 |
+++ b/net-misc/youtube-dl/youtube-dl-2018.12.31.ebuild |
30 |
@@ -0,0 +1,117 @@ |
31 |
+# Copyright 1999-2018 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 |
+} |