o Chase lib version bump in ogle port version 0.9.1

o Add a patch fix to correctly detect device files (e.g., /dev/acd0a)
  [1]

Submitted by:	Frerich Raabe <frerich.raabe@gmx.de> [1]
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2003-04-06 04:59:00 +00:00
parent 86691745f8
commit 272014545e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78392
2 changed files with 41 additions and 1 deletions

View file

@ -13,7 +13,7 @@ MASTER_SITES= http://okle.sourceforge.net/
MAINTAINER= lioux@FreeBSD.org
COMMENT= A KDE frontend to the Ogle DVD player
BUILD_DEPENDS= ${LOCALBASE}/lib/ogle/libdvdcontrol.so.9:${PORTSDIR}/multimedia/ogle
BUILD_DEPENDS= ${LOCALBASE}/lib/ogle/libdvdcontrol.so.10:${PORTSDIR}/multimedia/ogle
RUN_DEPENDS= ogle:${PORTSDIR}/multimedia/ogle
USE_AUTOCONF_VER= 253

View file

@ -0,0 +1,40 @@
--- src/okle_win.cpp.orig Tue Feb 25 11:19:50 2003
+++ src/okle_win.cpp Sun Apr 6 01:50:55 2003
@@ -34,6 +34,7 @@
#include <kstandarddirs.h>
#include <qtooltip.h>
#include <dcopclient.h>
+#include <kfileitem.h>
extern "C" {
#include <X11/Xlib.h>
@@ -519,16 +520,16 @@
void OkleWin::slotFileOpenDisc()
{
conf->setGroup("DVD");
- QString dvdp = conf->readEntry("dvdpath","/dev/dvd");
+ QString dvdp = conf->readEntry("dvdpath","/dev/acd0c");
- QFileInfo fi(dvdp);
- if(!fi.exists())
+ KFileItem fi(KFileItem::Unknown, KFileItem::Unknown, dvdp);
+ if(!QFile::exists(dvdp))
{
KMessageBox::error(0,QString(i18n("%1 does not exist!")).arg(dvdp),i18n("Error"));
return;
}
- if(!fi.isFile() && !fi.isSymLink())
+ if(!fi.isFile() && !fi.isLink())
{
KMessageBox::error(0,QString(i18n("%1 exists but is not a file or symlink!")).arg(dvdp),i18n("Error"));
return;
@@ -714,7 +715,7 @@
{
PrefsWin* prefs = new PrefsWin(this);
conf->setGroup("DVD");
- prefs->setDVDPath(conf->readEntry("dvdpath","/dev/dvd"));
+ prefs->setDVDPath(conf->readEntry("dvdpath","/dev/acd0c"));
prefs->setRegion(conf->readNumEntry("region",1));
if(prefs->exec())
{