summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2016-09-03 01:48:13 +0300
committerDavid Seifert <soap@gentoo.org>2016-09-04 21:04:20 +0200
commit32ab343a5a17a63a31b3709a3ee93915a50ddf20 (patch)
tree921e35cb570b54130e7eb2f37252ef5a173a9a28 /media-video
parentx11-themes/neutral-xcursors: declare loop variable as local (diff)
downloadgentoo-32ab343a5a17a63a31b3709a3ee93915a50ddf20.tar.gz
gentoo-32ab343a5a17a63a31b3709a3ee93915a50ddf20.tar.bz2
gentoo-32ab343a5a17a63a31b3709a3ee93915a50ddf20.zip
media-video/syncplay: new ebuild
Closes: https://github.com/gentoo/gentoo/pull/2194 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/syncplay/Manifest1
-rw-r--r--media-video/syncplay/files/syncplay-1.4.0-rc2-fix-makefile.patch82
-rw-r--r--media-video/syncplay/metadata.xml21
-rw-r--r--media-video/syncplay/syncplay-1.4.0_rc2.ebuild52
4 files changed, 156 insertions, 0 deletions
diff --git a/media-video/syncplay/Manifest b/media-video/syncplay/Manifest
new file mode 100644
index 000000000000..eae7926c1030
--- /dev/null
+++ b/media-video/syncplay/Manifest
@@ -0,0 +1 @@
+DIST syncplay-1.4.0_rc2.tar.gz 534450 SHA256 29bd80ef3de7241eee71d0b9d7884c1c694a490d83acc96e3f06b05f419d5409 SHA512 56e5873377eceec1e88741464ff32f55899fe240d479a61c54af62f7cc4e1386a9b478b9b9057df0960cdb6833fce0e8efbe0aa0081211daa76fb95d2714b9bd WHIRLPOOL a61deba5ee1f613a5657e49c1c56f66b750611cf717ad00ffc3cc798d35d500d76a165d48a5b4e64b27619d8baeb5fe08ea30ebccf82d16aa43346df3fe58f61
diff --git a/media-video/syncplay/files/syncplay-1.4.0-rc2-fix-makefile.patch b/media-video/syncplay/files/syncplay-1.4.0-rc2-fix-makefile.patch
new file mode 100644
index 000000000000..9348b92f7d2c
--- /dev/null
+++ b/media-video/syncplay/files/syncplay-1.4.0-rc2-fix-makefile.patch
@@ -0,0 +1,82 @@
+From ee191c79d96436a379e3c6760cb4478dca262c9f Mon Sep 17 00:00:00 2001
+From: Mykyta Holubakha <hilobakho@gmail.com>
+Date: Sat, 3 Sep 2016 18:50:18 +0300
+Subject: [PATCH] Support for DESTDIR and PREFIX
+
+Fixes #110
+---
+ GNUmakefile | 28 ++++++++++++++--------------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/GNUmakefile b/GNUmakefile
+index c52c09a..725e70e 100644
+--- a/GNUmakefile
++++ b/GNUmakefile
+@@ -19,21 +19,21 @@ endif
+
+ ifeq ($(SINGLE_USER),false)
+ ifneq ($(BSD),true)
+- BASE_PATH = /usr
+- VLC_LIB_PATH = ${PREFIX}/usr/lib
++ PREFIX ?= /usr
++ VLC_LIB_PATH = ${PREFIX}/lib
+ else
+- BASE_PATH = /usr/local
+- VLC_LIB_PATH = ${PREFIX}/usr/local/lib
++ PREFIX ?= /usr/local
++ VLC_LIB_PATH = ${PREFIX}/lib
+ endif
+ else
+- BASE_PATH = ${HOME}/.local
++ PREFIX = ${HOME}/.local
+ VLC_LIB_PATH = ${HOME}/.local/share
+ endif
+
+- BIN_PATH = ${PREFIX}$(BASE_PATH)/bin
+- LIB_PATH = ${PREFIX}$(BASE_PATH)/lib
+- APP_SHORTCUT_PATH = ${PREFIX}$(BASE_PATH)/share/applications
+- SHARE_PATH = ${PREFIX}$(BASE_PATH)/share
++ BIN_PATH = ${DESTDIR}${PREFIX}/bin
++ LIB_PATH = ${DESTDIR}${PREFIX}/lib
++ APP_SHORTCUT_PATH = ${DESTDIR}${PREFIX}/share/applications
++ SHARE_PATH = ${DESTDIR}${PREFIX}/share
+
+ common:
+ -mkdir -p $(LIB_PATH)/syncplay/resources/lua/intf
+@@ -57,7 +57,7 @@ u-common:
+ client:
+ -mkdir -p $(BIN_PATH)
+ cp syncplayClient.py $(BIN_PATH)/syncplay
+- sed -i -e 's%# libpath%site.addsitedir\("$(BASE_PATH)/lib/syncplay"\)%' $(BIN_PATH)/syncplay
++ sed -i -e 's%# libpath%site.addsitedir\("$(LIB_PATH)/syncplay"\)%' $(BIN_PATH)/syncplay
+ chmod 755 $(BIN_PATH)/syncplay
+ cp syncplayClient.py $(LIB_PATH)/syncplay/
+ cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/
+@@ -67,20 +67,20 @@ ifeq ($(SINGLE_USER),false)
+ endif
+
+ ifeq ($(VLC_SUPPORT),true)
+- -mkdir -p $(VLC_LIB_PATH)/vlc/lua/intf/
+- cp resources/lua/intf/syncplay.lua $(VLC_LIB_PATH)/vlc/lua/intf/
++ -mkdir -p ${DESTDIR}$(VLC_LIB_PATH)/vlc/lua/intf/
++ cp resources/lua/intf/syncplay.lua ${DESTDIR}$(VLC_LIB_PATH)/vlc/lua/intf/
+ endif
+
+ u-client:
+ -rm $(BIN_PATH)/syncplay
+ -rm $(LIB_PATH)/syncplay/syncplayClient.py
+- -rm $(VLC_LIB_PATH)/vlc/lua/intf/syncplay.lua
++ -rm ${DESTDIR}$(VLC_LIB_PATH)/vlc/lua/intf/syncplay.lua
+ -rm $(APP_SHORTCUT_PATH)/syncplay.desktop
+
+ server:
+ -mkdir -p $(BIN_PATH)
+ cp syncplayServer.py $(BIN_PATH)/syncplay-server
+- sed -i -e 's%# libpath%site.addsitedir\("$(BASE_PATH)/lib/syncplay"\)%' $(BIN_PATH)/syncplay-server
++ sed -i -e 's%# libpath%site.addsitedir\("$(LIB_PATH)/syncplay"\)%' $(BIN_PATH)/syncplay-server
+ chmod 755 $(BIN_PATH)/syncplay-server
+ cp syncplayServer.py $(LIB_PATH)/syncplay/
+ cp resources/syncplay-server.desktop $(APP_SHORTCUT_PATH)/
+--
+2.9.3
+
diff --git a/media-video/syncplay/metadata.xml b/media-video/syncplay/metadata.xml
new file mode 100644
index 000000000000..1ad1d49790cb
--- /dev/null
+++ b/media-video/syncplay/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hilobakho@gmail.com</email>
+ <name>Mykyta Holubakha</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Syncplay/syncplay</remote-id>
+ </upstream>
+ <use>
+ <flag name="client">Install Syncplay client</flag>
+ <flag name="server">Install Syncplay server</flag>
+ <flag name="gui">Enable gui support</flag>
+ <flag name="vlc">Enable VLC2.x support</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-video/syncplay/syncplay-1.4.0_rc2.ebuild b/media-video/syncplay/syncplay-1.4.0_rc2.ebuild
new file mode 100644
index 000000000000..5d6e7300acd6
--- /dev/null
+++ b/media-video/syncplay/syncplay-1.4.0_rc2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1
+
+MY_PV=${PV/_rc/-RC}
+
+DESCRIPTION="Client/server to synchronize media playback"
+HOMEPAGE="http://syncplay.pl"
+SRC_URI="https://github.com/Syncplay/syncplay/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+client +server gui vlc"
+REQUIRED_USE="vlc? ( client )
+ gui? ( client )
+ ${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ gui? ( dev-python/pyside[${PYTHON_USEDEP}] )
+ vlc? ( media-video/vlc[lua] )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+PATCHES=( "${FILESDIR}/syncplay-1.4.0-rc2-fix-makefile.patch" )
+
+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
+}