From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6611E58973 for ; Wed, 10 Feb 2016 15:59:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC31721C0D2; Wed, 10 Feb 2016 15:59:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3A72921C0D2 for ; Wed, 10 Feb 2016 15:59:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 41551340B53 for ; Wed, 10 Feb 2016 15:59:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BAA788DF for ; Wed, 10 Feb 2016 15:59:29 +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: <1455119952.9645b1feb2b502ae49e78d8a6af10e4336ca9a18.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.02.10.ebuild X-VCS-Directories: net-misc/youtube-dl/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 9645b1feb2b502ae49e78d8a6af10e4336ca9a18 X-VCS-Branch: master Date: Wed, 10 Feb 2016 15:59:29 +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: 55f4aeb4-57f9-4103-bb88-eff7a757bee8 X-Archives-Hash: 2e09e3df5b1c9c64f7afdf6d2e475a09 commit: 9645b1feb2b502ae49e78d8a6af10e4336ca9a18 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Feb 10 15:52:34 2016 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Wed Feb 10 15:59:12 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9645b1fe net-misc/youtube-dl: Version bump. Package-Manager: portage-2.2.27 net-misc/youtube-dl/Manifest | 1 + net-misc/youtube-dl/youtube-dl-2016.02.10.ebuild | 87 ++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest index fc21d50..d721c2e 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.01.29.tar.gz 1919314 SHA256 4b39800787d288c5f44cf00342d900d53386ef41c66a5397b406acac9fd60212 SHA512 24f7646bd81040e16cbe66b5c67c35800799fef797b735c45e3f3c13cc5222c390484c452eedba2a42ba57dc3a88a153d7430bf0db378f6619191af1dfcfa4e8 WHIRLPOOL 975cf0c68ed2149513157e5e7107d66ca7355f97a2e6e8773282df071b28413e19d099a07b241a43fe2d6f5a703ea4dc12567db2c63e110775a35b8e9f5aae78 DIST youtube-dl-2016.02.01.tar.gz 1931170 SHA256 cac97ffda989b5783b7b05dd04cdb9f602089163d4c0dbeb55fc749899422613 SHA512 04db834328056402b2a91e9e244fa74abb4a7782fcea489c9ae7b6669f96ebc2d13cff576b02ccbbdfe3d6914c90ebc2b728334422a0ae0e454b1e03dd9db2b1 WHIRLPOOL 04c731813b50770864504f13b18cf493639975a27de0e10faad20e90f8d800228e4792924c5a7ca1b0e99df5729422e9a6209253159af63f5ab07e8118c87af2 +DIST youtube-dl-2016.02.10.tar.gz 1943121 SHA256 386cfc2128eebbedf2c4ffdb41537aede509436cdb6b6ef596da4eece376d023 SHA512 1242fd72705726334b1651a55d6406065145ace16d8f23d4cc25f729a2efc5db098a5de1beba68cf924e51bab6fa70745ae958a539421c168b3fd4c636076614 WHIRLPOOL 5813233d1955099f2a6b0fc897e7a06881f04a79cbf4de5ec54ed2c94dc24ea1f52a8aec9c06a1d67c054875d9bdcd7ce101f38392a8b4e428199530360200dc diff --git a/net-misc/youtube-dl/youtube-dl-2016.02.10.ebuild b/net-misc/youtube-dl/youtube-dl-2016.02.10.ebuild new file mode 100644 index 0000000..5db7401 --- /dev/null +++ b/net-misc/youtube-dl/youtube-dl-2016.02.10.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 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 chaturbate drtuber eporner eroprofile + extremetube fourtube foxgay goshgay hellporno hentaistigma + hornbunny keezmovies mofosex motherless porn91 pornhd pornotube + pornovoisines pornoxo redtube sexykarma sexu sunporno slutload + spankbang spankwire thisav trutube tube8 vporn 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/__init__.py \ + || die + + # do multiple line imports + sed -i \ + -e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \ + youtube_dl/extractor/__init__.py \ + || die + + sed -i \ + -e $( printf '/%s/d;' ${mxxx[@]} ) \ + youtube_dl/extractor/generic.py \ + youtube_dl/extractor/tumblr.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} + python_fix_shebang "${ED}" +}