1 |
commit: cbfe757296062cb178dc28f56e972f3182215169 |
2 |
Author: Binyamin Sagal <bensagal <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 27 12:58:24 2015 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 27 12:58:24 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=cbfe7572 |
7 |
|
8 |
Add monodevelop-5.9.0.431 |
9 |
|
10 |
dev-util/monodevelop/files/kill-gnome.patch | 369 +++++++++++++++++++++ |
11 |
.../monodevelop/files/kill-qtcurve-warning.patch | 12 + |
12 |
dev-util/monodevelop/metadata.xml | 2 + |
13 |
dev-util/monodevelop/monodevelop-5.9.0.431.ebuild | 120 +++++++ |
14 |
4 files changed, 503 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/monodevelop/files/kill-gnome.patch b/dev-util/monodevelop/files/kill-gnome.patch |
17 |
new file mode 100644 |
18 |
index 0000000..c7afbeb |
19 |
--- /dev/null |
20 |
+++ b/dev-util/monodevelop/files/kill-gnome.patch |
21 |
@@ -0,0 +1,369 @@ |
22 |
+diff -rupN monodevelop/configure monodevelop.nognome/configure |
23 |
+--- monodevelop/configure 2015-04-28 11:55:36.000000000 +0300 |
24 |
++++ monodevelop.nognome/configure 2015-05-27 12:40:15.073411758 +0300 |
25 |
+@@ -3711,224 +3711,6 @@ $as_echo "yes" >&6; } |
26 |
+ |
27 |
+ fi |
28 |
+ |
29 |
+- |
30 |
+- |
31 |
+-pkg_failed=no |
32 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME_SHARP" >&5 |
33 |
+-$as_echo_n "checking for GNOME_SHARP... " >&6; } |
34 |
+- |
35 |
+-if test -n "$GNOME_SHARP_CFLAGS"; then |
36 |
+- pkg_cv_GNOME_SHARP_CFLAGS="$GNOME_SHARP_CFLAGS" |
37 |
+- elif test -n "$PKG_CONFIG"; then |
38 |
+- if test -n "$PKG_CONFIG" && \ |
39 |
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 |
40 |
+- ($PKG_CONFIG --exists --print-errors "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 |
41 |
+- ac_status=$? |
42 |
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
43 |
+- test $ac_status = 0; }; then |
44 |
+- pkg_cv_GNOME_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` |
45 |
+- test "x$?" != "x0" && pkg_failed=yes |
46 |
+-else |
47 |
+- pkg_failed=yes |
48 |
+-fi |
49 |
+- else |
50 |
+- pkg_failed=untried |
51 |
+-fi |
52 |
+-if test -n "$GNOME_SHARP_LIBS"; then |
53 |
+- pkg_cv_GNOME_SHARP_LIBS="$GNOME_SHARP_LIBS" |
54 |
+- elif test -n "$PKG_CONFIG"; then |
55 |
+- if test -n "$PKG_CONFIG" && \ |
56 |
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 |
57 |
+- ($PKG_CONFIG --exists --print-errors "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 |
58 |
+- ac_status=$? |
59 |
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
60 |
+- test $ac_status = 0; }; then |
61 |
+- pkg_cv_GNOME_SHARP_LIBS=`$PKG_CONFIG --libs "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` |
62 |
+- test "x$?" != "x0" && pkg_failed=yes |
63 |
+-else |
64 |
+- pkg_failed=yes |
65 |
+-fi |
66 |
+- else |
67 |
+- pkg_failed=untried |
68 |
+-fi |
69 |
+- |
70 |
+- |
71 |
+- |
72 |
+-if test $pkg_failed = yes; then |
73 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
74 |
+-$as_echo "no" >&6; } |
75 |
+- |
76 |
+-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
77 |
+- _pkg_short_errors_supported=yes |
78 |
+-else |
79 |
+- _pkg_short_errors_supported=no |
80 |
+-fi |
81 |
+- if test $_pkg_short_errors_supported = yes; then |
82 |
+- GNOME_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` |
83 |
+- else |
84 |
+- GNOME_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` |
85 |
+- fi |
86 |
+- # Put the nasty error message in config.log where it belongs |
87 |
+- echo "$GNOME_SHARP_PKG_ERRORS" >&5 |
88 |
+- |
89 |
+- gnome_sharp=no |
90 |
+-elif test $pkg_failed = untried; then |
91 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
92 |
+-$as_echo "no" >&6; } |
93 |
+- gnome_sharp=no |
94 |
+-else |
95 |
+- GNOME_SHARP_CFLAGS=$pkg_cv_GNOME_SHARP_CFLAGS |
96 |
+- GNOME_SHARP_LIBS=$pkg_cv_GNOME_SHARP_LIBS |
97 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
98 |
+-$as_echo "yes" >&6; } |
99 |
+- gnome_sharp=yes |
100 |
+-fi |
101 |
+- |
102 |
+- |
103 |
+-pkg_failed=no |
104 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME_VFS_SHARP" >&5 |
105 |
+-$as_echo_n "checking for GNOME_VFS_SHARP... " >&6; } |
106 |
+- |
107 |
+-if test -n "$GNOME_VFS_SHARP_CFLAGS"; then |
108 |
+- pkg_cv_GNOME_VFS_SHARP_CFLAGS="$GNOME_VFS_SHARP_CFLAGS" |
109 |
+- elif test -n "$PKG_CONFIG"; then |
110 |
+- if test -n "$PKG_CONFIG" && \ |
111 |
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 |
112 |
+- ($PKG_CONFIG --exists --print-errors "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 |
113 |
+- ac_status=$? |
114 |
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
115 |
+- test $ac_status = 0; }; then |
116 |
+- pkg_cv_GNOME_VFS_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` |
117 |
+- test "x$?" != "x0" && pkg_failed=yes |
118 |
+-else |
119 |
+- pkg_failed=yes |
120 |
+-fi |
121 |
+- else |
122 |
+- pkg_failed=untried |
123 |
+-fi |
124 |
+-if test -n "$GNOME_VFS_SHARP_LIBS"; then |
125 |
+- pkg_cv_GNOME_VFS_SHARP_LIBS="$GNOME_VFS_SHARP_LIBS" |
126 |
+- elif test -n "$PKG_CONFIG"; then |
127 |
+- if test -n "$PKG_CONFIG" && \ |
128 |
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 |
129 |
+- ($PKG_CONFIG --exists --print-errors "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 |
130 |
+- ac_status=$? |
131 |
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
132 |
+- test $ac_status = 0; }; then |
133 |
+- pkg_cv_GNOME_VFS_SHARP_LIBS=`$PKG_CONFIG --libs "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` |
134 |
+- test "x$?" != "x0" && pkg_failed=yes |
135 |
+-else |
136 |
+- pkg_failed=yes |
137 |
+-fi |
138 |
+- else |
139 |
+- pkg_failed=untried |
140 |
+-fi |
141 |
+- |
142 |
+- |
143 |
+- |
144 |
+-if test $pkg_failed = yes; then |
145 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
146 |
+-$as_echo "no" >&6; } |
147 |
+- |
148 |
+-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
149 |
+- _pkg_short_errors_supported=yes |
150 |
+-else |
151 |
+- _pkg_short_errors_supported=no |
152 |
+-fi |
153 |
+- if test $_pkg_short_errors_supported = yes; then |
154 |
+- GNOME_VFS_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` |
155 |
+- else |
156 |
+- GNOME_VFS_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` |
157 |
+- fi |
158 |
+- # Put the nasty error message in config.log where it belongs |
159 |
+- echo "$GNOME_VFS_SHARP_PKG_ERRORS" >&5 |
160 |
+- |
161 |
+- gnome_vfs_sharp=no |
162 |
+-elif test $pkg_failed = untried; then |
163 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
164 |
+-$as_echo "no" >&6; } |
165 |
+- gnome_vfs_sharp=no |
166 |
+-else |
167 |
+- GNOME_VFS_SHARP_CFLAGS=$pkg_cv_GNOME_VFS_SHARP_CFLAGS |
168 |
+- GNOME_VFS_SHARP_LIBS=$pkg_cv_GNOME_VFS_SHARP_LIBS |
169 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
170 |
+-$as_echo "yes" >&6; } |
171 |
+- gnome_vfs_sharp=yes |
172 |
+-fi |
173 |
+- |
174 |
+- |
175 |
+-pkg_failed=no |
176 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF_SHARP" >&5 |
177 |
+-$as_echo_n "checking for GCONF_SHARP... " >&6; } |
178 |
+- |
179 |
+-if test -n "$GCONF_SHARP_CFLAGS"; then |
180 |
+- pkg_cv_GCONF_SHARP_CFLAGS="$GCONF_SHARP_CFLAGS" |
181 |
+- elif test -n "$PKG_CONFIG"; then |
182 |
+- if test -n "$PKG_CONFIG" && \ |
183 |
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 |
184 |
+- ($PKG_CONFIG --exists --print-errors "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 |
185 |
+- ac_status=$? |
186 |
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
187 |
+- test $ac_status = 0; }; then |
188 |
+- pkg_cv_GCONF_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` |
189 |
+- test "x$?" != "x0" && pkg_failed=yes |
190 |
+-else |
191 |
+- pkg_failed=yes |
192 |
+-fi |
193 |
+- else |
194 |
+- pkg_failed=untried |
195 |
+-fi |
196 |
+-if test -n "$GCONF_SHARP_LIBS"; then |
197 |
+- pkg_cv_GCONF_SHARP_LIBS="$GCONF_SHARP_LIBS" |
198 |
+- elif test -n "$PKG_CONFIG"; then |
199 |
+- if test -n "$PKG_CONFIG" && \ |
200 |
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 |
201 |
+- ($PKG_CONFIG --exists --print-errors "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 |
202 |
+- ac_status=$? |
203 |
+- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
204 |
+- test $ac_status = 0; }; then |
205 |
+- pkg_cv_GCONF_SHARP_LIBS=`$PKG_CONFIG --libs "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` |
206 |
+- test "x$?" != "x0" && pkg_failed=yes |
207 |
+-else |
208 |
+- pkg_failed=yes |
209 |
+-fi |
210 |
+- else |
211 |
+- pkg_failed=untried |
212 |
+-fi |
213 |
+- |
214 |
+- |
215 |
+- |
216 |
+-if test $pkg_failed = yes; then |
217 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
218 |
+-$as_echo "no" >&6; } |
219 |
+- |
220 |
+-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
221 |
+- _pkg_short_errors_supported=yes |
222 |
+-else |
223 |
+- _pkg_short_errors_supported=no |
224 |
+-fi |
225 |
+- if test $_pkg_short_errors_supported = yes; then |
226 |
+- GCONF_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` |
227 |
+- else |
228 |
+- GCONF_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` |
229 |
+- fi |
230 |
+- # Put the nasty error message in config.log where it belongs |
231 |
+- echo "$GCONF_SHARP_PKG_ERRORS" >&5 |
232 |
+- |
233 |
+- gconf_sharp=no |
234 |
+-elif test $pkg_failed = untried; then |
235 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
236 |
+-$as_echo "no" >&6; } |
237 |
+- gconf_sharp=no |
238 |
+-else |
239 |
+- GCONF_SHARP_CFLAGS=$pkg_cv_GCONF_SHARP_CFLAGS |
240 |
+- GCONF_SHARP_LIBS=$pkg_cv_GCONF_SHARP_LIBS |
241 |
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
242 |
+-$as_echo "yes" >&6; } |
243 |
+- gconf_sharp=yes |
244 |
+-fi |
245 |
+- |
246 |
+- |
247 |
+ gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`" |
248 |
+ |
249 |
+ |
250 |
+diff -rupN monodevelop/src/addins/GnomePlatform/GnomePlatform.cs monodevelop.nognome/src/addins/GnomePlatform/GnomePlatform.cs |
251 |
+--- monodevelop/src/addins/GnomePlatform/GnomePlatform.cs 2014-09-22 16:28:49.000000000 +0300 |
252 |
++++ monodevelop.nognome/src/addins/GnomePlatform/GnomePlatform.cs 2015-05-27 12:40:15.073411758 +0300 |
253 |
+@@ -26,7 +26,6 @@ |
254 |
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
255 |
+ // |
256 |
+ |
257 |
+-using Gnome; |
258 |
+ using MonoDevelop.Ide.Desktop; |
259 |
+ using System; |
260 |
+ using System.Collections.Generic; |
261 |
+@@ -40,46 +39,15 @@ namespace MonoDevelop.Platform |
262 |
+ { |
263 |
+ public class GnomePlatform : PlatformService |
264 |
+ { |
265 |
+- static bool useGio; |
266 |
+- |
267 |
+- Gnome.ThumbnailFactory thumbnailFactory = new Gnome.ThumbnailFactory (Gnome.ThumbnailSize.Normal); |
268 |
+- |
269 |
+ static GnomePlatform () |
270 |
+ { |
271 |
+ try { |
272 |
+ Gio.GetDefaultForType ("text/plain"); |
273 |
+- useGio = true; |
274 |
+ } catch (Exception ex) { |
275 |
+ Console.WriteLine (ex); |
276 |
+ } |
277 |
+- //apparently Gnome.Icon needs GnomeVFS initialized even when we're using GIO. |
278 |
+- Gnome.Vfs.Vfs.Initialize (); |
279 |
+- } |
280 |
+- |
281 |
+- DesktopApplication GetGnomeVfsDefaultApplication (string mimeType) |
282 |
+- { |
283 |
+- var app = Gnome.Vfs.Mime.GetDefaultApplication (mimeType); |
284 |
+- if (app != null) |
285 |
+- return (DesktopApplication) Marshal.PtrToStructure (app.Handle, typeof(DesktopApplication)); |
286 |
+- else |
287 |
+- return null; |
288 |
+- } |
289 |
+- |
290 |
+- IEnumerable<DesktopApplication> GetGnomeVfsApplications (string mimeType) |
291 |
+- { |
292 |
+- var def = GetGnomeVfsDefaultApplication (mimeType); |
293 |
+- var list = new List<DesktopApplication> (); |
294 |
+- var apps = Gnome.Vfs.Mime.GetAllApplications (mimeType); |
295 |
+- foreach (var app in apps) { |
296 |
+- var dap = (GnomeVfsApp) Marshal.PtrToStructure (app.Handle, typeof(GnomeVfsApp)); |
297 |
+- if (!string.IsNullOrEmpty (dap.Command) && !string.IsNullOrEmpty (dap.DisplayName) && !dap.Command.Contains ("monodevelop ")) { |
298 |
+- var isDefault = def != null && def.Id == dap.Command; |
299 |
+- list.Add (new GnomeDesktopApplication (dap.Command, dap.DisplayName, isDefault)); |
300 |
+- } |
301 |
+- } |
302 |
+- return list; |
303 |
+ } |
304 |
+- |
305 |
++ |
306 |
+ public override IEnumerable<DesktopApplication> GetApplications (string filename) |
307 |
+ { |
308 |
+ var mimeType = GetMimeTypeForUri (filename); |
309 |
+@@ -88,10 +56,7 @@ namespace MonoDevelop.Platform |
310 |
+ |
311 |
+ IEnumerable<DesktopApplication> GetApplicationsForMimeType (string mimeType) |
312 |
+ { |
313 |
+- if (useGio) |
314 |
+- return Gio.GetAllForType (mimeType); |
315 |
+- else |
316 |
+- return GetGnomeVfsApplications (mimeType); |
317 |
++ return Gio.GetAllForType (mimeType); |
318 |
+ } |
319 |
+ |
320 |
+ struct GnomeVfsApp { |
321 |
+@@ -100,10 +65,7 @@ namespace MonoDevelop.Platform |
322 |
+ |
323 |
+ protected override string OnGetMimeTypeDescription (string mt) |
324 |
+ { |
325 |
+- if (useGio) |
326 |
+- return Gio.GetMimeTypeDescription (mt); |
327 |
+- else |
328 |
+- return Gnome.Vfs.Mime.GetDescription (mt); |
329 |
++ return Gio.GetMimeTypeDescription (mt); |
330 |
+ } |
331 |
+ |
332 |
+ protected override string OnGetMimeTypeForUri (string uri) |
333 |
+@@ -111,12 +73,7 @@ namespace MonoDevelop.Platform |
334 |
+ if (uri == null) |
335 |
+ return null; |
336 |
+ |
337 |
+- if (useGio) { |
338 |
+- string mt = Gio.GetMimeTypeForUri (uri); |
339 |
+- if (mt != null) |
340 |
+- return mt; |
341 |
+- } |
342 |
+- return Gnome.Vfs.MimeType.GetMimeTypeForUri (ConvertFileNameToVFS (uri)); |
343 |
++ return Gio.GetMimeTypeForUri (uri); |
344 |
+ } |
345 |
+ |
346 |
+ protected override bool OnGetMimeTypeIsText (string mimeType) |
347 |
+@@ -127,20 +84,10 @@ namespace MonoDevelop.Platform |
348 |
+ return true; |
349 |
+ return base.OnGetMimeTypeIsText (mimeType); |
350 |
+ } |
351 |
+- |
352 |
+- |
353 |
+- public override void ShowUrl (string url) |
354 |
+- { |
355 |
+- Gnome.Url.Show (url); |
356 |
+- } |
357 |
+ |
358 |
+ public override string DefaultMonospaceFont { |
359 |
+ get { |
360 |
+- try { |
361 |
+- return (string) (new GConf.Client ().Get ("/desktop/gnome/interface/monospace_font_name")); |
362 |
+- } catch (Exception) { |
363 |
+- return "Monospace 11"; |
364 |
+- } |
365 |
++ return "Monospace 11"; |
366 |
+ } |
367 |
+ } |
368 |
+ |
369 |
+@@ -158,19 +105,9 @@ namespace MonoDevelop.Platform |
370 |
+ } else if (System.IO.File.Exists (filename)) { |
371 |
+ filename = EscapeFileName (filename); |
372 |
+ if (filename == null) |
373 |
+- return "gnome-fs-regular"; |
374 |
+- |
375 |
+- string icon = null; |
376 |
+- Gnome.IconLookupResultFlags result; |
377 |
+- try { |
378 |
+- icon = Gnome.Icon.LookupSync (IconTheme.Default, thumbnailFactory, filename, null, |
379 |
+- Gnome.IconLookupFlags.None, out result); |
380 |
+- } catch {} |
381 |
+- if (icon != null && icon.Length > 0) |
382 |
+- return icon; |
383 |
++ return "gnome-fs-regular"; |
384 |
+ } |
385 |
+- return "gnome-fs-regular"; |
386 |
+- |
387 |
++ return "gnome-fs-regular"; |
388 |
+ } |
389 |
+ |
390 |
+ protected override Xwt.Drawing.Image OnGetIconForFile (string filename) |
391 |
|
392 |
diff --git a/dev-util/monodevelop/files/kill-qtcurve-warning.patch b/dev-util/monodevelop/files/kill-qtcurve-warning.patch |
393 |
new file mode 100644 |
394 |
index 0000000..36eb66e |
395 |
--- /dev/null |
396 |
+++ b/dev-util/monodevelop/files/kill-qtcurve-warning.patch |
397 |
@@ -0,0 +1,12 @@ |
398 |
+diff -Naur monodevelop-5.0.1.org/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs monodevelop-5.0.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs |
399 |
+--- monodevelop-5.0.1.org/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs 2014-06-04 19:10:44.000000000 +0300 |
400 |
++++ monodevelop-5.0.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs 2014-12-29 15:28:43.590834768 +0200 |
401 |
+@@ -127,8 +127,6 @@ |
402 |
+ |
403 |
+ internal static bool IsBadGtkTheme (string theme) |
404 |
+ { |
405 |
+- if (string.Equals ("QtCurve", theme, StringComparison.OrdinalIgnoreCase)) |
406 |
+- return true; |
407 |
+ if (string.Equals ("oxygen-gtk", theme, StringComparison.OrdinalIgnoreCase)) |
408 |
+ return Environment.GetEnvironmentVariable ("OXYGEN_DISABLE_INNER_SHADOWS_HACK") != "1"; |
409 |
+ return false; |
410 |
|
411 |
diff --git a/dev-util/monodevelop/metadata.xml b/dev-util/monodevelop/metadata.xml |
412 |
index bbfd2d9..9314408 100644 |
413 |
--- a/dev-util/monodevelop/metadata.xml |
414 |
+++ b/dev-util/monodevelop/metadata.xml |
415 |
@@ -4,5 +4,7 @@ |
416 |
<herd>dotnet</herd> |
417 |
<use> |
418 |
<flag name='git'>Enable Git version control support</flag> |
419 |
+ <flag name='gnome'>Enable support gnome support (unsetting this flag is unsupported)</flag> |
420 |
+ <flag name='qtcurve'>Remove qtcurve check (unsupported)</flag> |
421 |
</use> |
422 |
</pkgmetadata> |
423 |
|
424 |
diff --git a/dev-util/monodevelop/monodevelop-5.9.0.431.ebuild b/dev-util/monodevelop/monodevelop-5.9.0.431.ebuild |
425 |
new file mode 100644 |
426 |
index 0000000..b8f6224 |
427 |
--- /dev/null |
428 |
+++ b/dev-util/monodevelop/monodevelop-5.9.0.431.ebuild |
429 |
@@ -0,0 +1,120 @@ |
430 |
+# Copyright 1999-2015 Gentoo Foundation |
431 |
+# Distributed under the terms of the GNU General Public License v2 |
432 |
+# $Header: $ |
433 |
+ |
434 |
+EAPI="5" |
435 |
+inherit fdo-mime gnome2-utils dotnet versionator eutils |
436 |
+ |
437 |
+DESCRIPTION="Integrated Development Environment for .NET" |
438 |
+HOMEPAGE="http://www.monodevelop.com/" |
439 |
+SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2 |
440 |
+ https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip |
441 |
+ https://www.nuget.org/api/v2/package/NUnit/2.6.3 -> NUnit.2.6.3.zip |
442 |
+ https://www.nuget.org/api/v2/package/NUnit.Runners/2.6.3 -> NUnit.Runners.2.6.3.zip |
443 |
+ https://www.nuget.org/api/v2/package/System.Web.Mvc.Extensions.Mvc.4/1.0.9 -> System.Web.Mvc.Extensions.Mvc.4.1.0.9.zip |
444 |
+ https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/5.2.2 -> Microsoft.AspNet.Mvc.5.2.2.zip |
445 |
+ https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.2 -> Microsoft.AspNet.Razor.3.2.2.zip |
446 |
+ https://www.nuget.org/api/v2/package/Microsoft.AspNet.WebPages/3.2.2 -> Microsoft.AspNet.WebPages.3.2.2.zip |
447 |
+ https://www.nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0 -> Microsoft.Web.Infrastructure.1.0.0.0.zip" |
448 |
+ |
449 |
+ |
450 |
+LICENSE="GPL-2" |
451 |
+SLOT="0" |
452 |
+KEYWORDS="~amd64 ~x86" |
453 |
+IUSE="+subversion +git doc +gnome qtcurve" |
454 |
+ |
455 |
+RDEPEND=">=dev-lang/mono-3.2.8 |
456 |
+ >=dev-dotnet/nuget-2.8.3 |
457 |
+ gnome? ( >=dev-dotnet/gnome-sharp-2.24.2-r1 ) |
458 |
+ >=dev-dotnet/gtk-sharp-2.12.21 |
459 |
+ >=dev-dotnet/mono-addins-1.0[gtk] |
460 |
+ doc? ( dev-util/mono-docbrowser ) |
461 |
+ >=dev-dotnet/xsp-2 |
462 |
+ dev-util/ctags |
463 |
+ sys-apps/dbus[X] |
464 |
+ subversion? ( dev-vcs/subversion ) |
465 |
+ !<dev-util/monodevelop-boo-$(get_version_component_range 1-2) |
466 |
+ !<dev-util/monodevelop-java-$(get_version_component_range 1-2) |
467 |
+ !<dev-util/monodevelop-database-$(get_version_component_range 1-2) |
468 |
+ !<dev-util/monodevelop-debugger-gdb-$(get_version_component_range 1-2) |
469 |
+ !<dev-util/monodevelop-debugger-mdb-$(get_version_component_range 1-2) |
470 |
+ !<dev-util/monodevelop-vala-$(get_version_component_range 1-2)" |
471 |
+DEPEND="${RDEPEND} |
472 |
+ dev-util/intltool |
473 |
+ virtual/pkgconfig |
474 |
+ sys-devel/gettext |
475 |
+ x11-misc/shared-mime-info |
476 |
+ x11-terms/xterm |
477 |
+ app-arch/unzip" |
478 |
+MAKEOPTS="${MAKEOPTS} -j1" #nowarn |
479 |
+S="${WORKDIR}/monodevelop-5.9" |
480 |
+ |
481 |
+src_unpack() { |
482 |
+ unpack "${P}".tar.bz2 NUnit-2.5.10.11092.zip |
483 |
+ mkdir monodevelop-5.9/packages || die |
484 |
+ cd monodevelop-5.9/packages || die |
485 |
+ |
486 |
+ for pkg in NUnit.2.6.3 \ |
487 |
+ NUnit.Runners.2.6.3 \ |
488 |
+ System.Web.Mvc.Extensions.Mvc.4.1.0.9 \ |
489 |
+ Microsoft.AspNet.Mvc.5.2.2 \ |
490 |
+ Microsoft.AspNet.Razor.3.2.2 \ |
491 |
+ Microsoft.AspNet.WebPages.3.2.2 \ |
492 |
+ Microsoft.Web.Infrastructure.1.0.0.0 |
493 |
+ do |
494 |
+ mkdir $pkg || die |
495 |
+ cd $pkg || die |
496 |
+ unpack $pkg.zip |
497 |
+ cd .. || die |
498 |
+ done |
499 |
+} |
500 |
+ |
501 |
+src_prepare() { |
502 |
+ # Remove the git rev-parse (changelog?) |
503 |
+ sed -i '/<Exec.*rev-parse/ d' "${S}/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj" || die |
504 |
+ # Set specific_version to prevent binding problem |
505 |
+ # when gtk#-3 is installed alongside gtk#-2 |
506 |
+ find "${S}" -name '*.csproj' -exec sed -i 's#<SpecificVersion>.*</SpecificVersion>#<SpecificVersion>True</SpecificVersion>#' {} + || die |
507 |
+ |
508 |
+ #copy missing binaries |
509 |
+ cp -fR "${WORKDIR}"/NUnit-2.5.10.11092/bin/net-2.0/framework/* "${S}"/external/cecil/Test/libs/nunit-2.5.10/ || die |
510 |
+ |
511 |
+ #fix ASP.Net |
512 |
+ epatch "${FILESDIR}/5.7-downgrade_to_mvc3.patch" |
513 |
+ # fix for https://github.com/gentoo/dotnet/issues/42 |
514 |
+ epatch "${FILESDIR}/aspnet-template-references-fix.patch" |
515 |
+ use gnome || epatch "${FILESDIR}/kill-gnome.patch" |
516 |
+ use qtcurve && epatch "${FILESDIR}/kill-qtcurve-warning.patch" |
517 |
+} |
518 |
+ |
519 |
+src_configure() { |
520 |
+ # env vars are added as the fix for https://github.com/gentoo/dotnet/issues/29 |
521 |
+ MCS=/usr/bin/dmcs CSC=/usr/bin/dmcs GMCS=/usr/bin/dmcs econf \ |
522 |
+ --disable-update-mimedb \ |
523 |
+ --disable-update-desktopdb \ |
524 |
+ --enable-monoextensions \ |
525 |
+ --enable-gnomeplatform \ |
526 |
+ $(use_enable subversion) \ |
527 |
+ $(use_enable git) |
528 |
+ # https://github.com/mrward/xdt/issues/4 |
529 |
+ # Main.sln file is created on the fly during econf |
530 |
+ epatch -p2 "${FILESDIR}/mrward-xdt-issue-4.patch" |
531 |
+ # fix of https://github.com/gentoo/dotnet/issues/38 |
532 |
+ sed -i -E -e 's#(EXE_PATH=")(.*)(/lib/monodevelop/bin/MonoDevelop.exe")#\1'${EPREFIX}'/usr\3#g' "${S}/monodevelop" || die |
533 |
+} |
534 |
+ |
535 |
+pkg_preinst() { |
536 |
+ gnome2_icon_savelist |
537 |
+} |
538 |
+ |
539 |
+pkg_postinst() { |
540 |
+ gnome2_icon_cache_update |
541 |
+ fdo-mime_mime_database_update |
542 |
+ fdo-mime_desktop_database_update |
543 |
+} |
544 |
+ |
545 |
+pkg_postrm() { |
546 |
+ gnome2_icon_cache_update |
547 |
+ fdo-mime_mime_database_update |
548 |
+ fdo-mime_desktop_database_update |
549 |
+} |