summaryrefslogtreecommitdiff
blob: 3b940f27a26d6a8ee33c33cfedbd91f9eaccc51f (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
PYTHON_COMPAT=( python3_{5,6} )

inherit distutils-r1

DESCRIPTION="A simple command-line lyrics viewer"
HOMEPAGE="http://ok100.github.io/lyvi/"
SRC_URI="https://github.com/ok100/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="WTFPL-2"
KEYWORDS="amd64"
SLOT="0"
IUSE="mpris"

RDEPEND="
	dev-python/pillow[${PYTHON_USEDEP}]
	dev-python/plyr[${PYTHON_USEDEP}]
	dev-python/psutil[${PYTHON_USEDEP}]
	dev-python/urwid[${PYTHON_USEDEP}]
	mpris? (
		dev-python/dbus-python[${PYTHON_USEDEP}]
		dev-python/pygobject:3[${PYTHON_USEDEP}]
	)
"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"

python_prepare_all() {
	# Remove pip dependency
	sed -e '/require/d' --in-place setup.py || die
	distutils-r1_python_prepare_all
}