blob: e6aa73578b711225fcf67216ef89bd24ce4d0f2d (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JWC_VERSION=10.8.1
PYTHON_COMPAT=( python3_{8..11} )
inherit cmake python-any-r1
DESCRIPTION="Jellyfin Desktop Client based on Plex Media Player"
HOMEPAGE="https://github.com/jellyfin/jellyfin-media-player"
SRC_URI="
https://github.com/jellyfin/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"
# GPL-2.0 for JMP itself
# licenses for code in external/:
# MIT for qhttp
# BSD for qslog
LICENSE="
GPL-2
BSD
MIT
"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus"
DEPEND="
dev-libs/libcec
dev-qt/qtcore:5
dev-qt/qtdeclarative:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtquickcontrols:5
dev-qt/qtwebchannel:5
dev-qt/qtwebengine:5
dev-qt/qtwidgets:5
dev-qt/qtwidgets:5
dev-qt/qtx11extras:5
dev-qt/qtxml:5
media-libs/libsdl2
media-video/mpv:=[libmpv]
sys-libs/zlib
virtual/opengl
x11-libs/libX11
x11-libs/libXrandr
dbus? ( dev-qt/qtdbus:5 )
"
BDEPEND="
${PYTHON_DEPS}
virtual/pkgconfig
"
# x11-misc/xdg-utils is used for xdg-screensaver, which is used to inhibit
# screen locking
RDEPEND="
${DEPEND}
~media-video/jellyfin-web-jmp-bin-${JWC_VERSION}
!dbus? ( x11-misc/xdg-utils )
"
src_prepare() {
# disable jmp installing jwc in it's build system
sed -i '/..\/dist\//d' src/CMakeLists.txt || die 'sed failed'
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DOpenGL_GL_PREFERENCE=GLVND
# PMP, at least prior to the fork into JMP, used to download codecs,
# for safe measure, disable that.
-DENABLE_CODECS=OFF
# LINUX_X11POWER instructs JMP to use xdg-screensaver instead of dbus
# for inhibiting screen saving.
-DLINUX_X11POWER="$(usex dbus OFF ON)"
)
cmake_src_configure
}
|