summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-05-13 12:53:26 +0200
committerJeroen Roovers <jer@gentoo.org>2016-05-13 15:51:00 +0200
commit6a07c2c95b88f78a4bb605d2502a848d0bc1f8aa (patch)
treedddf004404b8cf3144ac069d9cf8e8d5818c8686 /net-misc
parentdev-util/electron: Drop gtk3 USE flag (#582698) (diff)
downloadgentoo-6a07c2c95b88f78a4bb605d2502a848d0bc1f8aa.tar.gz
gentoo-6a07c2c95b88f78a4bb605d2502a848d0bc1f8aa.tar.bz2
gentoo-6a07c2c95b88f78a4bb605d2502a848d0bc1f8aa.zip
net-misc/youtube-dl: Version bump.
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/youtube-dl/Manifest1
-rw-r--r--net-misc/youtube-dl/youtube-dl-2016.05.10.ebuild96
2 files changed, 97 insertions, 0 deletions
diff --git a/net-misc/youtube-dl/Manifest b/net-misc/youtube-dl/Manifest
index 395722fbed7b..a4550a0d4389 100644
--- a/net-misc/youtube-dl/Manifest
+++ b/net-misc/youtube-dl/Manifest
@@ -2,3 +2,4 @@ DIST youtube-dl-2016.01.01.tar.gz 1874602 SHA256 732f37c99d71b4239d72d61dd32214b
DIST youtube-dl-2016.04.19.tar.gz 2075147 SHA256 09ba62900703a1439659a5394d802c7b03fd3a7b35d604e94a256ae9ccd1b6a0 SHA512 96a5e8ed081355d6a4682355004b26c62385f89091a39ebaadd3cd4b655872db0e196dea44377e98d882d98581f6d5983aa3e7522d1292c4e57b86bcc252aa2b WHIRLPOOL ba8938c6fd34e4a7a32ccb16240ac1d48c2266cad46b2a79d02a2759c1a03d2bc2f2429e02674d6cf97fade60f44fdc9423d45c906eff9b64434977734ee081a
DIST youtube-dl-2016.04.24.tar.gz 2084276 SHA256 9ca83ae9cf783b3d9a231611ef5e446fa61fa77d0f4c9d0545895e6ce691321f SHA512 b30b01eb9100a30ce792283e1598f5f2058a56a90d1a1f0359efb79ca2d360dff4f525a3b906d777d4e09e046e3e21ed0342b29bf90c42be6321fc77a303ee42 WHIRLPOOL d875ece17393b7a413718bad1010ac6934f7f853a38d66af96b165399473f60280dfda7b1173b16fa8db7f7ba5816b9ee67e55438b8191d944b2dc28c5d5e506
DIST youtube-dl-2016.05.01.tar.gz 2097882 SHA256 adc812e840f8f2461d6b7e72876c9219bfc8004e650a6ac7ddf216ccab5304f0 SHA512 c94c0bb222ca6e866646fef201b53cdf9a6d5a89921f34ef3d557822fe9398268251f9221ac2b5e11b7580d7b566b7795a7d8b7945672f3bc07ef8f11de18969 WHIRLPOOL 641dc9f582fed6ccc9a973e7cfab37540a0ea3483ef7ecc0f057ee9e2f08e1a57eaf2ee4030b2fc501ecf15da731cb7a58a7ecda75f2b999c9cb7cecb8ea8cd0
+DIST youtube-dl-2016.05.10.tar.gz 2125075 SHA256 ccb96dd53b7bf7305db0430f8b3a2044fa24f5200903c95349e070f938ad0c3f SHA512 c4976de6ec345325e71798ac4d7d29b3253251b4cf743ff717ba834ace912ae2b9dfb602d31291a2b360255457f37771c5b361fe2a928105ad358558869627fe WHIRLPOOL 9581a78f4d8c76d4a6de161cfbeea449a9e066e2b8831288db6eeaa178f5e0b2e3c085c6fb2ee33e6735124dcd91975c6ad2b006275f2ef88e1719f906259376
diff --git a/net-misc/youtube-dl/youtube-dl-2016.05.10.ebuild b/net-misc/youtube-dl/youtube-dl-2016.05.10.ebuild
new file mode 100644
index 000000000000..5bafd2029fe8
--- /dev/null
+++ b/net-misc/youtube-dl/youtube-dl-2016.05.10.ebuild
@@ -0,0 +1,96 @@
+# 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 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
+}
+
+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}
+
+ insinto /usr/share/zsh/site-functions
+ newins youtube-dl.zsh _youtube-dl
+
+ insinto /usr/share/fish/completions
+ doins youtube-dl.fish
+
+ python_fix_shebang "${ED}"
+}