1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/youtube-dl-2013.06.34.ebuild,v 1.1 2013/06/27 13:26:34 jer Exp $ |
4 |
|
5 |
EAPI=5 |
6 |
PYTHON_COMPAT=(python{2_5,2_6,2_7}) |
7 |
|
8 |
inherit bash-completion-r1 eutils python-single-r1 |
9 |
|
10 |
DESCRIPTION="Download videos from YouTube.com (and mores sites...)" |
11 |
HOMEPAGE="http://rg3.github.com/youtube-dl/" |
12 |
SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz" |
13 |
|
14 |
LICENSE="public-domain" |
15 |
SLOT="0" |
16 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
17 |
IUSE="offensive test" |
18 |
|
19 |
DEPEND="test? ( dev-python/nose[coverage(+)] )" |
20 |
|
21 |
S="${WORKDIR}/${PN}" |
22 |
|
23 |
src_prepare() { |
24 |
if use test; then |
25 |
use offensive || epatch "${FILESDIR}"/${PN}-2013.06.21-offensive.patch |
26 |
fi |
27 |
} |
28 |
|
29 |
src_install() { |
30 |
rm -vf youtube_dl/*.py[co] |
31 |
python_domodule youtube_dl |
32 |
dobin bin/${PN} |
33 |
dodoc CHANGELOG README.txt |
34 |
doman ${PN}.1 |
35 |
newbashcomp ${PN}.bash-completion ${PN} |
36 |
python_fix_shebang "${ED}" |
37 |
} |