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 DD485139694 for ; Thu, 4 May 2017 15:05:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48476E0CB0; Thu, 4 May 2017 15:05:30 +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 19086E0CA7 for ; Thu, 4 May 2017 15:05:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C02BB3416C1 for ; Thu, 4 May 2017 15:05:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 60C7C7427 for ; Thu, 4 May 2017 15:05:25 +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: <1493910226.bd83839e63fc2b689507e4a0a9c39ed41ad15f91.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-2017.05.01.ebuild X-VCS-Directories: net-misc/youtube-dl/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: bd83839e63fc2b689507e4a0a9c39ed41ad15f91 X-VCS-Branch: master Date: Thu, 4 May 2017 15:05:25 +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: b30798c8-848e-4010-8239-892f1685c3bd X-Archives-Hash: 4967fde6069d47b039b9f28b71a6607b commit: bd83839e63fc2b689507e4a0a9c39ed41ad15f91 Author: Jeroen Roovers gentoo org> AuthorDate: Thu May 4 15:03:46 2017 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Thu May 4 15:03:46 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd83839e net-misc/youtube-dl: Version bump (bug #617464 by Coacher). Package-Manager: Portage-2.3.5, Repoman-2.3.2 net-misc/youtube-dl/Manifest | 1 + net-misc/youtube-dl/youtube-dl-2017.05.01.ebuild | 98 ++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest index 2bfd86f5cc8..cfcbe994436 100644 --- a/net-misc/youtube-dl/Manifest +++ b/net-misc/youtube-dl/Manifest @@ -1,3 +1,4 @@ DIST youtube-dl-2017.03.16.tar.gz 2631620 SHA256 55df3cbda9cf86e49baf54040340ec74c692bb3d6da3d2f5a1bc1238017dd492 SHA512 f3b8942f6b2be3b1cfd4bddfb74c17bad48c8ef4bea34114970ecb9d65b5a3dcbe71beba6d7c2dbda168371bbb2e8bbaddce58039bd9d158bf23950a2a88123c WHIRLPOOL 8345da00074e62ec9a9c244cb9ef64930fbd0e5e9e5bc1709bfcf56517cc6312031a09523c3016db2a1542c16a0297bea9d6883a201ae94e347e358307e92422 DIST youtube-dl-2017.04.17.tar.gz 2684486 SHA256 326f7ec2e0abe0aada4675987e967120a52ce2599c9b20e0d448de0c9f64302e SHA512 dfe8d762f0fb70dee87cd7156011582ef3cba33ce359a227c8e7e39e76fe51690452b2820e8cd41bf109e19f5e4976c9a2e50cb18533c4161720df0fa858d761 WHIRLPOOL c12269136093ddb2b7e2b9d59bfca2c87f921943b8977c9318400301742208e929f71f3e5bdbb3db9ae08cd7e71ac4dab5f28d2f78e3a855620f0ad06bb8c1b9 DIST youtube-dl-2017.04.26.tar.gz 2691549 SHA256 c320c8301a63ad97c099359c8b205d14c130b4f816dd92f0f5e68481628cfc47 SHA512 45b6e48828da72d4d014ba1605c94efbf7d082ad8527f49ec1333c4d7c210bcb64e68cbd140f505f318890693ed0b45c351d29344eb2162d00613674e60fbdb3 WHIRLPOOL a27b6944d033c9362c4891cc4d1ee8482383675378463f8a706cb9ba61d6245a4147ca7a4124d784aaebc585b052853bba645dec0e1b02446ebfc18af9c9fc97 +DIST youtube-dl-2017.05.01.tar.gz 2698645 SHA256 58e2151634a66fa9ab4a98978fa72bf15990ec1c088ac7e4393cca00c9a32e53 SHA512 8a48dfb4b3d0f1cb24f9602fbe85e640fdec5c43d3aad87adec0dc3f4441852bfe1940e77bd1cf42f2a745ece9cbb08c8a1432128ae8ad7fa0f4be4351775c9e WHIRLPOOL 7d5330817166feb99de4c2776618186d804b16823d736ddc5e5887c9017e30022b8104a93dc9e701c03248e22217b66bcdb207b545783fc8e6cfc55576049f89 diff --git a/net-misc/youtube-dl/youtube-dl-2017.05.01.ebuild b/net-misc/youtube-dl/youtube-dl-2017.05.01.ebuild new file mode 100644 index 00000000000..867867e7361 --- /dev/null +++ b/net-misc/youtube-dl/youtube-dl-2017.05.01.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6}) +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" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + 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 eporner + eroprofile extremetube fourtube foxgay goshgay hellporno + hentaistigma hornbunny keezmovies lovehomeporn mofosex motherless + myvidster porn91 porncom pornflip pornhd pornotube pornovoisines + pornoxo ruleporn sexu slutload spankbang spankwire sunporno thisav + tube8 vporn watchindianporn xbef xnxx xtube xvideos xxxymovies + youjizz youporn + ) + # these have multi-line import statements + local mxxx=( + drtuber pornhub redtube tnaflix xhamster + ) + # 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 + + rm -r "${ED}"/usr/etc || die +}