commit:     e74e948998e95c6199efe2d3bf1722a6d6635ba8
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  9 07:09:15 2016 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Jul  9 07:09:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e74e9489

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.09.1.ebuild | 94 ++++++++++++++++++++++
 2 files changed, 95 insertions(+)

diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
index 1aca0cf..2baf37c 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.07.01.tar.gz 2237365 SHA256 
ffb6f2b9369ed239e2c139167dc60c521747875a2f5c45917c3b88c8ed74dd36 SHA512 
a254954fe6b9b147639bad7ffbcf60d8778b6a9b17f2dedaf3be8f9a17f4271899c1650d7646b440dce8912403dca6cd5c59d988971dc631dd494dad1bc020c3
 WHIRLPOOL 
1c5cbf1d9a87a14efea052343dbf263b7c6b677cae26ff600073acdd9a68fe4e566773f9f918c4885d377bd5e677362ab27dc27a1f443c6bc9dd4451c5009d4f
 DIST youtube-dl-2016.07.07.tar.gz 2264691 SHA256 
9e2008db1f00140233ee188674eef96ba11e6e7bb84a51a9140ceb18f1c6942f SHA512 
326fcbc721eed2dd652e2d496693bf173f3024cbf9c68345df0bafca362221233f8503e2b26865353fe76ef036d0a9edaa87cb9a91de61582555d86128b8d979
 WHIRLPOOL 
4320d44dedfc45cf919a9400a7926af384a6e1b53f0ca890a79ec4fb36471c2d92820f875576ac3a7957617b579adfd646aeed9dcecb16ff9ac05d00f6f17861
+DIST youtube-dl-2016.07.09.1.tar.gz 2270473 SHA256 
244585080738b4ea6374559c55a38d11577d36cccead6cf90a57c15e55500b36 SHA512 
d6d77396fd347f0852dbe57208884200d588e7b8428c780b10670d08a3319c5fb791b6138e6cd9d52583db13f6a4cb1fcc4b119d2bc361753907cbe2712f1903
 WHIRLPOOL 
54660596a21b5d781692db5c7af076091fa157bf3eee17b7961e02129c38e60343abb4baa5bf33ef77ca7ac54d4960160c1d9ea98fc2afa7407603d74e2a1d3b

diff --git a/net-misc/youtube-dl/youtube-dl-2016.07.09.1.ebuild 
b/net-misc/youtube-dl/youtube-dl-2016.07.09.1.ebuild
new file mode 100644
index 0000000..9d7ca82
--- /dev/null
+++ b/net-misc/youtube-dl/youtube-dl-2016.07.09.1.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
+}

Reply via email to