forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-video/syncplay: add live version.
Closes: gentoo#4787
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
PYTHON_COMPAT=( python2_7 ) | ||
|
||
inherit git-r3 python-r1 | ||
|
||
MY_PV=${PV/_rc/-RC} | ||
|
||
DESCRIPTION="Client/server to synchronize media playback" | ||
HOMEPAGE="http://syncplay.pl" | ||
EGIT_REPO_URI="https://github.com/Syncplay/${PN}.git" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
IUSE="+client +server gui vlc" | ||
REQUIRED_USE="vlc? ( client ) | ||
gui? ( client ) | ||
${PYTHON_REQUIRED_USE}" | ||
|
||
DEPEND="" | ||
RDEPEND="${PYTHON_DEPS} | ||
|| ( | ||
>=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] | ||
dev-python/twisted-core[${PYTHON_USEDEP}] | ||
) | ||
gui? ( dev-python/pyside[${PYTHON_USEDEP}] ) | ||
vlc? ( media-video/vlc[lua] )" | ||
|
||
S="${WORKDIR}/${PN}-${MY_PV}" | ||
|
||
src_prepare() { | ||
default | ||
if ! use gui; then | ||
sed -i 's/"noGui": False,/"noGui": True,/' \ | ||
syncplay/ui/ConfigurationGetter.py \ | ||
|| die "Failed to patch ConfigurationGetter.py" | ||
fi | ||
} | ||
|
||
src_compile() { | ||
: | ||
} | ||
|
||
src_install() { | ||
local MY_MAKEOPTS=( DESTDIR="${D}" PREFIX=/usr ) | ||
use client && \ | ||
emake "${MY_MAKEOPTS[@]}" VLC_SUPPORT=$(usex vlc true false) install-client | ||
use server && \ | ||
emake "${MY_MAKEOPTS[@]}" install-server | ||
} | ||
|
||
pkg_postinst() { | ||
if use client; then | ||
einfo "Syncplay supports the following players:" | ||
einfo "media-video/mpv, media-video/mplayer2, media-video/vlc" | ||
fi | ||
} |