summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2008-04-27 19:43:24 +0000
committerSteve Dibb <beandog@gentoo.org>2008-04-27 19:43:24 +0000
commit31b7e6873f3fcf61a6386ba202279a149f01cf41 (patch)
tree6eaa9f9ca840a70b3555d3f8b6a501f7d80d5516
parentsvn path=/; revision=7 (diff)
downloadbeandog-31b7e6873f3fcf61a6386ba202279a149f01cf41.tar.gz
beandog-31b7e6873f3fcf61a6386ba202279a149f01cf41.tar.bz2
beandog-31b7e6873f3fcf61a6386ba202279a149f01cf41.zip
custom mythvideo navigation patch
svn path=/; revision=8
-rw-r--r--media-plugins/mythvideo/ChangeLog9
-rw-r--r--media-plugins/mythvideo/Manifest5
-rw-r--r--media-plugins/mythvideo/files/mtd.init.d24
-rw-r--r--media-plugins/mythvideo/files/videogallery.patch94
-rw-r--r--media-plugins/mythvideo/metadata.xml8
-rw-r--r--media-plugins/mythvideo/mythvideo-0.20.2_p15087-r1.ebuild28
6 files changed, 168 insertions, 0 deletions
diff --git a/media-plugins/mythvideo/ChangeLog b/media-plugins/mythvideo/ChangeLog
new file mode 100644
index 0000000..8da42b4
--- /dev/null
+++ b/media-plugins/mythvideo/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for media-plugins/mythvideo
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 27 Apr 2008; Steve Dibb <beandog@gentoo.org> +files/mtd.init.d,
+ +files/videogallery.patch, +metadata.xml,
+ +mythvideo-0.20.2_p15087-r1.ebuild:
+ Add custom patch to modify navigation
+
diff --git a/media-plugins/mythvideo/Manifest b/media-plugins/mythvideo/Manifest
new file mode 100644
index 0000000..49972d7
--- /dev/null
+++ b/media-plugins/mythvideo/Manifest
@@ -0,0 +1,5 @@
+AUX mtd.init.d 577 RMD160 6e59a47874ece47bdac7b9dc7e0f2e1f03348429 SHA1 ed7b161ba64453946a6ccbbb05ee206cc52b006c SHA256 a4c958b689b99177baf486907f0d83b2d8ff8b72cd371fc29d1ff1f3636a512e
+AUX videogallery.patch 3420 RMD160 e48952ab4e35122dce5249416fc1534230724e05 SHA1 c28d4cf7f2b61c88443080175122ce3e6fe06fc9 SHA256 d431fc901c2c1f8c33093be73afca51c47d00ccba5ec3cc357c59c777c11bf34
+EBUILD mythvideo-0.20.2_p15087-r1.ebuild 946 RMD160 8fcd3f72f7572d1eb0135c800cdcba0a0f1bedad SHA1 6389dedf4842847d2e8eb4c67ec741c61d46e4b4 SHA256 d05f3ddf27315215b0d58b0b9524eea68febf3a24573847bb3bc0d6891a285ca
+MISC ChangeLog 11711 RMD160 2b21de569c3c54448dee1729bf4de51713f9fd63 SHA1 8b55c4069be22976edd58eee7c7158b6622d592f SHA256 edfcbbed55564a3dee3fb6a3533cd2711780d5debf8bfbd1e532d9fa1d66e2c2
+MISC metadata.xml 222 RMD160 effccac2541ac4d0954899784d7d64c60a9c020e SHA1 c6bd979f236f5e6fe9332eb6568bee402efc793f SHA256 8b2065fecfbbdd0caa3c5eb86b98c22766db07f555edbf3127e9454b468ecff6
diff --git a/media-plugins/mythvideo/files/mtd.init.d b/media-plugins/mythvideo/files/mtd.init.d
new file mode 100644
index 0000000..ada7cad
--- /dev/null
+++ b/media-plugins/mythvideo/files/mtd.init.d
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ use mysql
+}
+
+start() {
+
+ ebegin "Starting MythTV Transcoding Daemon"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/mtd \
+ --make-pidfile --pidfile /var/run/mtd.pid \
+ --background
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping MythTV Transcoding Daemon"
+ start-stop-daemon --stop --quiet --pidfile=/var/run/mtd.pid
+ eend $?
+}
diff --git a/media-plugins/mythvideo/files/videogallery.patch b/media-plugins/mythvideo/files/videogallery.patch
new file mode 100644
index 0000000..e3130bc
--- /dev/null
+++ b/media-plugins/mythvideo/files/videogallery.patch
@@ -0,0 +1,94 @@
+--- mythvideo/mythvideo/videogallery.cpp 2008-04-25 19:19:46.000000000 -0600
++++ mythvideo/mythvideo/videogallery.cpp.orig 2008-04-25 19:19:55.000000000 -0600
+@@ -61,25 +61,32 @@
+
+ if (action == "SELECT")
+ handled = handleSelect();
++ /*
+ else if (action == "INFO") {
+ if (where_we_are->getInt() > kSubFolder)
+ doMenu(true);
+- } else if (action == "UP" || action == "DOWN" ||
+- action == "LEFT" || action == "RIGHT" ||
+- action == "PAGEUP" || action == "PAGEDOWN" ||
+- action == "HOME" || action == "END")
++ } */
++ else if (action == "3" || action == "PAGEUP")
++ moveCursor("PAGEUP");
++ else if (action == "9" || action == "PAGEDOWN")
++ moveCursor("PAGEDOWN");
++ else if (action == "UP" || action == "DOWN" ||
++ action == "LEFT" || action == "RIGHT")
+ moveCursor(action);
++ else if (action == "1" || action == "HOME")
++ moveCursor("HOME");
++ else if (action == "7" || action == "END")
++ moveCursor("END");
+ else if (action == "INCPARENT")
+ shiftParental(1);
+ else if (action == "DECPARENT")
+ shiftParental(-1);
+- else if (action == "1" || action == "2" ||
+- action == "3" || action == "4")
+- setParentalLevel(action.toInt());
++ /*
+ else if (action == "FILTER")
+ slotDoFilter();
+ else if (action == "MENU")
+ doMenu(false);
++ */
+ else if (action == "ESCAPE")
+ {
+ GenericTree *lparent = where_we_are->getParent();
+@@ -227,10 +234,17 @@
+ LayerSet *container = theme->GetSet("text");
+ if (container)
+ {
++
++ QString title = where_we_are->getString();
++ if(title == "videos")
++ title = "";
++ else
++ title.replace('_',' ');
++
+ Metadata *meta =
+ m_video_list->getVideoListMetadata(where_we_are->getInt());
+ checkedSetText((UITextType*)container->GetType("text"),
+- meta ? meta->Title() : where_we_are->getString());
++ meta ? meta->Title() : title);
+
+ container->Draw(&tmp, 0, 0);
+ }
+@@ -459,7 +473,10 @@
+ area.setHeight(bh-2*sh-yoffset);
+ itype->SetDisplayArea(area);
+ itype->calculateScreenArea();
+- itype->SetText(meta ? meta->Title() : curTreePos->getString());
++ //itype->SetText(meta ? meta->Title() : curTreePos->getString());
++
++ QString tmp = meta ? meta->Title() : curTreePos->getString();
++ itype->SetText(tmp.replace('_',' '));
+
+ for (int i = 0; i < 4; ++i)
+ itype->Draw(p, i, 0);
+@@ -477,7 +494,9 @@
+ area.setHeight(spaceH);
+ ttype->SetDisplayArea(area);
+ ttype->calculateScreenArea();
+- ttype->SetText(meta ? meta->Title() : curTreePos->getString());
++ //ttype->SetText(meta ? meta->Title() : curTreePos->getString());
++ QString tmp = meta ? meta->Title() : curTreePos->getString();
++ ttype->SetText(tmp.replace('_',' '));
+
+ for (int i = 0; i < 4; ++i)
+ ttype->Draw(p, i, 0);
+@@ -853,7 +872,8 @@
+ handleUpDirSelect();
+ break;
+ default:
+- handleVideoSelect();
++ // handleVideoSelect();
++ slotWatchVideo();
+ };
+
+ update(); // renew the screen
diff --git a/media-plugins/mythvideo/metadata.xml b/media-plugins/mythvideo/metadata.xml
new file mode 100644
index 0000000..1cb3ba5
--- /dev/null
+++ b/media-plugins/mythvideo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+ <email>cardoe@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/media-plugins/mythvideo/mythvideo-0.20.2_p15087-r1.ebuild b/media-plugins/mythvideo/mythvideo-0.20.2_p15087-r1.ebuild
new file mode 100644
index 0000000..e0f14b3
--- /dev/null
+++ b/media-plugins/mythvideo/mythvideo-0.20.2_p15087-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.20.2_p15087.ebuild,v 1.2 2008/03/03 20:05:52 cardoe Exp $
+
+ESVN_PATCHES="${FILESDIR}/videogallery.patch"
+
+inherit mythtv-plugins subversion
+
+DESCRIPTION="Video player module for MythTV."
+IUSE="mplayer xine"
+KEYWORDS="amd64 ppc x86"
+
+RDEPEND="dev-perl/libwww-perl
+ dev-perl/HTML-Parser
+ dev-perl/URI
+ dev-perl/XML-Simple
+ mplayer? ( || ( media-video/mplayer media-video/mplayer-bin ) )
+ xine? ( media-video/xine-ui )"
+DEPEND="${RDEPEND}"
+
+pkg_postinst() {
+ elog "MythVideo can use any media player to playback files, since"
+ elog "it's a setting in the setup menu."
+ elog
+ elog "MythTV also has an 'Internal' player you can use, though"
+ elog "it will not support as many formats. If you want to use it,"
+ elog "set the player to 'Internal' (note spelling & caps)."
+}