From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BB8F51382DE for ; Fri, 1 Jul 2016 04:41:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CBFCE0B3F; Fri, 1 Jul 2016 04:41:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F350E0B3F for ; Fri, 1 Jul 2016 04:41:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DFDC1340DFB for ; Fri, 1 Jul 2016 04:41:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C93297B for ; Fri, 1 Jul 2016 04:41:23 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1467348062.a424f0185c52609ef69682d0291b92836abdd008.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/youtube-dl/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/youtube-dl/Manifest net-misc/youtube-dl/youtube-dl-2016.07.01.ebuild X-VCS-Directories: net-misc/youtube-dl/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: a424f0185c52609ef69682d0291b92836abdd008 X-VCS-Branch: master Date: Fri, 1 Jul 2016 04:41:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a5a0414b-358b-4aec-bb72-872d2f9379fc X-Archives-Hash: ad15e5e433b59061f358ccdd5dcce217 commit: a424f0185c52609ef69682d0291b92836abdd008 Author: Jeroen Roovers gentoo org> AuthorDate: Fri Jul 1 04:33:32 2016 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Fri Jul 1 04:41:02 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a424f018 net-misc/youtube-dl: Version bump. Package-Manager: portage-2.3.0 net-misc/youtube-dl/Manifest | 1 + net-misc/youtube-dl/youtube-dl-2016.07.01.ebuild | 96 ++++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest index f9c6a21..9e8bcb3 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.06.25.tar.gz 2218218 SHA256 4b89cb8dd9314f3291509ec9fce99e25ffd2161b745e1fff064ae102bbf6a12f SHA512 ec7362d19d442fefae59df23e1b0cd5f9bafea21e3b47999f93674d2acfc7058ecae4ec15038e7cdd5d6c05f40839bbaa771b01dc5c38ad888214b5fff9497b7 WHIRLPOOL 11be7196c5f8647a61e26e401b783601beca666f53b805e652759ebe7c87f45b6eb06da58841b2aa7d5ab5bf5e4b4449fef13359f4c3ece64f6ed274aa3deea8 DIST youtube-dl-2016.06.27.tar.gz 2224557 SHA256 6ccb3ab1b2e3d5c231b9fff3bffe7c60b3c4973a8269bbe6a5b6835527109bcf SHA512 e117e6c0cab79acc4225bbf6e4bdaa1d439ca35f6018ac49c20c48fd72a0297f703ba5885f6ce378eefa5f26ac94c080682d1012467971ab72803deca3a576f4 WHIRLPOOL b2693ecb168e0ee6d3eab36f4e7ec8e0ae0e18313c3c60fae80fa601c801a245a8559227705a2ad4b12fa6d3ab9175c5fe8806fe19037790f0ba568ac91dd87a +DIST youtube-dl-2016.07.01.tar.gz 2237365 SHA256 ffb6f2b9369ed239e2c139167dc60c521747875a2f5c45917c3b88c8ed74dd36 SHA512 a254954fe6b9b147639bad7ffbcf60d8778b6a9b17f2dedaf3be8f9a17f4271899c1650d7646b440dce8912403dca6cd5c59d988971dc631dd494dad1bc020c3 WHIRLPOOL 1c5cbf1d9a87a14efea052343dbf263b7c6b677cae26ff600073acdd9a68fe4e566773f9f918c4885d377bd5e677362ab27dc27a1f443c6bc9dd4451c5009d4f diff --git a/net-misc/youtube-dl/youtube-dl-2016.07.01.ebuild b/net-misc/youtube-dl/youtube-dl-2016.07.01.ebuild new file mode 100644 index 0000000..969c3bf --- /dev/null +++ b/net-misc/youtube-dl/youtube-dl-2016.07.01.ebuild @@ -0,0 +1,96 @@ +# 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}) +DISTUTILS_SINGLE_IMPL=true +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}" + +src_prepare() { + 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 +} + +src_compile() { + distutils-r1_src_compile +} + +src_test() { + emake test +} + +src_install() { + python_domodule youtube_dl + dobin bin/${PN} + + 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 + + python_fix_shebang "${ED}" +}