blob: fdbb431b172c3b13fbd71f4d4c10dd9d5c5f49cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/youtube-dl-2012.12.11.ebuild,v 1.1 2012/12/25 11:53:19 nirbheek Exp $
EAPI="5"
PYTHON_COMPAT=(python{2_5,2_6,2_7})
inherit bash-completion-r1 python-single-r1
DESCRIPTION="A small command-line program to download videos from YouTube."
HOMEPAGE="http://rg3.github.com/youtube-dl/"
# We get the tarball from https://github.com/rg3/${PN}/archive/${PV}.tar.gz
# and then delete the windows exe from it to reduce the download size by 98%,
# and generate the man page, README.txt, and the bash-completion file
SRC_URI="mirror://gentoo/${P}.tar.xz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
IUSE="test"
# Note: tests need internet access
DEPEND="test? ( dev-python/nose )"
src_prepare() {
sed -i -e 's/nosetests2/nosetests/' Makefile || die
}
src_install() {
rm -vf youtube_dl/*.py[co]
python_domodule youtube_dl
dobin bin/${PN}
dodoc README.txt
doman ${PN}.1
dobashcomp ${PN}.bash-completion ${PN}
}
|