View | Details | Raw Unified | Return to bug 229959
Collapse All | Expand All

(-)x11-fm/qtfm/Makefile (-1 / +2 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	qtfm
4
PORTNAME=	qtfm
5
DISTVERSION=	5.5
5
DISTVERSION=	5.5
6
PORTREEVISION=	1
6
CATEGORIES=	x11-fm
7
CATEGORIES=	x11-fm
7
MASTER_SITES=	http://www.qtfm.org/
8
MASTER_SITES=	http://www.qtfm.org/
8
9
Lines 12-18 Link Here
12
LICENSE=	GPLv2
13
LICENSE=	GPLv2
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
15
15
BROKEN=		fails to build
16
LIB_DEPENDS=	libinotify.so:devel/libinotify
16
17
17
USES=		dos2unix qmake qt:4
18
USES=		dos2unix qmake qt:4
18
DOS2UNIX_REGEX=	.*\.(h|cpp)
19
DOS2UNIX_REGEX=	.*\.(h|cpp)
(-)x11-fm/qtfm/files/patch-qtfm.pro (-3 / +12 lines)
Lines 1-6 Link Here
1
--- qtfm.pro.orig	2012-04-30 17:08:07.093692960 -0500
1
--- qtfm.pro.orig	2012-06-04 19:48:11.000000000 +0800
2
+++ qtfm.pro	2012-04-30 17:48:49.433021364 -0500
2
+++ qtfm.pro	2018-07-22 18:29:04.602178000 +0800
3
@@ -55,7 +55,7 @@ trans.files += translations/qtfm_da.qm \
3
@@ -31,7 +31,7 @@
4
 CONFIG += release warn_off thread
5
 RESOURCES += resources.qrc
6
 QT+= network
7
-LIBS += -lmagic
8
+LIBS += -lmagic -linotify
9
 
10
 TARGET = qtfm
11
 target.path = /usr/bin
12
@@ -56,7 +56,7 @@
4
                translations/qtfm_zh.qm \
13
                translations/qtfm_zh.qm \
5
                translations/qtfm_zh_TW.qm
14
                translations/qtfm_zh_TW.qm
6
 
15
 
(-)x11-fm/qtfm/files/patch-src_mymodel.h (-28 lines)
Lines 1-28 Link Here
1
--- src/mymodel.h.orig	2012-07-11 19:01:59.919235618 -0500
2
+++ src/mymodel.h	2012-07-11 19:03:41.246365243 -0500
3
@@ -84,10 +84,8 @@ public:
4
         bool realMimeTypes;
5
 
6
 public slots:
7
-        void notifyChange();
8
-        void notifyProcess(int eventID);
9
-        void eventTimeout();
10
-        void addWatcher(myModelItem* path);
11
+        void notifyChange(QString const& path);
12
+        void addToWatcher(myModelItem* path);
13
 
14
 signals:
15
         void dragDropPaste(const QMimeData * data, QString newPath, QStringList cutList);
16
@@ -116,11 +114,7 @@ private:
17
         QString currentRootPath;
18
         QFileIconProvider* iconFactory;
19
 
20
-        int inotifyFD;
21
-        QSocketNotifier *notifier;
22
-        QHash<int, QString> watchers;
23
-        QTimer eventTimer;
24
-        int lastEventID;
25
+        QFileSystemWatcher *watcher;
26
 };
27
 
28
 #endif // MYMODEL_H

Return to bug 229959