1 |
commit: bfe7fabcc821ed198e423f557c938e10c0a375fc |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Thu Apr 30 13:41:26 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Apr 30 13:41:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bfe7fabc |
7 |
|
8 |
media-video/syncplay: Client/server to synchronize media playback |
9 |
|
10 |
need dev-python/pyside2 for the gui, but should also |
11 |
provide full functionality without the gui |
12 |
|
13 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
14 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
15 |
|
16 |
media-video/syncplay/Manifest | 1 + |
17 |
media-video/syncplay/metadata.xml | 15 ++++++++ |
18 |
media-video/syncplay/syncplay-1.6.4_p1.ebuild | 54 +++++++++++++++++++++++++++ |
19 |
3 files changed, 70 insertions(+) |
20 |
|
21 |
diff --git a/media-video/syncplay/Manifest b/media-video/syncplay/Manifest |
22 |
new file mode 100644 |
23 |
index 0000000..77f72fd |
24 |
--- /dev/null |
25 |
+++ b/media-video/syncplay/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST syncplay-1.6.4_p1.tar.gz 1791803 BLAKE2B ac309c224ad61c94712f18b3cc7216b9a2fe431251feb2d26b1db3d728bd97b89e6aa362b7b64992152b41a25ac107428f910c24ec0ba88e7c6f042ae1628c07 SHA512 7cf41088462b3140836ba5c2d0376fcae78263255280dfb63575ab8015f21953c78c01d0a2e22c5c09902679cb8ae2f1fdbb5d9fbe4150c5ed8d3d4b8edb49e0 |
28 |
|
29 |
diff --git a/media-video/syncplay/metadata.xml b/media-video/syncplay/metadata.xml |
30 |
new file mode 100644 |
31 |
index 0000000..0bac473 |
32 |
--- /dev/null |
33 |
+++ b/media-video/syncplay/metadata.xml |
34 |
@@ -0,0 +1,15 @@ |
35 |
+<?xml version="1.0" encoding="UTF-8"?> |
36 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
37 |
+ |
38 |
+<pkgmetadata> |
39 |
+ <maintainer type="person"> |
40 |
+ <email>andrewammerlaan@××××××.net</email> |
41 |
+ <name>Andrew Ammerlaan</name> |
42 |
+ </maintainer> |
43 |
+ <use> |
44 |
+ <flag name="client">Install the Syncplay client</flag> |
45 |
+ <flag name="server">Install the Syncplay server</flag> |
46 |
+ <flag name="vlc">Pull in VLC with the lua flag</flag> |
47 |
+ <flag name="mpv">Pull in MPV with the lua flag</flag> |
48 |
+ </use> |
49 |
+</pkgmetadata> |
50 |
|
51 |
diff --git a/media-video/syncplay/syncplay-1.6.4_p1.ebuild b/media-video/syncplay/syncplay-1.6.4_p1.ebuild |
52 |
new file mode 100644 |
53 |
index 0000000..773ee01 |
54 |
--- /dev/null |
55 |
+++ b/media-video/syncplay/syncplay-1.6.4_p1.ebuild |
56 |
@@ -0,0 +1,54 @@ |
57 |
+# Copyright 1999-2020 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+PYTHON_COMPAT=( python3_{6,7} ) |
63 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
64 |
+ |
65 |
+inherit distutils-r1 eutils xdg |
66 |
+ |
67 |
+MYPV="${PV/_p1/a}" |
68 |
+ |
69 |
+DESCRIPTION="Client/server to synchronize media playback" |
70 |
+HOMEPAGE="https://github.com/Syncplay/syncplay https://syncplay.pl" |
71 |
+SRC_URI="https://github.com/${PN^}/${PN}/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="Apache-2.0" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+ |
77 |
+IUSE="+client +server vlc mpv" |
78 |
+REQUIRED_USE="vlc? ( client ) mpv? ( client )" |
79 |
+ |
80 |
+RDEPEND=" |
81 |
+ dev-python/certifi[${PYTHON_USEDEP}] |
82 |
+ dev-python/twisted[${PYTHON_USEDEP}] |
83 |
+ vlc? ( media-video/vlc[lua] ) |
84 |
+ mpv? ( media-video/mpv[lua] ) |
85 |
+" |
86 |
+ |
87 |
+# RDEPEND on PySide2 for gui, but not packaged here at the moment |
88 |
+# It is a too big and complex package for me to maintain |
89 |
+# You can find PySide2 in the ::raiagent overlay |
90 |
+ |
91 |
+S="${WORKDIR}/${PN}-${MYPV}" |
92 |
+ |
93 |
+python_install() { |
94 |
+ local MY_MAKEOPTS=( DESTDIR="${D}" PREFIX=/usr ) |
95 |
+ use client && \ |
96 |
+ emake "${MY_MAKEOPTS[@]}" install-client |
97 |
+ use server && \ |
98 |
+ emake "${MY_MAKEOPTS[@]}" install-server |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ xdg_pkg_postinst |
103 |
+ |
104 |
+ optfeature "using the GUI (you can find it in the raiagent overlay)\n" dev-python/pyside2 |
105 |
+ |
106 |
+ if use client; then |
107 |
+ elog "Syncplay supports the following players:" |
108 |
+ elog "media-video/mpv, media-video/mplayer2, media-video/vlc" |
109 |
+ fi |
110 |
+} |