1 |
commit: 19534635c198644ab0d4956d0fc2f63e9607c77d |
2 |
Author: Anna <anna <AT> navirc <DOT> com> |
3 |
AuthorDate: Tue Nov 29 14:00:42 2022 +0000 |
4 |
Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Nov 29 14:06:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=19534635 |
7 |
|
8 |
media-video/syncplay: allow the removal of qt5 gui |
9 |
|
10 |
Author: Anna <anna <AT> navirc.com> |
11 |
Closes: https://bugs.gentoo.org/882565 |
12 |
Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> |
13 |
|
14 |
media-video/syncplay/syncplay-1.6.9.ebuild | 25 +++++++++++++++++-------- |
15 |
1 file changed, 17 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/media-video/syncplay/syncplay-1.6.9.ebuild b/media-video/syncplay/syncplay-1.6.9.ebuild |
18 |
index 889f7ce1b..f6b74ab52 100644 |
19 |
--- a/media-video/syncplay/syncplay-1.6.9.ebuild |
20 |
+++ b/media-video/syncplay/syncplay-1.6.9.ebuild |
21 |
@@ -17,7 +17,7 @@ LICENSE="Apache-2.0" |
22 |
SLOT="0" |
23 |
KEYWORDS="~amd64" |
24 |
|
25 |
-IUSE="+client server" |
26 |
+IUSE="+client server +gui" |
27 |
REQUIRED_USE="|| ( client server )" |
28 |
|
29 |
RDEPEND=" |
30 |
@@ -26,8 +26,10 @@ RDEPEND=" |
31 |
>=dev-python/twisted-16.4.0[${PYTHON_USEDEP},ssl]' |
32 |
) |
33 |
client? ( |
34 |
- $( python_gen_cond_dep \ |
35 |
- 'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside2]' |
36 |
+ gui? ( |
37 |
+ $( python_gen_cond_dep \ |
38 |
+ 'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside2]' |
39 |
+ ) |
40 |
) |
41 |
|| ( |
42 |
media-video/vlc[lua] |
43 |
@@ -39,16 +41,23 @@ RDEPEND=" |
44 |
|
45 |
python_install() { |
46 |
python_domodule syncplay |
47 |
- for size in 256 128 96 64 48 32 24 16; do |
48 |
- doicon -s ${size} "${PN}/resources/hicolor/${size}x${size}/apps/syncplay.png" |
49 |
- done |
50 |
+ |
51 |
+ if use gui; then |
52 |
+ for size in 256 128 96 64 48 32 24 16; do |
53 |
+ doicon -s ${size} "${PN}/resources/hicolor/${size}x${size}/apps/syncplay.png" |
54 |
+ done |
55 |
+ fi |
56 |
if use client; then |
57 |
python_newscript syncplayClient.py syncplay |
58 |
- domenu syncplay/resources/syncplay.desktop |
59 |
+ if use gui; then |
60 |
+ domenu syncplay/resources/syncplay.desktop |
61 |
+ fi |
62 |
fi |
63 |
if use server; then |
64 |
+ if use gui; then |
65 |
+ domenu syncplay/resources/syncplay-server.desktop |
66 |
+ fi |
67 |
python_newscript syncplayServer.py syncplay-server |
68 |
- domenu syncplay/resources/syncplay-server.desktop |
69 |
newinitd "${FILESDIR}/${PN}-server-init" "${PN}" |
70 |
newconfd "${FILESDIR}/${PN}-server-init-conf" "${PN}" |
71 |
fi |