Initial import.
authorChristian Ruppert <idl0r@gentoo.org>
Tue, 10 Jan 2012 14:30:02 +0000 (14:30 +0000)
committerChristian Ruppert <idl0r@gentoo.org>
Tue, 10 Jan 2012 14:30:02 +0000 (14:30 +0000)
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64

media-plugins/vdr-xine/ChangeLog [new file with mode: 0644]
media-plugins/vdr-xine/Manifest [new file with mode: 0644]
media-plugins/vdr-xine/files/confd [new file with mode: 0644]
media-plugins/vdr-xine/files/vdr-xine-0.9.4-build-system.patch [new file with mode: 0644]
media-plugins/vdr-xine/files/vdr-xine-0.9.4-gentoo.diff [new file with mode: 0644]
media-plugins/vdr-xine/metadata.xml [new file with mode: 0644]
media-plugins/vdr-xine/vdr-xine-0.9.4.ebuild [new file with mode: 0644]

diff --git a/media-plugins/vdr-xine/ChangeLog b/media-plugins/vdr-xine/ChangeLog
new file mode 100644 (file)
index 0000000..6f50d02
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for media-plugins/vdr-xine
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xine/ChangeLog,v 1.1 2012/01/10 14:30:02 idl0r Exp $
+
+*vdr-xine-0.9.4 (10 Jan 2012)
+
+  10 Jan 2012; Christian Ruppert <idl0r@gentoo.org> +vdr-xine-0.9.4.ebuild,
+  +files/vdr-xine-0.9.4-build-system.patch, +files/vdr-xine-0.9.4-gentoo.diff,
+  +files/confd, +metadata.xml:
+  Initial import.
+
diff --git a/media-plugins/vdr-xine/Manifest b/media-plugins/vdr-xine/Manifest
new file mode 100644 (file)
index 0000000..ebee43d
--- /dev/null
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX confd 133 RMD160 7acd7828a918e636097e340c1b88c2fdaa40f0d0 SHA1 549c83d6ed682f0f01d3be9fe1ab39649123c521 SHA256 126756249851995101f27e9bbc0a87a011f5c7a5f1cd480ac6638b8c0722868b
+AUX vdr-xine-0.9.4-build-system.patch 1507 RMD160 cd69b9cc59508b5abc20fe617c60e9273d3528a0 SHA1 f40827e9a99f3eb3e01224e0c46b9e119249cca4 SHA256 9fa0570e43e4cdfc41efd2ec0fb5b745a8906ceeea2b303dd4a6cd20a0342066
+AUX vdr-xine-0.9.4-gentoo.diff 520 RMD160 c553418c577548a4754ca936ff02ba3b1a16d8ab SHA1 60da5839fbd384a553322adb71ba5d26074df7e9 SHA256 f520451d4e15be2859320170b97f20996bc8040130e2a2605152f523b43af751
+DIST vdr-xine-0.9.4.tgz 339879 RMD160 494b3d9219be2a9a73ab7f93cc8dad4567e1de5f SHA1 3eb108032bca149b632cd0bbb42d118367713971 SHA256 e17bc3e88d1f95b8256e6fde5edc1b3e6f143d5f2bf52c921d2d8ff572862fbe
+EBUILD vdr-xine-0.9.4.ebuild 1414 RMD160 de548dff2d25fb1b48253dc322ebcd4ce86bfc07 SHA1 fa13e61931a2ed887a226827655f49b5861590e9 SHA256 13d07e77fa71f87ba4c806154513cb10a6171c6a6c8d806464ba3a17779323c3
+MISC ChangeLog 452 RMD160 d5735eb4a205531f7e647bc58a1b8e7cbd7fe4a2 SHA1 5aa1612cbe487315edacd91c7163bc233d757ba3 SHA256 bbb47158c5f775cad261883fe6dca233c26c8706b5aa604422c7ac8833c8ee1e
+MISC metadata.xml 338 RMD160 24fbaf6263eca6a0088e1456732bae8f290948fc SHA1 6db9888abd8ff2c7cee0f2d2689f570f2c69b741 SHA256 3246629b3f552bd20d1861a07feea148bfee2eaec4a1dcbac0952bf96f0eccbd
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQEcBAEBCAAGBQJPDEt0AAoJEMOx0zmdw4Z1+zYH/jftzXWyGiTmU5qFqbEqpwYv
+/snS+I6jckHr9VqQ1tUldYrEXRlHorJqkitg7Fsx0fV5YgLpwwlMLqukqY0kLOlY
+hmo7KyiPwm/Ffwm0lrE7TVY8vpe9yGe+H9gQAbH0VDj/NaMAzdi/zfPiD5vaqg57
+WACoDfBfmhQQEY7LPGloXDzSTzPLZZRj21QLhT+y5JFz4OV0QN6kjUP8UHxxfrA3
+gY3JR4ll1FR2vII88u8ww12zU9RLEE2boUhsD4ENVb6DSDrYZO6aSuct9FDjUdQq
+NAKgIdf+OQ5ZS1l7w1ZTky84VMjdGvVLQcUcfNMVIpdUEDH/oxWRq/ElRAIM2aU=
+=Eflo
+-----END PGP SIGNATURE-----
diff --git a/media-plugins/vdr-xine/files/confd b/media-plugins/vdr-xine/files/confd
new file mode 100644 (file)
index 0000000..d728819
--- /dev/null
@@ -0,0 +1,8 @@
+# /etc/conf.d/vdr.xine:
+
+# Global config file for vdr rc-scripts
+
+# -r:
+#   Enable xine to send keys to vdr-process
+
+_EXTRAOPTS="-r"
diff --git a/media-plugins/vdr-xine/files/vdr-xine-0.9.4-build-system.patch b/media-plugins/vdr-xine/files/vdr-xine-0.9.4-build-system.patch
new file mode 100644 (file)
index 0000000..9ebaffb
--- /dev/null
@@ -0,0 +1,59 @@
+From 537ad5fa86305cf55f37dd9c87a9ec3260668049 Mon Sep 17 00:00:00 2001
+From: Christian Ruppert <idl0r@gentoo.org>
+Date: Tue, 10 Jan 2012 13:58:40 +0100
+Subject: [PATCH] patch 1
+
+---
+ Makefile |   14 ++++++++------
+ 1 files changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 674f4fb..e1fdba2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -25,9 +25,9 @@ CXXFLAGS ?= -g -O3 -Wall -Woverloaded-virtual
+ ### The directory environment:
+-VDRDIR = ../../..
+-LIBDIR = ../../lib
+-TMPDIR = /tmp
++VDRDIR ?= ../../..
++LIBDIR ?= ../../lib
++TMPDIR ?= /tmp
+ ### Make sure that necessary options are included:
+@@ -37,7 +37,7 @@ TMPDIR = /tmp
+ -include $(VDRDIR)/Make.config
+-INCLUDES += `pkg-config --cflags libxine` 
++INCLUDES += `pkg-config --cflags libxine`
+ # where to create fifos (xine expects them at /tmp/vdr-xine)
+ VDR_XINE_FIFO_DIR ?= /tmp/vdr-xine
+@@ -114,9 +114,9 @@ $(DEPFILE): Makefile
+ -include $(DEPFILE)
+ ### Internationalization (I18N):
+-
++ifeq ($(ENABLE_I18N), yes)
+ PODIR     = po
+-LOCALEDIR = $(VDRDIR)/locale
++LOCALEDIR = $(DESTDIR)$(VDRDIR)/locale
+ I18Npo    = $(wildcard $(PODIR)/*.po)
+ I18Nmsgs  = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
+ I18Npot   = $(PODIR)/$(PLUGIN).pot
+@@ -135,6 +135,8 @@ $(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
+       @mkdir -p $(dir $@)
+       cp $< $@
++endif
++
+ .PHONY: i18n
+ i18n: $(I18Nmsgs) $(I18Npot)
+-- 
+1.7.3.4
+
diff --git a/media-plugins/vdr-xine/files/vdr-xine-0.9.4-gentoo.diff b/media-plugins/vdr-xine/files/vdr-xine-0.9.4-gentoo.diff
new file mode 100644 (file)
index 0000000..581dba2
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ru xine-0.9.0-orig/xineLib.c xine-0.9.0/xineLib.c
+--- xine-0.9.0-orig/xineLib.c  2009-01-18 17:40:13.228935882 +0100
++++ xine-0.9.0/xineLib.c       2009-01-18 17:41:28.815595331 +0100
+@@ -2118,7 +2118,7 @@
+   bool cXineLib::readNoSignalStream(const int index, const string &suffix)
+   {
+-    string noSignalFileName = m_plugin->ConfigDirectory(PLUGIN_NAME_I18N);
++    string noSignalFileName = "/usr/share/vdr/xine";
+ //    noSignalFileName += "/noSignal.pes";
+     noSignalFileName += "/noSignal" + suffix + ".mpg";
diff --git a/media-plugins/vdr-xine/metadata.xml b/media-plugins/vdr-xine/metadata.xml
new file mode 100644 (file)
index 0000000..f0beaa0
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>media-tv</herd>
+       <maintainer>
+               <email>idl0r@gentoo.org</email>
+               <name>Christian Ruppert</name>
+       </maintainer>
+       <use>
+               <flag name="yaepg">Enables support for the plugin vdr-yaepg (showing scaled video besides OSD)</flag>
+       </use>
+</pkgmetadata>
diff --git a/media-plugins/vdr-xine/vdr-xine-0.9.4.ebuild b/media-plugins/vdr-xine/vdr-xine-0.9.4.ebuild
new file mode 100644 (file)
index 0000000..a2df1b9
--- /dev/null
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xine/vdr-xine-0.9.4.ebuild,v 1.1 2012/01/10 14:30:02 idl0r Exp $
+
+EAPI=3
+
+inherit vdr-plugin
+
+DESCRIPTION="VDR plugin: for 'software only' playback using xine"
+HOMEPAGE="http://home.vr-web.de/~rnissl/"
+SRC_URI="http://home.vr-web.de/~rnissl/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls yaepg"
+
+COMMON_DEP=">=media-video/vdr-1.3.9
+       >=media-libs/xine-lib-1.1.8[vdr]"
+DEPEND="${COMMON_DEP}
+       nls? ( sys-devel/gettext )"
+RDEPEND="${COMMON_DEP}
+       media-video/mjpegtools
+       media-libs/netpbm
+       media-video/y4mscaler"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-gentoo.diff"
+       epatch "${FILESDIR}/${P}-build-system.patch"
+
+       use yaepg && sed -i Makefile -e "s:#VDR_XINE_SET_VIDEO_WINDOW:VDR_XINE_SET_VIDEO_WINDOW:"
+
+       vdr-plugin_src_prepare
+}
+
+src_compile() {
+       BUILD_PARAMS="VDR_XINE_FIFO_DIR=/var/vdr/xine"
+
+       if use nls; then
+               BUILD_PARAMS+=" ENABLE_I18N=yes"
+       fi
+
+       vdr-plugin_src_compile
+}
+
+src_install() {
+       vdr-plugin_src_install
+
+       dobin xineplayer || die
+
+       insinto /usr/share/vdr/xine
+       doins data/* || die
+}
+
+pkg_postinst() {
+       vdr-plugin_pkg_postinst
+
+       if [[ -d ${ROOT}/etc/vdr/plugins/xine ]]; then
+               ewarn "You have a leftover directory of vdr-xine."
+               ewarn "You can safely remove it with:"
+               ewarn "# rm -rf /etc/vdr/plugins/xine"
+       fi
+}