commit: 19534635c198644ab0d4956d0fc2f63e9607c77d Author: Anna <anna <AT> navirc <DOT> com> AuthorDate: Tue Nov 29 14:00:42 2022 +0000 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> CommitDate: Tue Nov 29 14:06:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=19534635
media-video/syncplay: allow the removal of qt5 gui Author: Anna <anna <AT> navirc.com> Closes: https://bugs.gentoo.org/882565 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> media-video/syncplay/syncplay-1.6.9.ebuild | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/media-video/syncplay/syncplay-1.6.9.ebuild b/media-video/syncplay/syncplay-1.6.9.ebuild index 889f7ce1b..f6b74ab52 100644 --- a/media-video/syncplay/syncplay-1.6.9.ebuild +++ b/media-video/syncplay/syncplay-1.6.9.ebuild @@ -17,7 +17,7 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -IUSE="+client server" +IUSE="+client server +gui" REQUIRED_USE="|| ( client server )" RDEPEND=" @@ -26,8 +26,10 @@ RDEPEND=" >=dev-python/twisted-16.4.0[${PYTHON_USEDEP},ssl]' ) client? ( - $( python_gen_cond_dep \ - 'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside2]' + gui? ( + $( python_gen_cond_dep \ + 'dev-python/QtPy[${PYTHON_USEDEP},gui,pyside2]' + ) ) || ( media-video/vlc[lua] @@ -39,16 +41,23 @@ RDEPEND=" python_install() { python_domodule syncplay - for size in 256 128 96 64 48 32 24 16; do - doicon -s ${size} "${PN}/resources/hicolor/${size}x${size}/apps/syncplay.png" - done + + if use gui; then + for size in 256 128 96 64 48 32 24 16; do + doicon -s ${size} "${PN}/resources/hicolor/${size}x${size}/apps/syncplay.png" + done + fi if use client; then python_newscript syncplayClient.py syncplay - domenu syncplay/resources/syncplay.desktop + if use gui; then + domenu syncplay/resources/syncplay.desktop + fi fi if use server; then + if use gui; then + domenu syncplay/resources/syncplay-server.desktop + fi python_newscript syncplayServer.py syncplay-server - domenu syncplay/resources/syncplay-server.desktop newinitd "${FILESDIR}/${PN}-server-init" "${PN}" newconfd "${FILESDIR}/${PN}-server-init-conf" "${PN}" fi