new: syncplay/syncplay-1.6.5 syncplay/syncplay-9999

master
Ange 4 years ago
parent 0a0181c444
commit 88f1b27b90

@ -0,0 +1 @@
DIST syncplay-1.6.5.tar.gz 1849668 BLAKE2B ec0d9037b68adbedac3ae107fc2b7650cfa20f5361d256f839a54dfd3fd73d3ae76c01f4e0b703efcb2c1cac39364208d3bed5ec341e38f1ab3036d91c53bad8 SHA512 c3dba4211e7b57a84cc967a8d2c4827e814287dde866bfd9830d8b3c07af472f1532d0dae35e393fce39b35f586d0765de2c23fc473c41ae277a079f6f3a6db0

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="github">Syncplay/syncplay</remote-id>
</upstream>
<use>
<flag name="client">Install Syncplay client</flag>
<flag name="server">Install Syncplay server</flag>
</use>
</pkgmetadata>

@ -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
}

@ -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
}
Loading…
Cancel
Save