blob: a8d436dc28d6765c3a2dcff43d335655868884e3 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..8} )
PYTHON_REQ_USE="tk"
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
WEB_PV="1.6.2"
DESCRIPTION="MPV-based desktop and cast client for Jellyfin (Unofficial)"
HOMEPAGE="https://github.com/iwalton3/jellyfin-mpv-shim"
SRC_URI="
https://github.com/iwalton3/jellyfin-mpv-shim/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/iwalton3/jellyfin-web/releases/download/jwc${WEB_PV}-1/dist.zip -> jellyfin-web-${WEB_PV}.zip
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
app-arch/unzip
$(python_gen_cond_dep '
dev-python/python-mpv[${PYTHON_USEDEP}]
dev-python/jellyfin-apiclient-python[${PYTHON_USEDEP}]
dev-python/python-mpv-jsonipc[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
')
"
RDEPEND="
${DEPEND}
dev-libs/libappindicator:3=
$(python_gen_cond_dep '
dev-python/flask[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pystray[${PYTHON_USEDEP}]
>=dev-python/pywebview-3.3.1[${PYTHON_USEDEP}]
dev-python/werkzeug[${PYTHON_USEDEP}]
')
"
src_install() {
distutils-r1_src_install
insinto "/usr/$(get_libdir)/${PN}/jellyfin-web"
doins -r "${WORKDIR}"/dist/*
dosym "/usr/$(get_libdir)/jellyfin-mpv-shim/jellyfin-web" "$(python_get_sitedir)/${PN//-/_}/webclient_view/webclient"
}
|