1 |
commit: 1d5d25a78eb1981658d579de21f8569a4da58210 |
2 |
Author: soredake <fdsfgs <AT> krutt <DOT> org> |
3 |
AuthorDate: Sun May 28 17:48:11 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 30 21:25:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d5d25a7 |
7 |
|
8 |
media-video/syncplay: add live version. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/4787 |
11 |
|
12 |
media-video/syncplay/syncplay-9999.ebuild | 60 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 60 insertions(+) |
14 |
|
15 |
diff --git a/media-video/syncplay/syncplay-9999.ebuild b/media-video/syncplay/syncplay-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..eec07d40d08 |
18 |
--- /dev/null |
19 |
+++ b/media-video/syncplay/syncplay-9999.ebuild |
20 |
@@ -0,0 +1,60 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 ) |
27 |
+ |
28 |
+inherit git-r3 python-r1 |
29 |
+ |
30 |
+MY_PV=${PV/_rc/-RC} |
31 |
+ |
32 |
+DESCRIPTION="Client/server to synchronize media playback" |
33 |
+HOMEPAGE="http://syncplay.pl" |
34 |
+EGIT_REPO_URI="https://github.com/Syncplay/${PN}.git" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+IUSE="+client +server gui vlc" |
39 |
+REQUIRED_USE="vlc? ( client ) |
40 |
+ gui? ( client ) |
41 |
+ ${PYTHON_REQUIRED_USE}" |
42 |
+ |
43 |
+DEPEND="" |
44 |
+RDEPEND="${PYTHON_DEPS} |
45 |
+ || ( |
46 |
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] |
47 |
+ dev-python/twisted-core[${PYTHON_USEDEP}] |
48 |
+ ) |
49 |
+ gui? ( dev-python/pyside[${PYTHON_USEDEP}] ) |
50 |
+ vlc? ( media-video/vlc[lua] )" |
51 |
+ |
52 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ if ! use gui; then |
57 |
+ sed -i 's/"noGui": False,/"noGui": True,/' \ |
58 |
+ syncplay/ui/ConfigurationGetter.py \ |
59 |
+ || die "Failed to patch ConfigurationGetter.py" |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ : |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ local MY_MAKEOPTS=( DESTDIR="${D}" PREFIX=/usr ) |
69 |
+ use client && \ |
70 |
+ emake "${MY_MAKEOPTS[@]}" VLC_SUPPORT=$(usex vlc true false) install-client |
71 |
+ use server && \ |
72 |
+ emake "${MY_MAKEOPTS[@]}" install-server |
73 |
+} |
74 |
+ |
75 |
+pkg_postinst() { |
76 |
+ if use client; then |
77 |
+ einfo "Syncplay supports the following players:" |
78 |
+ einfo "media-video/mpv, media-video/mplayer2, media-video/vlc" |
79 |
+ fi |
80 |
+} |