commit:     babeb520fedd5408e89b639dd2f4c6f27d729076
Author:     Mykyta Holubakha <hilobakho <AT> gmail <DOT> com>
AuthorDate: Sun Nov 19 23:30:33 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 23:07:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=babeb520

media-video/syncplay: version bump to 1.5.0.

Closes: https://github.com/gentoo/gentoo/pull/6243

 media-video/syncplay/Manifest              |  1 +
 media-video/syncplay/syncplay-1.5.0.ebuild | 61 ++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/media-video/syncplay/Manifest b/media-video/syncplay/Manifest
index 8111250cb43..44e06c00810 100644
--- a/media-video/syncplay/Manifest
+++ b/media-video/syncplay/Manifest
@@ -1 +1,2 @@
 DIST syncplay-1.4.0.tar.gz 539743 SHA256 
37fc2b3d1d6d49e2289dcdeffcf24ebdafbc24398411cff4666e09d49405759d SHA512 
2266ffafe3b15730a43e3ddd8aa24e99c65ce5a4e95d05bcac745262d310cb846c84c6e5bb061ebb96e89faa0f10e22aacee286db6cbe53cd5f521cb2e5eee1a
 WHIRLPOOL 
68ea8b437c379e2a049efbb9a4258c9d85bdb2d26841ed1100ee7a0083b4e66687bf21826daffd12102acb236b9bede9037f63ead0eba67dbbc5142db309d183
+DIST syncplay-1.5.0.tar.gz 1588514 SHA256 
762e6318588e14aa02b1340baa18510e7de87771c62ca5b44d985b6d1289964d SHA512 
8a57add8a845c041c02147415fc4b7941a41edfb80fc037c3af4e246d9ca6391be9f3886407470b1b51b8783ad6306e42bb34991e7cbb08eea87e781e3cd2200
 WHIRLPOOL 
86e425b27907ef7eda9b801afcb2f1932efbc23dec6745cca75e910097f9eb51d28a907615ef1ea5ea30d8ad454bb33ef647b0d24d8233d20bceb6cea18de86c

diff --git a/media-video/syncplay/syncplay-1.5.0.ebuild 
b/media-video/syncplay/syncplay-1.5.0.ebuild
new file mode 100644
index 00000000000..ae5ec478536
--- /dev/null
+++ b/media-video/syncplay/syncplay-1.5.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1
+
+MY_PV=${PV/_rc/-RC}
+
+DESCRIPTION="Client/server to synchronize media playback"
+HOMEPAGE="http://syncplay.pl";
+SRC_URI="https://github.com/Syncplay/syncplay/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE="+client +server gui vlc"
+REQUIRED_USE="vlc? ( client )
+       gui? ( client )
+       ${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}
+       || (
+               >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+               dev-python/twisted-core[${PYTHON_USEDEP}]
+       )
+       gui? ( dev-python/pyside[${PYTHON_USEDEP}] )
+       vlc? ( media-video/vlc[lua] )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+       default
+       if ! use gui; 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[@]}" VLC_SUPPORT=$(usex vlc true false) 
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
+}

Reply via email to