Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/syncplay/
Date: Wed, 22 Nov 2017 23:07:12
Message-Id: 1511392023.babeb520fedd5408e89b639dd2f4c6f27d729076.monsieurp@gentoo
1 commit: babeb520fedd5408e89b639dd2f4c6f27d729076
2 Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 19 23:30:33 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 22 23:07:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=babeb520
7
8 media-video/syncplay: version bump to 1.5.0.
9
10 Closes: https://github.com/gentoo/gentoo/pull/6243
11
12 media-video/syncplay/Manifest | 1 +
13 media-video/syncplay/syncplay-1.5.0.ebuild | 61 ++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/media-video/syncplay/Manifest b/media-video/syncplay/Manifest
17 index 8111250cb43..44e06c00810 100644
18 --- a/media-video/syncplay/Manifest
19 +++ b/media-video/syncplay/Manifest
20 @@ -1 +1,2 @@
21 DIST syncplay-1.4.0.tar.gz 539743 SHA256 37fc2b3d1d6d49e2289dcdeffcf24ebdafbc24398411cff4666e09d49405759d SHA512 2266ffafe3b15730a43e3ddd8aa24e99c65ce5a4e95d05bcac745262d310cb846c84c6e5bb061ebb96e89faa0f10e22aacee286db6cbe53cd5f521cb2e5eee1a WHIRLPOOL 68ea8b437c379e2a049efbb9a4258c9d85bdb2d26841ed1100ee7a0083b4e66687bf21826daffd12102acb236b9bede9037f63ead0eba67dbbc5142db309d183
22 +DIST syncplay-1.5.0.tar.gz 1588514 SHA256 762e6318588e14aa02b1340baa18510e7de87771c62ca5b44d985b6d1289964d SHA512 8a57add8a845c041c02147415fc4b7941a41edfb80fc037c3af4e246d9ca6391be9f3886407470b1b51b8783ad6306e42bb34991e7cbb08eea87e781e3cd2200 WHIRLPOOL 86e425b27907ef7eda9b801afcb2f1932efbc23dec6745cca75e910097f9eb51d28a907615ef1ea5ea30d8ad454bb33ef647b0d24d8233d20bceb6cea18de86c
23
24 diff --git a/media-video/syncplay/syncplay-1.5.0.ebuild b/media-video/syncplay/syncplay-1.5.0.ebuild
25 new file mode 100644
26 index 00000000000..ae5ec478536
27 --- /dev/null
28 +++ b/media-video/syncplay/syncplay-1.5.0.ebuild
29 @@ -0,0 +1,61 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 )
36 +
37 +inherit python-r1
38 +
39 +MY_PV=${PV/_rc/-RC}
40 +
41 +DESCRIPTION="Client/server to synchronize media playback"
42 +HOMEPAGE="http://syncplay.pl"
43 +SRC_URI="https://github.com/Syncplay/syncplay/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 x86"
48 +IUSE="+client +server gui vlc"
49 +REQUIRED_USE="vlc? ( client )
50 + gui? ( client )
51 + ${PYTHON_REQUIRED_USE}"
52 +
53 +DEPEND=""
54 +RDEPEND="${PYTHON_DEPS}
55 + || (
56 + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
57 + dev-python/twisted-core[${PYTHON_USEDEP}]
58 + )
59 + gui? ( dev-python/pyside[${PYTHON_USEDEP}] )
60 + vlc? ( media-video/vlc[lua] )"
61 +
62 +S="${WORKDIR}/${PN}-${MY_PV}"
63 +
64 +src_prepare() {
65 + default
66 + if ! use gui; then
67 + sed -i 's/"noGui": False,/"noGui": True,/' \
68 + syncplay/ui/ConfigurationGetter.py \
69 + || die "Failed to patch ConfigurationGetter.py"
70 + fi
71 +}
72 +
73 +src_compile() {
74 + :
75 +}
76 +
77 +src_install() {
78 + local MY_MAKEOPTS=( DESTDIR="${D}" PREFIX=/usr )
79 + use client && \
80 + emake "${MY_MAKEOPTS[@]}" VLC_SUPPORT=$(usex vlc true false) install-client
81 + use server && \
82 + emake "${MY_MAKEOPTS[@]}" install-server
83 +}
84 +
85 +pkg_postinst() {
86 + if use client; then
87 + einfo "Syncplay supports the following players:"
88 + einfo "media-video/mpv, media-video/mplayer2, media-video/vlc"
89 + fi
90 +}