texmaker-5.0.3.patchset revision db5f1a50
1From 04446c1bd04d49422e4c04b058aa8c3fc88315bf Mon Sep 17 00:00:00 2001
2From: begasus <begasus@gmail.com>
3Date: Wed, 30 Oct 2019 11:01:35 +0000
4Subject: Add Haiku to the platforms
5
6
7diff --git a/pdfium/core/fxcrt/include/fx_system.h b/pdfium/core/fxcrt/include/fx_system.h
8index f4fc2e8..5c9aa84 100644
9--- a/pdfium/core/fxcrt/include/fx_system.h
10+++ b/pdfium/core/fxcrt/include/fx_system.h
11@@ -23,6 +23,7 @@
12 #define _FX_LINUX_DESKTOP_ 4
13 #define _FX_MACOSX_ 7
14 #define _FX_ANDROID_ 12
15+#define _FX_HAIKU_ 16
16 
17 // _FXM_PLATFORM_ values;
18 #define _FXM_PLATFORM_WINDOWS_ 1  // _FX_WIN32_DESKTOP_ or _FX_WIN64_DESKTOP_.
19@@ -46,6 +47,9 @@
20 #elif defined(__APPLE__)
21 #define _FX_OS_ _FX_MACOSX_
22 #define _FXM_PLATFORM_ _FXM_PLATFORM_APPLE_
23+#elif defined(__HAIKU__)
24+#define _FX_OS_ _FX_HAIKU_
25+#define _FXM_PLATFORM_ _FXM_PLATFORM_LINUX_
26 #endif
27 #endif  // _FX_OS_
28 
29-- 
302.23.0
31
32
33From 1610bcbdcbe9c42088273c1cb0d1f6b23e7188ca Mon Sep 17 00:00:00 2001
34From: begasus <begasus@gmail.com>
35Date: Wed, 30 Oct 2019 11:02:46 +0000
36Subject: Haiku doesn't have d_type
37
38
39diff --git a/pdfium/core/fxcrt/fx_basic_util.cpp b/pdfium/core/fxcrt/fx_basic_util.cpp
40index abd84a8..65c0551 100644
41--- a/pdfium/core/fxcrt/fx_basic_util.cpp
42+++ b/pdfium/core/fxcrt/fx_basic_util.cpp
43@@ -199,7 +199,9 @@ FX_BOOL FX_GetNextFile(void* handle,
44     return FALSE;
45   }
46   filename = de->d_name;
47+#ifndef __HAIKU__
48   bFolder = de->d_type == DT_DIR;
49+#endif
50   return TRUE;
51 #endif
52 }
53@@ -229,7 +231,9 @@ FX_BOOL FX_GetNextFile(void* handle,
54     return FALSE;
55   }
56   filename = CFX_WideString::FromLocal(de->d_name);
57+#ifndef __HAIKU__
58   bFolder = de->d_type == DT_DIR;
59+#endif
60   return TRUE;
61 #endif
62 }
63-- 
642.23.0
65
66
67From a57e6dea86fc92d48c66cdf907395927511538f2 Mon Sep 17 00:00:00 2001
68From: begasus <begasus@gmail.com>
69Date: Wed, 30 Oct 2019 11:04:00 +0000
70Subject: Fix utilities.path
71
72
73diff --git a/texmaker.pro b/texmaker.pro
74index 9cffdcc..ff37035 100644
75--- a/texmaker.pro
76+++ b/texmaker.pro
77@@ -1064,7 +1064,7 @@ DEFINES += AUTHORIZE_LINUX_QSTYLES
78 
79 
80 target.path = $${PREFIX}/bin
81-utilities.path = $${PREFIX}/share/texmaker
82+utilities.path = $${PREFIX}/data/texmaker
83 desktop.path = $${DESKTOPDIR}
84 icon.path = $${ICONDIR}
85 #not for openSUSE :
86-- 
872.23.0
88
89