1 |
alexxy 11/01/26 20:28:37 |
2 |
|
3 |
Added: kdelibs-4.5.73-module-suffix.patch |
4 |
kdelibs-4.5.90-mimetypes.patch |
5 |
kdelibs-4.5.74-klauncher_mac.patch |
6 |
Log: |
7 |
[kde-base] Add KDE SC 4.6.0 |
8 |
|
9 |
(Portage version: 2.2.0_alpha19_p2/cvs/Linux x86_64, RepoMan options: --force) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 kde-base/kdelibs/files/kdelibs-4.5.73-module-suffix.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.5.73-module-suffix.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.5.73-module-suffix.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: kdelibs-4.5.73-module-suffix.patch |
18 |
=================================================================== |
19 |
diff -purN kdelibs-4.3.80.orig/config.h.cmake kdelibs-4.3.80/config.h.cmake |
20 |
--- kdelibs-4.3.80.orig/config.h.cmake 2009-10-26 05:15:52.000000000 -0400 |
21 |
+++ kdelibs-4.3.80/config.h.cmake 2009-12-14 16:56:15.667194286 -0500 |
22 |
@@ -12,6 +12,7 @@ |
23 |
#define kde_socklen_t socklen_t |
24 |
|
25 |
#define KDELIBSUFF "${KDELIBSUFF}" |
26 |
+#define KDE_MODULE_SUFFIX "${CMAKE_SHARED_MODULE_SUFFIX}" |
27 |
|
28 |
/****************************/ |
29 |
|
30 |
diff -purN kdelibs-4.3.80.orig/kdecore/util/klibloader.cpp kdelibs-4.3.80/kdecore/util/klibloader.cpp |
31 |
--- kdelibs-4.3.80.orig/kdecore/util/klibloader.cpp 2008-05-21 07:09:15.000000000 -0400 |
32 |
+++ kdelibs-4.3.80/kdecore/util/klibloader.cpp 2009-12-14 16:56:15.668194094 -0500 |
33 |
@@ -57,7 +57,7 @@ KLibLoader::~KLibLoader() |
34 |
{ |
35 |
} |
36 |
|
37 |
-extern QString makeLibName( const QString &libname ); |
38 |
+extern QString makeLibName( const QString &libname, const QString &type ); |
39 |
|
40 |
extern QString findLibrary(const QString &name, const KComponentData &cData); |
41 |
|
42 |
diff -purN kdelibs-4.3.80.orig/kdecore/util/klibrary.cpp kdelibs-4.3.80/kdecore/util/klibrary.cpp |
43 |
--- kdelibs-4.3.80.orig/kdecore/util/klibrary.cpp 2009-10-02 10:55:11.000000000 -0400 |
44 |
+++ kdelibs-4.3.80/kdecore/util/klibrary.cpp 2009-12-14 16:57:24.317056608 -0500 |
45 |
@@ -27,7 +27,7 @@ |
46 |
#include <kpluginfactory.h> |
47 |
#include <kdebug.h> |
48 |
|
49 |
-extern QString makeLibName( const QString &libname ); |
50 |
+extern QString makeLibName( const QString &libname, const QString &type ); |
51 |
extern QString findLibraryInternal(const QString &name, const KComponentData &cData); |
52 |
|
53 |
int kLibraryDebugArea() { |
54 |
diff -purN kdelibs-4.3.80.orig/kdecore/util/kpluginloader.cpp kdelibs-4.3.80/kdecore/util/kpluginloader.cpp |
55 |
--- kdelibs-4.3.80.orig/kdecore/util/kpluginloader.cpp 2009-10-15 12:35:55.000000000 -0400 |
56 |
+++ kdelibs-4.3.80/kdecore/util/kpluginloader.cpp 2009-12-14 16:57:58.533877037 -0500 |
57 |
@@ -27,6 +27,8 @@ |
58 |
#include "klibrary.h" |
59 |
#include <kdebug.h> |
60 |
|
61 |
+#include <config.h> |
62 |
+ |
63 |
#include <QtCore/QLibrary> |
64 |
#include <QtCore/QDir> |
65 |
#include <QtCore/QFileInfo> |
66 |
@@ -54,26 +54,38 @@ |
67 |
KLibrary *lib; |
68 |
}; |
69 |
|
70 |
-inline QString makeLibName( const QString &libname ) |
71 |
+inline QString makeLibName( const QString &libname, const QString &type ) |
72 |
{ |
73 |
#if defined(Q_OS_WIN) || defined(Q_OS_CYGWIN) |
74 |
if (!libname.endsWith(".dll")) |
75 |
return libname + ".dll"; |
76 |
return libname; |
77 |
-#else |
78 |
+#else // Q_OS_WIN |
79 |
int pos = libname.lastIndexOf(QLatin1Char('/')); |
80 |
if (pos < 0) |
81 |
pos = 0; |
82 |
if (libname.indexOf(QLatin1Char('.'), pos) < 0) { |
83 |
- const char* const extList[] = { ".so", ".dylib", ".bundle", ".sl" }; |
84 |
+#ifdef Q_OS_MAC |
85 |
+ // Libraries are always .dylib |
86 |
+ if (type.compare("lib") == 0) { |
87 |
+ return libname + ".dylib"; |
88 |
+ } |
89 |
+ // Modules mostly go .bundle but we'll use CMake smartness |
90 |
+ else { |
91 |
+ return libname + KDE_MODULE_SUFFIX; |
92 |
+ } |
93 |
+#else // Q_OS_MAC |
94 |
+ // Prefer the value specified by cmake for the target, fall back to standard |
95 |
+ const char* const extList[] = { KDE_MODULE_SUFFIX, ".so", ".sl" }; |
96 |
for (uint i = 0; i < sizeof(extList) / sizeof(*extList); ++i) { |
97 |
const QString lib = libname + QString::fromLatin1(extList[i]); |
98 |
if (QLibrary::isLibrary(lib)) |
99 |
return lib; |
100 |
} |
101 |
+#endif // Q_OS_MAC |
102 |
} |
103 |
return libname; |
104 |
-#endif |
105 |
+#endif // Q_OS_WIN |
106 |
} |
107 |
|
108 |
#ifdef Q_OS_WIN |
109 |
@@ -82,12 +94,13 @@ |
110 |
|
111 |
QString findLibraryInternal(const QString &name, const KComponentData &cData) |
112 |
{ |
113 |
- // Convert name to a valid platform libname |
114 |
- QString libname = makeLibName(name); |
115 |
QFileInfo fileinfo(name); |
116 |
bool hasPrefix = fileinfo.fileName().startsWith(QLatin1String("lib")); |
117 |
bool kdeinit = fileinfo.fileName().startsWith(QLatin1String("libkdeinit4_")); |
118 |
|
119 |
+ // Convert name to a valid platform libname depending on requested type. |
120 |
+ QString libname = makeLibName(name, kdeinit ? "lib" : "module"); |
121 |
+ |
122 |
if (hasPrefix && !kdeinit) |
123 |
kDebug(kLibraryDebugArea()) << "plugins should not have a 'lib' prefix:" << libname; |
124 |
#ifdef Q_CC_MSVC |
125 |
|
126 |
|
127 |
|
128 |
1.1 kde-base/kdelibs/files/kdelibs-4.5.90-mimetypes.patch |
129 |
|
130 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.5.90-mimetypes.patch?rev=1.1&view=markup |
131 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.5.90-mimetypes.patch?rev=1.1&content-type=text/plain |
132 |
|
133 |
Index: kdelibs-4.5.90-mimetypes.patch |
134 |
=================================================================== |
135 |
diff -ur kdelibs-4.5.90.orig/mimetypes/kde.xml kdelibs-4.5.90/mimetypes/kde.xml |
136 |
--- kdelibs-4.5.90.orig/mimetypes/kde.xml 2010-12-22 10:56:01.000000000 +0100 |
137 |
+++ kdelibs-4.5.90/mimetypes/kde.xml 2010-12-23 11:31:53.000000000 +0100 |
138 |
@@ -178,34 +178,6 @@ |
139 |
<glob pattern="*.abc"/> |
140 |
</mime-type> |
141 |
|
142 |
- <!-- all/ fake mime types --> |
143 |
- <mime-type type="all/all"> |
144 |
- <comment>all files and folders</comment> |
145 |
- </mime-type> |
146 |
- <mime-type type="all/allfiles"> |
147 |
- <comment>all files</comment> |
148 |
- </mime-type> |
149 |
- |
150 |
- <!-- uri/ fake mime types --> |
151 |
- <mime-type type="uri/mms"> |
152 |
- <comment>mms: URIs</comment> |
153 |
- </mime-type> |
154 |
- <mime-type type="uri/mmst"> |
155 |
- <comment>mmst: URIs</comment> |
156 |
- </mime-type> |
157 |
- <mime-type type="uri/mmsu"> |
158 |
- <comment>mmsu: URIs</comment> |
159 |
- </mime-type> |
160 |
- <mime-type type="uri/pnm"> |
161 |
- <comment>pnm: URIs</comment> |
162 |
- </mime-type> |
163 |
- <mime-type type="uri/rtspt"> |
164 |
- <comment>rtspt: URIs</comment> |
165 |
- </mime-type> |
166 |
- <mime-type type="uri/rtspu"> |
167 |
- <comment>rtspu: URIs</comment> |
168 |
- </mime-type> |
169 |
- |
170 |
<mime-type type="application/vnd.kde.fontspackage"> |
171 |
<sub-class-of type="application/zip"/> |
172 |
<comment>fonts package</comment> |
173 |
@@ -346,12 +318,6 @@ |
174 |
<glob pattern="*.icq"/> |
175 |
</mime-type> |
176 |
|
177 |
- <mime-type type="interface/x-winamp-skin"> |
178 |
- <sub-class-of type="application/zip"/> |
179 |
- <comment>compressed Winamp skin</comment> |
180 |
- <glob pattern="*.wsz"/> |
181 |
- </mime-type> |
182 |
- |
183 |
<mime-type type="video/x-ms-wmp"> <!-- fdo #19671, rejected because "not a file type, only a plugin type" --> |
184 |
<comment>Microsoft Media Format</comment> |
185 |
<sub-class-of type="video/x-ms-wmv"/> |
186 |
|
187 |
|
188 |
1.1 kde-base/kdelibs/files/kdelibs-4.5.74-klauncher_mac.patch |
189 |
|
190 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.5.74-klauncher_mac.patch?rev=1.1&view=markup |
191 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.5.74-klauncher_mac.patch?rev=1.1&content-type=text/plain |
192 |
|
193 |
Index: kdelibs-4.5.74-klauncher_mac.patch |
194 |
=================================================================== |
195 |
--- kinit/klauncher.cpp.orig 2010-11-06 23:35:26.000000000 +0300 |
196 |
+++ kinit/klauncher.cpp 2010-11-07 02:45:19.000000000 +0300 |
197 |
@@ -1151,6 +1151,12 @@ |
198 |
kDebug(7016) << "KLauncher: launching new slave " << name << " with protocol=" << protocol |
199 |
<< " args=" << arg_list << endl; |
200 |
|
201 |
+#ifdef Q_WS_MAC |
202 |
+ arg_list.prepend(KLibLoader::findLibrary(name)); |
203 |
+ name = KStandardDirs::locate("exe", QString::fromLatin1("kioslave")); |
204 |
+ arg_list.prepend(name); |
205 |
+#endif |
206 |
+ |
207 |
#ifdef Q_OS_UNIX |
208 |
if (mSlaveDebug == arg1) |
209 |
{ |
210 |
@@ -1161,8 +1167,10 @@ |
211 |
} |
212 |
if (mSlaveValgrind == arg1) |
213 |
{ |
214 |
+#ifdef Q_WS_MAC |
215 |
arg_list.prepend(::findLibrary(name, KGlobal::mainComponent())); |
216 |
arg_list.prepend(KStandardDirs::locate("exe", QString::fromLatin1("kioslave"))); |
217 |
+#endif |
218 |
name = QString::fromLatin1("valgrind"); |
219 |
if (!mSlaveValgrindSkin.isEmpty()) { |
220 |
arg_list.prepend(QLatin1String("--tool=") + mSlaveValgrindSkin); |