diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-08-13 14:16:17 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-08-13 14:17:21 +0200 |
commit | 957e9d6bc61ca13205e3fa96d91b36986c2ed340 (patch) | |
tree | d15899295932fac1748de4619d38da4f726a6e99 /net-misc/youtube-dl | |
parent | dev-ml/ANSITerminal: bump to 0.7 (diff) | |
download | gentoo-957e9d6bc61ca13205e3fa96d91b36986c2ed340.tar.gz gentoo-957e9d6bc61ca13205e3fa96d91b36986c2ed340.tar.bz2 gentoo-957e9d6bc61ca13205e3fa96d91b36986c2ed340.zip |
net-misc/youtube-dl: Version bump.
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-misc/youtube-dl')
-rw-r--r-- | net-misc/youtube-dl/Manifest | 1 | ||||
-rw-r--r-- | net-misc/youtube-dl/youtube-dl-2016.08.12.ebuild | 94 |
2 files changed, 95 insertions, 0 deletions
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest index 8e948f4f1b32..78b0e637cad7 100644 --- a/net-misc/youtube-dl/Manifest +++ b/net-misc/youtube-dl/Manifest @@ -1,3 +1,4 @@ DIST youtube-dl-2016.01.01.tar.gz 1874602 SHA256 732f37c99d71b4239d72d61dd32214b5a5a618671fb0629c8f8deb28209a172c SHA512 fdb022bed426250e5ee1c2bcc1354dd195c0f9793ca479ca8ca4cfe2f71e07ba100b0dbcda2fb9f310308ab130587d06b16a6a86f9036f0d196b317d2e5b5e92 WHIRLPOOL 152e709ba15264c35a89644ea0d4793bb47c82b317e54043ccfff72e40bdf95e42d76605e801233632d3863537a945cfb9ecc2f75245171b8de31b51ce6af801 DIST youtube-dl-2016.08.01.tar.gz 2297058 SHA256 b11f9abcfcad4ea7bf370bd80a7f8751a85e26e840337a9df60a6e9e73a6d7a1 SHA512 82c20c600967df3268b0cfb12a7ecf3b7a334e8b98a081f45ae1325774c362b94459d45e0f64b4353227c259cfd0000a17a8582b48dad3a016a978f03eafa9ed WHIRLPOOL 85a7bcc1f02cff9ee696a137e418757dd60b961e17afe67b638ca450436b1977512d2474af6c294385ac160ff50385ec82402bec3d8edbd377e2c2170ba57c9e DIST youtube-dl-2016.08.07.tar.gz 2309777 SHA256 6f42477c562291cd392b7a034a7b828bbf1e209a48de7629848ba82a3aacdc1f SHA512 4ead7dc1714b005b391dd5aebb2132e48fb1a2017d4e4db3f96c7c9bb9a60d93bafea1d36a15e5dcedf98bb33233fb6b9a33d7922b35578f37d028610649c621 WHIRLPOOL b06401f21d274a275c216b46f1503a281acb721948303a574794f54f380cd6c5d34315607df1efadff57c334749c518dce598a1e4bf445e785a7193db0a81109 +DIST youtube-dl-2016.08.12.tar.gz 2318468 SHA256 fb5224b78cee45df9514d96441c4ec9d9934215e504c07fe8c9252285a33ea5e SHA512 2bc1a32fd92df327588f4fdb2a8cadbb1d56349b28b037b85855cb8fcc0eb2277aaad8b8a62c2fb54d5d48bf0dfcb6287d8a31b94b6945e898133f4d05914a08 WHIRLPOOL 914b372624780bc84865e88aca5f8f0f49c5a024ae5828fc97be4a8aa0962dd5340c569cf4ce6bdf6b2d54d3c57cf676bbc71901079fe1321218fa9b9814ed21 diff --git a/net-misc/youtube-dl/youtube-dl-2016.08.12.ebuild b/net-misc/youtube-dl/youtube-dl-2016.08.12.ebuild new file mode 100644 index 000000000000..9d7ca82d0e68 --- /dev/null +++ b/net-misc/youtube-dl/youtube-dl-2016.08.12.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=(python{2_7,3_3,3_4,3_5}) +inherit bash-completion-r1 distutils-r1 eutils + +DESCRIPTION="Download videos from YouTube.com (and more sites...)" +HOMEPAGE="https://rg3.github.com/youtube-dl/" +SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="offensive test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[coverage(+)] ) +" + +S="${WORKDIR}/${PN}" + +python_prepare_all() { + if ! use offensive; then + sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \ + youtube_dl/version.py || die + # these have single line import statements + local xxx=( + alphaporno anysex behindkink camwithher chaturbate drtuber eporner + eroprofile extremetube fourtube foxgay goshgay hellporno + hentaistigma hornbunny keezmovies lovehomeporn mofosex motherless + myvidster porn91 pornhd pornotube pornovoisines pornoxo redtube + ruleporn sexu slutload spankbang spankwire sunporno thisav trutube + tube8 vporn watchindianporn xbef xnxx xtube xvideos xxxymovies + youjizz youporn + ) + # these have multi-line import statements + local mxxx=( + pornhub xhamster tnaflix + ) + # do single line imports + sed -i \ + -e $( printf '/%s/d;' ${xxx[@]} ) \ + youtube_dl/extractor/extractors.py \ + || die + + # do multiple line imports + sed -i \ + -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \ + youtube_dl/extractor/extractors.py \ + || die + + sed -i \ + -e $( printf '/%s/d;' ${mxxx[@]} ) \ + youtube_dl/extractor/generic.py \ + || die + + rm \ + $( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \ + $( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \ + test/test_age_restriction.py \ + || die + fi + + epatch_user + + distutils-r1_python_prepare_all +} + +src_compile() { + distutils-r1_src_compile +} + +python_test() { + emake test +} + +python_install_all() { + dodoc README.txt + doman ${PN}.1 + + newbashcomp ${PN}.bash-completion ${PN} + + insinto /usr/share/zsh/site-functions + newins youtube-dl.zsh _youtube-dl + + insinto /usr/share/fish/completions + doins youtube-dl.fish + + distutils-r1_python_install_all +} |