1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
4 |
|
5 |
EAPI="5" |
6 |
|
7 |
DESCRIPTION="CLI tool that pipes video streams from services like twitch.tv into a video player" |
8 |
HOMEPAGE="https://github.com/chrippa/livestreamer" |
9 |
SRC_URI="https://github.com/chrippa/livestreamer/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
10 |
|
11 |
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
12 |
inherit distutils-r1 |
13 |
|
14 |
KEYWORDS="~amd64 ~mips ~x86" |
15 |
LICENSE="Apache-2.0 BSD-2 MIT-with-advertising" |
16 |
SLOT="0" |
17 |
IUSE="doc test" |
18 |
|
19 |
RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}] |
20 |
>=dev-python/requests-1.0[${PYTHON_USEDEP}] |
21 |
virtual/python-futures[${PYTHON_USEDEP}] |
22 |
virtual/python-singledispatch[${PYTHON_USEDEP}] |
23 |
>media-video/rtmpdump-2.4" |
24 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
25 |
test? ( ${RDEPEND} ) |
26 |
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
27 |
|
28 |
python_compile_all() { |
29 |
use doc && emake -C docs html |
30 |
} |
31 |
|
32 |
python_test() { |
33 |
esetup.py test |
34 |
} |
35 |
|
36 |
python_install_all() { |
37 |
use doc && local HTML_DOCS=( docs/_build/html/. ) |
38 |
distutils-r1_python_install_all |
39 |
} |