commit:     a942a3647550488997f8828021b4408dd5960af2
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 15 06:23:58 2016 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 06:29:59 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a942a364

net-misc/youtube-dl: Version bump.

Package-Manager: portage-2.2.26

 net-misc/youtube-dl/Manifest                     |  1 +
 net-misc/youtube-dl/youtube-dl-2016.01.14.ebuild | 87 ++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
index 3df4c01..b892e02 100644
--- a/net-misc/youtube-dl/Manifest
+++ b/net-misc/youtube-dl/Manifest
@@ -3,3 +3,4 @@ DIST youtube-dl-2015.12.23.tar.gz 1850244 SHA256 
fe7088979c78eb900c3db110a577866
 DIST youtube-dl-2015.12.29.tar.gz 1863530 SHA256 
4ff67c9cb65f36f0409dc2f35953fe1b66164512c06d46ebb345cb8a70e46208 SHA512 
15bef247acca28f29c798bda8413155c8985e0f2ffc8be35ec539de95710747c2c6af4304286eebb21cb0d6932d4d0d51f5a0e581d479d9fec5dc930e01b7e6e
 WHIRLPOOL 
2596183f3e3897790964703c2585299d094aa63f9be112549123e56ff9f0c4b2651749b9dd80f066e01d942cd0b884ce7717a3849d67c2d99d6234cb9034c957
 DIST youtube-dl-2016.01.01.tar.gz 1874602 SHA256 
732f37c99d71b4239d72d61dd32214b5a5a618671fb0629c8f8deb28209a172c SHA512 
fdb022bed426250e5ee1c2bcc1354dd195c0f9793ca479ca8ca4cfe2f71e07ba100b0dbcda2fb9f310308ab130587d06b16a6a86f9036f0d196b317d2e5b5e92
 WHIRLPOOL 
152e709ba15264c35a89644ea0d4793bb47c82b317e54043ccfff72e40bdf95e42d76605e801233632d3863537a945cfb9ecc2f75245171b8de31b51ce6af801
 DIST youtube-dl-2016.01.09.tar.gz 1888095 SHA256 
463cfed59a1e2c6609a8e3d3354e0494833f1b249fe1979984b06a51ac5c904d SHA512 
bc022939ec2cdd574ca5ecedbfb349d516881996b50aac6a96220d94c358a38ff4ec8f8bd50195e2a6087dee558149e820935c60eaff8bb521bc8828413d44bf
 WHIRLPOOL 
a9fcffa926a72d6558b583390f1023568ee8c97695a87e15add7d72b7bd556c23056948df2bfb55902d7f2cbc3206c69844bee8b5e8ea1e3d7786b58806108f6
+DIST youtube-dl-2016.01.14.tar.gz 1891877 SHA256 
8fb4829219c591d0b9a94ebc7bda933db33d4b04d9875a8d725affdbc28e5aad SHA512 
2c75fb70472daa7ee83c3a5c25af3c0a9a8928cc5c0517f4b566164495aece3274af5003f21fd861f543b32659ea507c8bf96319c6451a9ba9f16320433f4b5d
 WHIRLPOOL 
74bb7949baff66a87729ec60b9c33451581325bd1e412d8d48bf7fa3fa095873849a3efe5c36ccc15e92a89ebfbe2ae50ddf140f900372bca87abe53213f60c3

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

Reply via email to