summaryrefslogtreecommitdiff
path: root/media-video/jellyfin-media-player
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/jellyfin-media-player')
-rw-r--r--media-video/jellyfin-media-player/Manifest3
-rw-r--r--media-video/jellyfin-media-player/jellyfin-media-player-1.6.1.ebuild83
-rw-r--r--media-video/jellyfin-media-player/metadata.xml16
3 files changed, 102 insertions, 0 deletions
diff --git a/media-video/jellyfin-media-player/Manifest b/media-video/jellyfin-media-player/Manifest
new file mode 100644
index 000000000000..556840fac0c8
--- /dev/null
+++ b/media-video/jellyfin-media-player/Manifest
@@ -0,0 +1,3 @@
+DIST jellyfin-media-player-1.6.1.tar.gz 573443 BLAKE2B d5a4d6b8d3ee2c5651b1d1be32514722e1b300231760d22d9929eb4b3579b723f72e24b403a875186cd8646bbe799db6b7ff7d0641ab592b68205ef71a8c40d6 SHA512 12e22f6a0d0769427aad01a37d18a68f057d0c5fa93ee308c5f7fe2e7a1a27ceea3b05f5cbf232264467e159bcdac18aa5042838ad7888dd008f0fb3a6751081
+EBUILD jellyfin-media-player-1.6.1.ebuild 1713 BLAKE2B ef0056539995539369eb3df0fe0e537f578d2ed1f2b3e60befd52566ceade5d54c8a7d73f4dfff995cce1f1e154bc1951951e32f2261b2912d1a7e50e5ddc3a5 SHA512 7aed4852ef1608b1ffd190da01ade031299d6a536c2c2dc950372bf582ca9d11e4a9684c156efc86a99ec73f65f8f6644b0fb051f02d01044849c205d3b33fef
+MISC metadata.xml 470 BLAKE2B 1e3d4d4957a4f595140019d7c668a25b4092de02db1ebe91974cf74ffb64aeb1c29e628c657018ca1d2629154b8e00cd62e165349f1fdf7c2b0d0270099e8f1f SHA512 e1e5d386488500305f25e531c0d0093097ff35f2567c774dc82e49a9d822310cdba7030eb78d2e0191c8bd2d1825a0ca17e8f76cacfcddeb04cba9c7f85f56a9
diff --git a/media-video/jellyfin-media-player/jellyfin-media-player-1.6.1.ebuild b/media-video/jellyfin-media-player/jellyfin-media-player-1.6.1.ebuild
new file mode 100644
index 000000000000..418d9eddf93e
--- /dev/null
+++ b/media-video/jellyfin-media-player/jellyfin-media-player-1.6.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+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
+ !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
+}
diff --git a/media-video/jellyfin-media-player/metadata.xml b/media-video/jellyfin-media-player/metadata.xml
new file mode 100644
index 000000000000..830b7c1f6baa
--- /dev/null
+++ b/media-video/jellyfin-media-player/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arsen@aarsen.me</email>
+ <name>Arsen Arsenović</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>telans@posteo.de</email>
+ <name>James Beddek</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>