summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-11-15 22:22:56 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-11-15 22:22:56 +0000
commite790b661146f7117ed78ceb78ef5ea65a9a3bd67 (patch)
treef1ce80a78ce468933987c6e5dc5733a12cb88409 /media-plugins/vdr-dvd
parentfix digests (diff)
downloadhistorical-e790b661146f7117ed78ceb78ef5ea65a9a3bd67.tar.gz
historical-e790b661146f7117ed78ceb78ef5ea65a9a3bd67.tar.bz2
historical-e790b661146f7117ed78ceb78ef5ea65a9a3bd67.zip
Fixed atapi cmd length, Bug 199026.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'media-plugins/vdr-dvd')
-rw-r--r--media-plugins/vdr-dvd/ChangeLog8
-rw-r--r--media-plugins/vdr-dvd/Manifest28
-rw-r--r--media-plugins/vdr-dvd/files/digest-vdr-dvd-0.3.7_pre20071113-r13
-rw-r--r--media-plugins/vdr-dvd/files/dvdspeed-cvs-20071113-2.diff253
-rw-r--r--media-plugins/vdr-dvd/vdr-dvd-0.3.7_pre20071113-r1.ebuild30
5 files changed, 312 insertions, 10 deletions
diff --git a/media-plugins/vdr-dvd/ChangeLog b/media-plugins/vdr-dvd/ChangeLog
index 9e51ab35d32b..3ee902eb7158 100644
--- a/media-plugins/vdr-dvd/ChangeLog
+++ b/media-plugins/vdr-dvd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-plugins/vdr-dvd
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvd/ChangeLog,v 1.12 2007/11/14 04:38:32 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvd/ChangeLog,v 1.13 2007/11/15 22:22:55 zzam Exp $
+
+*vdr-dvd-0.3.7_pre20071113-r1 (15 Nov 2007)
+
+ 15 Nov 2007; Matthias Schwarzott <zzam@gentoo.org>
+ +files/dvdspeed-cvs-20071113-2.diff, +vdr-dvd-0.3.7_pre20071113-r1.ebuild:
+ Fixed atapi cmd length, Bug 199026.
*vdr-dvd-0.3.7_pre20071113 (14 Nov 2007)
diff --git a/media-plugins/vdr-dvd/Manifest b/media-plugins/vdr-dvd/Manifest
index 486e0207c7c3..0ab1e37bfbd9 100644
--- a/media-plugins/vdr-dvd/Manifest
+++ b/media-plugins/vdr-dvd/Manifest
@@ -17,6 +17,10 @@ AUX dvd-a52drc-pre20071113.diff 3161 RMD160 1d7d3af61dec2b43d68af7d8149efe62dff8
MD5 b741697a3fa7bc728796d9b8edf33dba files/dvd-a52drc-pre20071113.diff 3161
RMD160 1d7d3af61dec2b43d68af7d8149efe62dff8aee9 files/dvd-a52drc-pre20071113.diff 3161
SHA256 4c677f86133fa2aebee5bac9d5cdee8b0229804589e1619682351bc46741aeab files/dvd-a52drc-pre20071113.diff 3161
+AUX dvdspeed-cvs-20071113-2.diff 9609 RMD160 fb6142325f0cffceaed1b0566cd8db9ec514dac8 SHA1 2e7ccdc4aa86735ea2a4129ded357cbdf55534fa SHA256 63168dd589ee9d51df0135587623102f97ccea19fb5dfe7dcd4a73990b5d8fdb
+MD5 eb56273bb2c2341764ecef5e0a537108 files/dvdspeed-cvs-20071113-2.diff 9609
+RMD160 fb6142325f0cffceaed1b0566cd8db9ec514dac8 files/dvdspeed-cvs-20071113-2.diff 9609
+SHA256 63168dd589ee9d51df0135587623102f97ccea19fb5dfe7dcd4a73990b5d8fdb files/dvdspeed-cvs-20071113-2.diff 9609
AUX dvdspeed-cvs-20071113.diff 9609 RMD160 7ccbc1d514c80f0fb76da4472402c76cf18ff8f7 SHA1 bce9e34d0b3a30416684685a9cffab1bd85e1236 SHA256 0636a0b918457e8faa730250379f4df583a9fe1a5b8c78b4eca571aeae9b9272
MD5 b3df439bd31931143ab714b9ac92e08b files/dvdspeed-cvs-20071113.diff 9609
RMD160 7ccbc1d514c80f0fb76da4472402c76cf18ff8f7 files/dvdspeed-cvs-20071113.diff 9609
@@ -45,14 +49,18 @@ EBUILD vdr-dvd-0.3.7_pre20070819.ebuild 884 RMD160 60d333ef428a2e261a50c61c79b8d
MD5 e75817be34a69b077971149756772444 vdr-dvd-0.3.7_pre20070819.ebuild 884
RMD160 60d333ef428a2e261a50c61c79b8de15036f882e vdr-dvd-0.3.7_pre20070819.ebuild 884
SHA256 96b406f10b815865c1c645c5629ef972555a8352e352140f374730e461daa514 vdr-dvd-0.3.7_pre20070819.ebuild 884
+EBUILD vdr-dvd-0.3.7_pre20071113-r1.ebuild 870 RMD160 3719609517f33b10dbfea7e6529aef5a246cb0a9 SHA1 c26c82bdc54059a22f9235b6ec8b8d1d6783568f SHA256 b96d8c52d0481aac4621b1c69a02d6d6b19c364bd65e2641e5fe4efdfa84190c
+MD5 4afdf6d85e53f3f3bf44ff15a19b8043 vdr-dvd-0.3.7_pre20071113-r1.ebuild 870
+RMD160 3719609517f33b10dbfea7e6529aef5a246cb0a9 vdr-dvd-0.3.7_pre20071113-r1.ebuild 870
+SHA256 b96d8c52d0481aac4621b1c69a02d6d6b19c364bd65e2641e5fe4efdfa84190c vdr-dvd-0.3.7_pre20071113-r1.ebuild 870
EBUILD vdr-dvd-0.3.7_pre20071113.ebuild 870 RMD160 9b3d9330304f992294079848fb77c80955c2d1f7 SHA1 eb2973fcd67091f55b3b16aa1340de93ae29f0e4 SHA256 9cd3de1dd9c0c3fc7bec05558a83776c89aee32c70e6b43ed392dfb7a44c1b99
MD5 f86cf2faeecdbe37cf73f2d9237ed960 vdr-dvd-0.3.7_pre20071113.ebuild 870
RMD160 9b3d9330304f992294079848fb77c80955c2d1f7 vdr-dvd-0.3.7_pre20071113.ebuild 870
SHA256 9cd3de1dd9c0c3fc7bec05558a83776c89aee32c70e6b43ed392dfb7a44c1b99 vdr-dvd-0.3.7_pre20071113.ebuild 870
-MISC ChangeLog 2687 RMD160 52686c1ae860da079311e31df909be6e022442f1 SHA1 77638b46db61f6ac0131df7f7e9c7566a13adc27 SHA256 ac21d30b79371303626e265c2605bd07064a3350d5486da224cbde6fd3e9d18f
-MD5 11a6fee3a8a243d3d28cdd7694866f7a ChangeLog 2687
-RMD160 52686c1ae860da079311e31df909be6e022442f1 ChangeLog 2687
-SHA256 ac21d30b79371303626e265c2605bd07064a3350d5486da224cbde6fd3e9d18f ChangeLog 2687
+MISC ChangeLog 2896 RMD160 6d60ff4d20b463ce98f64c66f64a6cbc3598205b SHA1 1f6b4ed06ebe163daa3078b9cd5919768440deb0 SHA256 d3e35c4c342db4ec2963ef5f6c29f4fa0742f239c3622bb9e8474f0e0dc9c6a5
+MD5 d1d4aa2035a107893c711182606d09f9 ChangeLog 2896
+RMD160 6d60ff4d20b463ce98f64c66f64a6cbc3598205b ChangeLog 2896
+SHA256 d3e35c4c342db4ec2963ef5f6c29f4fa0742f239c3622bb9e8474f0e0dc9c6a5 ChangeLog 2896
MISC metadata.xml 367 RMD160 4bbe2db77cbe5cc404dd3d6fa10dc12fb46aebda SHA1 869c0f26507fe17e0531969649b65ffc3cc5f244 SHA256 59d2703ac7119217b962009196caa8584f5697acf745a2cf4de3256da580c47e
MD5 a9f84ea69e58f6a35daf7b7ea1f5b00f metadata.xml 367
RMD160 4bbe2db77cbe5cc404dd3d6fa10dc12fb46aebda metadata.xml 367
@@ -69,11 +77,13 @@ SHA256 d1acd22fbd04e229869ab304971805ff3a77ec32123a011e3264501fd122d15e files/di
MD5 3a54d14bdc11a2fc16f01d0f83b0b85c files/digest-vdr-dvd-0.3.7_pre20071113 262
RMD160 beab2bcb5ecb0c00ac9ebba52eddc316134235f8 files/digest-vdr-dvd-0.3.7_pre20071113 262
SHA256 90bd86f58cae26fdcf692e034e4deb9a3946708eecd6490d04e35994356a42a6 files/digest-vdr-dvd-0.3.7_pre20071113 262
+MD5 3a54d14bdc11a2fc16f01d0f83b0b85c files/digest-vdr-dvd-0.3.7_pre20071113-r1 262
+RMD160 beab2bcb5ecb0c00ac9ebba52eddc316134235f8 files/digest-vdr-dvd-0.3.7_pre20071113-r1 262
+SHA256 90bd86f58cae26fdcf692e034e4deb9a3946708eecd6490d04e35994356a42a6 files/digest-vdr-dvd-0.3.7_pre20071113-r1 262
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-Comment: added by hd_brummy@gentoo.org
+Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHOnvfdn07HTTCgIoRAuepAKCNNyRIzHqB3Zh617iuQZYf/0nbPQCfUP3D
-Mo/YG9a8oKA1jL4MGJYuR0w=
-=ezGR
+iD8DBQFHPMbLt2vP6XvVdOcRAqbpAJ9vlz92C9nrbOp78snaykrER1N3FwCfTROv
+oZ9w97IDLjluzzI9q3npK04=
+=a3/X
-----END PGP SIGNATURE-----
diff --git a/media-plugins/vdr-dvd/files/digest-vdr-dvd-0.3.7_pre20071113-r1 b/media-plugins/vdr-dvd/files/digest-vdr-dvd-0.3.7_pre20071113-r1
new file mode 100644
index 000000000000..8b05a944e372
--- /dev/null
+++ b/media-plugins/vdr-dvd/files/digest-vdr-dvd-0.3.7_pre20071113-r1
@@ -0,0 +1,3 @@
+MD5 70213c95fa9db4047ef098ffa54c9ac0 vdr-dvd-cvs-20071113.tar.bz2 64057
+RMD160 8a7919dddff059c233957dad025f809b1ee59519 vdr-dvd-cvs-20071113.tar.bz2 64057
+SHA256 b50e4952c49942fd6ddee38a2c88cb0e56a4fd857508ef3c9588c5ae87fdcbbc vdr-dvd-cvs-20071113.tar.bz2 64057
diff --git a/media-plugins/vdr-dvd/files/dvdspeed-cvs-20071113-2.diff b/media-plugins/vdr-dvd/files/dvdspeed-cvs-20071113-2.diff
new file mode 100644
index 000000000000..4c4b9a31f312
--- /dev/null
+++ b/media-plugins/vdr-dvd/files/dvdspeed-cvs-20071113-2.diff
@@ -0,0 +1,253 @@
+diff -Nur dvd/i18n.c dvd.new/i18n.c
+--- dvd/i18n.c 2007-11-13 15:59:36.000000000 +0100
++++ dvd.new/i18n.c 2007-11-13 15:51:06.000000000 +0100
+@@ -280,6 +280,32 @@
+ #endif
+ },
+ {
++ "Setup.DVD$DVD-ROM Speed", // English
++ "DVD-ROM-Geschwindigkeit", // Deutsch
++ "DVD-ROM Speed", // Slovenski
++ "DVD-ROM Speed", // Italiano
++ "DVD-ROM Speed", // Nederlands
++ "DVD-ROM Speed", // Português
++ "DVD-ROM Speed", // Français
++ "DVD-ROM Speed", // Norsk
++ "DVD-ROM Speed", // suomi
++ "DVD-ROM Speed", // Polski
++ "DVD-ROM Speed", // Español
++ "DVD-ROM Speed", // ÅëëçíéêÜ (Greek)
++ "DVD-ROM Speed", // Svenska
++ "DVD-ROM Speed", // Romaneste
++ "DVD-ROM Speed", // Magyar
++ "DVD-ROM Speed", // Català
++ "DVD-ROM Speed", // ÀãááÚØÙ (Russian)
++ "DVD-ROM Speed", // Hrvatski (Croatian)
++ "DVD-ROM Speed", // Eesti
++ "DVD-ROM Speed", // Dansk
++ "DVD-ROM Speed", // Czech
++#if VDRVERSNUM >= 10502
++ "DVD-ROM Speed" // Türkçe
++#endif
++ },
++ {
+ "Setup.DVD$Gain (analog)",
+ "Verstärkung (analog)", // Deutsch
+ "Ojaèanje (analogno)", // Slovenski
+diff -Nur dvd/player-dvd.c dvd.new/player-dvd.c
+--- dvd/player-dvd.c 2007-09-17 21:04:43.000000000 +0200
++++ dvd.new/player-dvd.c 2007-11-13 15:58:50.000000000 +0100
+@@ -35,6 +35,11 @@
+ #include "control-dvd.h"
+ #include "dvd.h"
+
++/* Needed for DvdSetSpeed() */
++#include <linux/cdrom.h>
++#include <scsi/sg.h>
++#include <sys/ioctl.h>
++
+ /**
+ * this was "weak"'s solution of a forced
+ * SPU only stream choice,
+@@ -252,6 +257,7 @@
+ bool cDvdPlayer::HasBitStreamOut = false;
+ bool cDvdPlayer::HasSoftDeviceOut = false;
+ bool cDvdPlayer::SoftDeviceOutActive = false;
++bool cDvdPlayer::DvdSetSpeedActive = false;
+
+ const int cDvdPlayer::MaxAudioTracks = 0x20;
+ const int cDvdPlayer::AudioTrackMask = 0x1F;
+@@ -565,6 +571,93 @@
+ #endif
+ }
+
++/* This function was ripped off of mplayer */
++void cDvdPlayer::DvdSetSpeed(const char *device, int speed)
++{
++#if defined(SG_IO) && defined(GPCMD_SET_STREAMING)
++ int fd;
++ unsigned char buffer[28];
++ unsigned char cmd[12];
++ unsigned char sense[16];
++ struct sg_io_hdr sghdr;
++ struct stat st;
++
++ memset(&sghdr, 0, sizeof(sghdr));
++ memset(buffer, 0, sizeof(buffer));
++ memset(sense, 0, sizeof(sense));
++ memset(cmd, 0, sizeof(cmd));
++ memset(&st, 0, sizeof(st));
++
++ if (stat(device, &st) == -1) {
++ esyslog("ERROR: dvd-plugin: DVD device %s doesn't exist", device);
++ return;
++ }
++
++ if (!S_ISBLK(st.st_mode)) {
++ esyslog("ERROR: dvd-plugin: DVD device %s is not a block device", device);
++ return;
++ }
++
++ if ((fd = open(device, O_RDWR | O_NONBLOCK)) == -1) {
++ esyslog("ERROR: dvd-plugin: Failed to open DVD device %s O_RDWR | O_NONBLOCK", device);
++ return;
++ }
++
++ if (speed < 100 && speed > 0) { /* speed times 1350KB/s (DVD single speed) */
++ speed *= 1350;
++ }
++
++ switch (speed) {
++ case 0: /* don't touch speed setting */
++ close(fd);
++ return;
++ case -1: /* restore default value */
++ speed = 0;
++ buffer[0] = 4; /* restore default */
++ isyslog("dvd-plugin: Restoring initial DVD drive speed");
++ break;
++ default: /* limit to <speed> KB/s */
++ isyslog("dvd-plugin: Limiting speed to %d KB/s", speed);
++ break;
++ }
++
++ sghdr.interface_id = 'S';
++ sghdr.timeout = 5000;
++ sghdr.dxfer_direction = SG_DXFER_TO_DEV;
++ sghdr.mx_sb_len = sizeof(sense);
++ sghdr.dxfer_len = sizeof(buffer);
++ sghdr.cmd_len = sizeof(cmd);
++ sghdr.sbp = sense;
++ sghdr.dxferp = buffer;
++ sghdr.cmdp = cmd;
++
++ cmd[0] = GPCMD_SET_STREAMING;
++ cmd[10] = sizeof(buffer);
++
++ buffer[8] = 0xff; /* first sector 0, last sector 0xffffffff */
++ buffer[9] = 0xff;
++ buffer[10] = 0xff;
++ buffer[11] = 0xff;
++
++ buffer[12] = buffer[20] = (speed >> 24) & 0xff; /* <speed> kilobyte */
++ buffer[13] = buffer[21] = (speed >> 16) & 0xff;
++ buffer[14] = buffer[22] = (speed >> 8) & 0xff;
++ buffer[15] = buffer[23] = speed & 0xff;
++
++ buffer[18] = buffer[26] = 0x03; /* 1 second */
++ buffer[19] = buffer[27] = 0xe8;
++
++ if (ioctl(fd, SG_IO, &sghdr) < 0) {
++ esyslog("ERROR: dvd-plugin: DVD speed limiting failed");
++ close(fd);
++ return;
++ }
++ isyslog("dvd-plugin: DVD speed limiting successful");
++ DvdSetSpeedActive = true;
++ close(fd);
++#endif
++}
++
+ void cDvdPlayer::Action(void) {
+ memset(event_buf, 0, sizeof(uint8_t)*4096);
+
+@@ -590,12 +683,21 @@
+ }
+ dsyslog("dvd-plugin: SoftDeviceOutActive=%d, HasSoftDeviceOut=%d", SoftDeviceOutActive, HasSoftDeviceOut);
+
++ /* Try to reduce drive speed if the user wants us to */
++ if (DVDSetup.Speed)
++ DvdSetSpeed(const_cast<char *>(cDVD::getDVD()->DeviceName()), DVDSetup.Speed);
++
+ if (dvdnav_open(&nav, const_cast<char *>(cDVD::getDVD()->DeviceName())) != DVDNAV_STATUS_OK) {
+ Skins.Message(mtError, tr("Error.DVD$Error opening DVD!"));
+ esyslog("ERROR: dvd-plugin cannot open dvdnav device %s -> input thread ended (pid=%d) !", const_cast<char *>(cDVD::getDVD()->DeviceName()), getpid());
+ active = running = false;
+ nav=NULL;
+ fflush(NULL);
++ /* Try to restore drive speed if it was previously changed */
++ if (DvdSetSpeedActive) {
++ DvdSetSpeed(const_cast<char *>(cDVD::getDVD()->DeviceName()), -1);
++ DvdSetSpeedActive = false;
++ }
+ return;
+ }
+ dvdnav_set_readahead_flag(nav, DVDSetup.ReadAHead);
+@@ -1203,6 +1305,12 @@
+ dvdnav_close(nav);
+ nav=NULL;
+
++ /* Try to restore drive speed if it was previously changed */
++ if (DvdSetSpeedActive) {
++ DvdSetSpeed(const_cast<char *>(cDVD::getDVD()->DeviceName()), -1);
++ DvdSetSpeedActive = false;
++ }
++
+ DEBUGDVD("%s:%d: input thread ended (pid=%d)\n", __FILE__, __LINE__, getpid());
+ fflush(NULL);
+ }
+diff -Nur dvd/player-dvd.h dvd.new/player-dvd.h
+--- dvd/player-dvd.h 2007-09-17 21:04:43.000000000 +0200
++++ dvd.new/player-dvd.h 2007-11-13 15:51:06.000000000 +0100
+@@ -168,6 +168,7 @@
+ static bool HasBitStreamOut;
+ static bool SoftDeviceOutActive; // currently used to switch for xine
+ static bool HasSoftDeviceOut; // currently used to switch for xine
++ static bool DvdSetSpeedActive;
+
+ //dvd stuff
+ int currButtonN;
+@@ -229,6 +230,7 @@
+ void DrawSPU();
+ void HideSPU();
+ void EmptySPU();
++ void DvdSetSpeed(const char*, int);
+
+ void Pause(void);
+ void Play(void);
+diff -Nur dvd/setup-dvd.c dvd.new/setup-dvd.c
+--- dvd/setup-dvd.c 2007-11-13 15:59:36.000000000 +0100
++++ dvd.new/setup-dvd.c 2007-11-13 15:51:06.000000000 +0100
+@@ -35,6 +35,7 @@
+ Gain = 4;
+
+ AC3dynrng = 0;
++ Speed = 0;
+ }
+
+ bool cDVDSetup::SetupParse(const char *Name, const char *Value)
+@@ -47,6 +48,7 @@
+ else if (!strcasecmp(Name, "ShowSubtitles")) ShowSubtitles = atoi(Value);
+ else if (!strcasecmp(Name, "HideMainMenu")) HideMainMenu = atoi(Value);
+ else if (!strcasecmp(Name, "ReadAHead")) ReadAHead = atoi(Value);
++ else if (!strcasecmp(Name, "Speed")) Speed = atoi(Value);
+ else if (!strcasecmp(Name, "Gain")) Gain = atoi(Value);
+ else if (!strcasecmp(Name, "AC3dynrng")) AC3dynrng = atoi(Value);
+ else
+@@ -73,6 +75,7 @@
+ Add(new cMenuEditBoolItem(tr("Setup.DVD$Display subtitles"), &data.ShowSubtitles));
+ Add(new cMenuEditBoolItem(tr("Setup.DVD$Hide Mainmenu Entry"), &data.HideMainMenu));
+ Add(new cMenuEditBoolItem(tr("Setup.DVD$ReadAHead"), &data.ReadAHead));
++ Add(new cMenuEditIntItem( tr("Setup.DVD$DVD-ROM Speed"), &data.Speed, 0, 4));
+ Add(new cMenuEditIntItem( tr("Setup.DVD$Gain (analog)"), &data.Gain, 0, 10));
+ Add(new cMenuEditBoolItem(tr("Setup.DVD$A52 DRC"), &data.AC3dynrng));
+ }
+@@ -87,6 +90,7 @@
+ SetupStore("ShowSubtitles", DVDSetup.ShowSubtitles );
+ SetupStore("HideMainMenu", DVDSetup.HideMainMenu );
+ SetupStore("ReadAHead", DVDSetup.ReadAHead );
++ SetupStore("Speed", DVDSetup.Speed );
+ SetupStore("Gain", DVDSetup.Gain );
+ SetupStore("AC3dynrng", DVDSetup.AC3dynrng );
+ }
+diff -Nur dvd/setup-dvd.h dvd.new/setup-dvd.h
+--- dvd/setup-dvd.h 2005-01-05 17:32:21.000000000 +0100
++++ dvd.new/setup-dvd.h 2007-11-13 15:51:06.000000000 +0100
+@@ -23,6 +23,7 @@
+ int HideMainMenu;
+ int ReadAHead;
+ int Gain;
++ int Speed;
+
+ // AC3 stuff
+ int AC3dynrng;
diff --git a/media-plugins/vdr-dvd/vdr-dvd-0.3.7_pre20071113-r1.ebuild b/media-plugins/vdr-dvd/vdr-dvd-0.3.7_pre20071113-r1.ebuild
new file mode 100644
index 000000000000..494180aba245
--- /dev/null
+++ b/media-plugins/vdr-dvd/vdr-dvd-0.3.7_pre20071113-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvd/vdr-dvd-0.3.7_pre20071113-r1.ebuild,v 1.1 2007/11/15 22:22:55 zzam Exp $
+
+inherit vdr-plugin
+
+MY_P="${PN}-cvs-${PV#*_pre}"
+S="${WORKDIR}/${MY_P#vdr-}"
+
+DESCRIPTION="VDR Plugin: DVD-Player"
+HOMEPAGE="http://sourceforge.net/projects/dvdplugin"
+SRC_URI="mirror://gentoo/${MY_P}.tar.bz2
+ http://dev.gentoo.org/~zzam/distfiles/${MY_P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.3.34
+ >=media-libs/libdvdcss-1.2.8
+ >=media-libs/libdvdnav-0.1.9
+ >=media-libs/libdvdread-0.9.4
+ >=media-libs/a52dec-0.7.4"
+
+RDEPEND="${DEPEND}"
+
+PATCHES="${FILESDIR}/dvd-a52drc-pre20071113.diff
+ ${FILESDIR}/dvdspeed-cvs-20071113-2.diff
+ ${FILESDIR}/gcc-4.x-compilefix.diff"