media-video/syncplay - 1.7.1 (luke-jr)

Search

Install

Install this version:

emerge -a =media-video/syncplay-1.7.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-video/syncplay-1.7.1

Or alternatively:

emerge --autounmask-write -a =media-video/syncplay-1.7.1

Package Information

Description:
Client/server to synchronize media playback
Homepage:
https://github.com/Syncplay/syncplay https://syncplay.pl
License:
Apache-2.0 CC-BY-2.5 CC-BY-3.0 MIT

Ebuild Details

Version EAPI Keywords Slot
1.7.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1

inherit desktop distutils-r1 optfeature xdg

DESCRIPTION="Client/server to synchronize media playback"
HOMEPAGE="https://github.com/Syncplay/syncplay https://syncplay.pl"
SRC_URI="https://github.com/${PN^}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0 CC-BY-2.5 CC-BY-3.0 MIT"
SLOT="0"
KEYWORDS="~amd64"

IUSE="+client server +gui +ssl"
REQUIRED_USE="|| ( client server )"

RDEPEND="
	$( python_gen_cond_dep \
		'>=dev-python/twisted-16.4.0[${PYTHON_USEDEP},ssl]'
	)
	client? (
		gui? (
			$( python_gen_cond_dep \
				'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside2]' \
				python3_{10,11}
			)
			$( python_gen_cond_dep \
				'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside6]' \
				python3_12
			)
		)
		ssl? (
			$( python_gen_cond_dep \
				'>=dev-python/certifi-2018.11.29[${PYTHON_USEDEP}]
				>=dev-python/pem-21.2.0[${PYTHON_USEDEP}]'
			)
		)
		|| (
			media-video/vlc[lua]
			media-video/mpv[lua]
			media-video/mplayer
		)
	)
"

python_install() {
	python_domodule syncplay

	if use gui; then
		for size in 256 128 96 64 48 32 24 16; do
			doicon -s ${size} "${PN}/resources/hicolor/${size}x${size}/apps/syncplay.png"
		done
	fi
	if use client; then
		python_newscript syncplayClient.py syncplay
		if use gui; then
			domenu syncplay/resources/syncplay.desktop
		fi
	fi
	if use server; then
		if use gui; then
			domenu syncplay/resources/syncplay-server.desktop
		fi
		python_newscript syncplayServer.py syncplay-server
		newinitd "${FILESDIR}/${PN}-server-init" "${PN}"
		newconfd "${FILESDIR}/${PN}-server-init-conf" "${PN}"
	fi
}

pkg_postinst() {
	xdg_pkg_postinst

	if use client; then
		optfeature_header "Syncplay is compatible with the following players, install:"
		optfeature "VLC support" media-video/vlc[lua]
		optfeature "MPV support" media-video/mpv[lua]
		optfeature "MPlayer support" media-video/mplayer
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-video/syncplay | euse -E <flag> -p media-video/syncplay | euse -D <flag> -p media-video/syncplay

Global/Standard Flags

client
Default: Enabled (+)
gui
Default: Enabled (+)
ssl
Default: Enabled (+)

Inherited Eclasses

xdg

Dependencies

RDEPEND

	$( python_gen_cond_dep \
		'>=dev-python/twisted-16.4.0[${PYTHON_USEDEP},ssl]'
	)
	client? (
		gui? (
			$( python_gen_cond_dep \
				'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside2]' \
				python3_{10,11}
			)
			$( python_gen_cond_dep \
				'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside6]' \
				python3_12
			)
		)
		ssl? (
			$( python_gen_cond_dep \
				'>=dev-python/certifi-2018.11.29[${PYTHON_USEDEP}]
				>=dev-python/pem-21.2.0[${PYTHON_USEDEP}]'
			)
		)
		|| (
			media-video/vlc[lua]
			media-video/mpv[lua]
			media-video/mplayer
		)
	)

Manifest for 1.7.1

Type File Size Source URLs
DIST syncplay-1.7.1.tar.gz 1983931 bytes https://github.com/Syncplay/syncplay/archive/v1.7.1.tar.gz