From 88f1b27b903448dc55a5b65cde80ca3c2ac4f2f2 Mon Sep 17 00:00:00 2001 From: Ange Date: Fri, 9 Oct 2020 20:29:21 +0000 Subject: [PATCH] new: syncplay/syncplay-1.6.5 syncplay/syncplay-9999 --- media-video/syncplay/Manifest | 1 + media-video/syncplay/metadata.xml | 12 ++++ media-video/syncplay/syncplay-1.6.5.ebuild | 67 ++++++++++++++++++++++ media-video/syncplay/syncplay-9999.ebuild | 67 ++++++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 media-video/syncplay/Manifest create mode 100644 media-video/syncplay/metadata.xml create mode 100644 media-video/syncplay/syncplay-1.6.5.ebuild create mode 100644 media-video/syncplay/syncplay-9999.ebuild diff --git a/media-video/syncplay/Manifest b/media-video/syncplay/Manifest new file mode 100644 index 0000000..2a6da87 --- /dev/null +++ b/media-video/syncplay/Manifest @@ -0,0 +1 @@ +DIST syncplay-1.6.5.tar.gz 1849668 BLAKE2B ec0d9037b68adbedac3ae107fc2b7650cfa20f5361d256f839a54dfd3fd73d3ae76c01f4e0b703efcb2c1cac39364208d3bed5ec341e38f1ab3036d91c53bad8 SHA512 c3dba4211e7b57a84cc967a8d2c4827e814287dde866bfd9830d8b3c07af472f1532d0dae35e393fce39b35f586d0765de2c23fc473c41ae277a079f6f3a6db0 diff --git a/media-video/syncplay/metadata.xml b/media-video/syncplay/metadata.xml new file mode 100644 index 0000000..3daeb70 --- /dev/null +++ b/media-video/syncplay/metadata.xml @@ -0,0 +1,12 @@ + + + + + + Syncplay/syncplay + + + Install Syncplay client + Install Syncplay server + + diff --git a/media-video/syncplay/syncplay-1.6.5.ebuild b/media-video/syncplay/syncplay-1.6.5.ebuild new file mode 100644 index 0000000..fad6627 --- /dev/null +++ b/media-video/syncplay/syncplay-1.6.5.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://github.com/Syncplay/${PN}.git" + inherit git-r3 + MY_PV=${PV/_rc/-RC} + S="${WORKDIR}/${PN}-${MY_PV}" +else + SRC_URI="https://github.com/Syncplay/syncplay/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" +fi + +inherit python-single-r1 + +DESCRIPTION="Client/server to synchronize media playback" +HOMEPAGE="https://syncplay.pl" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+client qt5 +server ssl" +REQUIRED_USE="qt5? ( client ) + ${PYTHON_REQUIRED_USE}" + +DEPEND="" +# TODO: investigate the possibility of enabling PyQt5 gui +# possible licensing concerns +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep '|| ( + >=dev-python/twisted-16.4.0[${PYTHON_MULTI_USEDEP}] + dev-python/twisted-core[${PYTHON_MULTI_USEDEP}] + dev-python/certifi[${PYTHON_MULTI_USEDEP}] + ) + qt5? ( dev-python/pyside2[${PYTHON_SINGLE_USEDEP}] ) + ssl? ( >=dev-python/twisted-16.4.0[${PYTHON_MULTI_USEDEP},crypt] )')" + +src_prepare() { + default + if ! use qt5 ; then + sed -i 's/"noGui": False,/"noGui": True,/' \ + syncplay/ui/ConfigurationGetter.py \ + || die "Failed to patch ConfigurationGetter.py" + fi +} + +src_compile() { + : +} + +src_install() { + local MY_MAKEOPTS=( DESTDIR="${D}" PREFIX=/usr ) + use client && \ + emake "${MY_MAKEOPTS[@]}" install-client + use server && \ + emake "${MY_MAKEOPTS[@]}" install-server +} + +pkg_postinst() { + if use client; then + einfo "Syncplay supports the following players:" + einfo "media-video/mpv, media-video/mplayer2, media-video/vlc" + fi +} diff --git a/media-video/syncplay/syncplay-9999.ebuild b/media-video/syncplay/syncplay-9999.ebuild new file mode 100644 index 0000000..fad6627 --- /dev/null +++ b/media-video/syncplay/syncplay-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://github.com/Syncplay/${PN}.git" + inherit git-r3 + MY_PV=${PV/_rc/-RC} + S="${WORKDIR}/${PN}-${MY_PV}" +else + SRC_URI="https://github.com/Syncplay/syncplay/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" +fi + +inherit python-single-r1 + +DESCRIPTION="Client/server to synchronize media playback" +HOMEPAGE="https://syncplay.pl" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+client qt5 +server ssl" +REQUIRED_USE="qt5? ( client ) + ${PYTHON_REQUIRED_USE}" + +DEPEND="" +# TODO: investigate the possibility of enabling PyQt5 gui +# possible licensing concerns +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep '|| ( + >=dev-python/twisted-16.4.0[${PYTHON_MULTI_USEDEP}] + dev-python/twisted-core[${PYTHON_MULTI_USEDEP}] + dev-python/certifi[${PYTHON_MULTI_USEDEP}] + ) + qt5? ( dev-python/pyside2[${PYTHON_SINGLE_USEDEP}] ) + ssl? ( >=dev-python/twisted-16.4.0[${PYTHON_MULTI_USEDEP},crypt] )')" + +src_prepare() { + default + if ! use qt5 ; then + sed -i 's/"noGui": False,/"noGui": True,/' \ + syncplay/ui/ConfigurationGetter.py \ + || die "Failed to patch ConfigurationGetter.py" + fi +} + +src_compile() { + : +} + +src_install() { + local MY_MAKEOPTS=( DESTDIR="${D}" PREFIX=/usr ) + use client && \ + emake "${MY_MAKEOPTS[@]}" install-client + use server && \ + emake "${MY_MAKEOPTS[@]}" install-server +} + +pkg_postinst() { + if use client; then + einfo "Syncplay supports the following players:" + einfo "media-video/mpv, media-video/mplayer2, media-video/vlc" + fi +}