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 EFA681388C0 for ; Tue, 1 Mar 2016 03:28:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA88521C033; Tue, 1 Mar 2016 03:28:14 +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 2557F21C03C for ; Tue, 1 Mar 2016 03:28:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0817B340ADB for ; Tue, 1 Mar 2016 03:28:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5DAF0154D for ; Tue, 1 Mar 2016 03:28:10 +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: <1456802711.3f7888ad2495c7348f2973c112fab14e2e58432f.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.03.01.ebuild X-VCS-Directories: net-misc/youtube-dl/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 3f7888ad2495c7348f2973c112fab14e2e58432f X-VCS-Branch: master Date: Tue, 1 Mar 2016 03:28:10 +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: 1d5753db-26b5-4b46-9202-51766f5d524e X-Archives-Hash: 325d5264e4937f5bdc2ef007d4de6142 commit: 3f7888ad2495c7348f2973c112fab14e2e58432f Author: Jeroen Roovers gentoo org> AuthorDate: Tue Mar 1 03:25:11 2016 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Tue Mar 1 03:25:11 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7888ad 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.03.01.ebuild | 87 ++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest index 809a386..57f4cf2 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.02.22.tar.gz 1971515 SHA256 14cf17af94a23d451c1c8d2fcc8ee072ee99746d6bc7487c91043498599d630a SHA512 9b1e5bf5cfe8aef0dd55093c046669358b7efc01d0a89abd8a75a4f3dd132dec90b74f1e7bddadf22d4ea21a91168f4962752739c9acd9c232c6757c2307054c WHIRLPOOL 45690a4b1e1e0233d3217d481b9c078b3a4833eaa9857bc762eab4d2c6f663f7bcdbf7a1e065d52b555a6194572cff1e0bcafaf687381153f1e4c3b74c0da361 DIST youtube-dl-2016.02.27.tar.gz 1982455 SHA256 fe22ed108ec94f35e66b0907edffc6e67af54ead95a6f71e4b1ac53d2e1e006e SHA512 cec7d1d3dea8276d8bf14f1f6892ee080fcb50aa2db86eeb06a3ac3e71035ce8168b2ededf57b5d10d66af4fd7d802efb8268baf1f6fc9e79b1f8bd663e8f498 WHIRLPOOL 607adfcc682bc2020f1262cd6128a8ea86c8ed3d7d9909f2f920e866ae5cd946b21aa68bfbcca1260c2b498f3dc19e2827c9504a9e7c2207fb690f682192af6b +DIST youtube-dl-2016.03.01.tar.gz 1983124 SHA256 fc0f9aebcf3983a848a35631ed1aa465ff3feca507387bff72286a9b49f14d70 SHA512 2b2c273ef047dbc3b9d70945e32e49ee11067a11c9cb518c05cb1998f53a20f341cca60906db4cb48fbbd9d464b6a35566d1296e85d65b2db7dc007f4c74f262 WHIRLPOOL b24b72c96cc352a13edd8f21fd0f2145be4c2d701d236c677d1867f1e48bad1876c74a90057a09723dfe9144ece7549af685ad7fed60a928412ce9f599002bc1 diff --git a/net-misc/youtube-dl/youtube-dl-2016.03.01.ebuild b/net-misc/youtube-dl/youtube-dl-2016.03.01.ebuild new file mode 100644 index 0000000..5db7401 --- /dev/null +++ b/net-misc/youtube-dl/youtube-dl-2016.03.01.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}" +}