public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/dotnet:master commit in: dev-util/monodevelop/files/, dev-util/monodevelop/
@ 2015-05-28  4:26 Heather Cynede
  0 siblings, 0 replies; 3+ messages in thread
From: Heather Cynede @ 2015-05-28  4:26 UTC (permalink / raw
  To: gentoo-commits

commit:     cbfe757296062cb178dc28f56e972f3182215169
Author:     Binyamin Sagal <bensagal <AT> gmail <DOT> com>
AuthorDate: Wed May 27 12:58:24 2015 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Wed May 27 12:58:24 2015 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=cbfe7572

Add monodevelop-5.9.0.431

 dev-util/monodevelop/files/kill-gnome.patch        | 369 +++++++++++++++++++++
 .../monodevelop/files/kill-qtcurve-warning.patch   |  12 +
 dev-util/monodevelop/metadata.xml                  |   2 +
 dev-util/monodevelop/monodevelop-5.9.0.431.ebuild  | 120 +++++++
 4 files changed, 503 insertions(+)

diff --git a/dev-util/monodevelop/files/kill-gnome.patch b/dev-util/monodevelop/files/kill-gnome.patch
new file mode 100644
index 0000000..c7afbeb
--- /dev/null
+++ b/dev-util/monodevelop/files/kill-gnome.patch
@@ -0,0 +1,369 @@
+diff -rupN monodevelop/configure monodevelop.nognome/configure
+--- monodevelop/configure	2015-04-28 11:55:36.000000000 +0300
++++ monodevelop.nognome/configure	2015-05-27 12:40:15.073411758 +0300
+@@ -3711,224 +3711,6 @@ $as_echo "yes" >&6; }
+ 
+ fi
+ 
+-
+-
+-pkg_failed=no
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME_SHARP" >&5
+-$as_echo_n "checking for GNOME_SHARP... " >&6; }
+-
+-if test -n "$GNOME_SHARP_CFLAGS"; then
+-    pkg_cv_GNOME_SHARP_CFLAGS="$GNOME_SHARP_CFLAGS"
+- elif test -n "$PKG_CONFIG"; then
+-    if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5
+-  ac_status=$?
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+-  test $ac_status = 0; }; then
+-  pkg_cv_GNOME_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null`
+-		      test "x$?" != "x0" && pkg_failed=yes
+-else
+-  pkg_failed=yes
+-fi
+- else
+-    pkg_failed=untried
+-fi
+-if test -n "$GNOME_SHARP_LIBS"; then
+-    pkg_cv_GNOME_SHARP_LIBS="$GNOME_SHARP_LIBS"
+- elif test -n "$PKG_CONFIG"; then
+-    if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5
+-  ac_status=$?
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+-  test $ac_status = 0; }; then
+-  pkg_cv_GNOME_SHARP_LIBS=`$PKG_CONFIG --libs "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null`
+-		      test "x$?" != "x0" && pkg_failed=yes
+-else
+-  pkg_failed=yes
+-fi
+- else
+-    pkg_failed=untried
+-fi
+-
+-
+-
+-if test $pkg_failed = yes; then
+-   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-
+-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+-        _pkg_short_errors_supported=yes
+-else
+-        _pkg_short_errors_supported=no
+-fi
+-        if test $_pkg_short_errors_supported = yes; then
+-	        GNOME_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1`
+-        else
+-	        GNOME_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1`
+-        fi
+-	# Put the nasty error message in config.log where it belongs
+-	echo "$GNOME_SHARP_PKG_ERRORS" >&5
+-
+-	gnome_sharp=no
+-elif test $pkg_failed = untried; then
+-     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-	gnome_sharp=no
+-else
+-	GNOME_SHARP_CFLAGS=$pkg_cv_GNOME_SHARP_CFLAGS
+-	GNOME_SHARP_LIBS=$pkg_cv_GNOME_SHARP_LIBS
+-        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-$as_echo "yes" >&6; }
+-	gnome_sharp=yes
+-fi
+-
+-
+-pkg_failed=no
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME_VFS_SHARP" >&5
+-$as_echo_n "checking for GNOME_VFS_SHARP... " >&6; }
+-
+-if test -n "$GNOME_VFS_SHARP_CFLAGS"; then
+-    pkg_cv_GNOME_VFS_SHARP_CFLAGS="$GNOME_VFS_SHARP_CFLAGS"
+- elif test -n "$PKG_CONFIG"; then
+-    if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5
+-  ac_status=$?
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+-  test $ac_status = 0; }; then
+-  pkg_cv_GNOME_VFS_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null`
+-		      test "x$?" != "x0" && pkg_failed=yes
+-else
+-  pkg_failed=yes
+-fi
+- else
+-    pkg_failed=untried
+-fi
+-if test -n "$GNOME_VFS_SHARP_LIBS"; then
+-    pkg_cv_GNOME_VFS_SHARP_LIBS="$GNOME_VFS_SHARP_LIBS"
+- elif test -n "$PKG_CONFIG"; then
+-    if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5
+-  ac_status=$?
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+-  test $ac_status = 0; }; then
+-  pkg_cv_GNOME_VFS_SHARP_LIBS=`$PKG_CONFIG --libs "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null`
+-		      test "x$?" != "x0" && pkg_failed=yes
+-else
+-  pkg_failed=yes
+-fi
+- else
+-    pkg_failed=untried
+-fi
+-
+-
+-
+-if test $pkg_failed = yes; then
+-   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-
+-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+-        _pkg_short_errors_supported=yes
+-else
+-        _pkg_short_errors_supported=no
+-fi
+-        if test $_pkg_short_errors_supported = yes; then
+-	        GNOME_VFS_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1`
+-        else
+-	        GNOME_VFS_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1`
+-        fi
+-	# Put the nasty error message in config.log where it belongs
+-	echo "$GNOME_VFS_SHARP_PKG_ERRORS" >&5
+-
+-	gnome_vfs_sharp=no
+-elif test $pkg_failed = untried; then
+-     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-	gnome_vfs_sharp=no
+-else
+-	GNOME_VFS_SHARP_CFLAGS=$pkg_cv_GNOME_VFS_SHARP_CFLAGS
+-	GNOME_VFS_SHARP_LIBS=$pkg_cv_GNOME_VFS_SHARP_LIBS
+-        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-$as_echo "yes" >&6; }
+-	gnome_vfs_sharp=yes
+-fi
+-
+-
+-pkg_failed=no
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF_SHARP" >&5
+-$as_echo_n "checking for GCONF_SHARP... " >&6; }
+-
+-if test -n "$GCONF_SHARP_CFLAGS"; then
+-    pkg_cv_GCONF_SHARP_CFLAGS="$GCONF_SHARP_CFLAGS"
+- elif test -n "$PKG_CONFIG"; then
+-    if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5
+-  ac_status=$?
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+-  test $ac_status = 0; }; then
+-  pkg_cv_GCONF_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null`
+-		      test "x$?" != "x0" && pkg_failed=yes
+-else
+-  pkg_failed=yes
+-fi
+- else
+-    pkg_failed=untried
+-fi
+-if test -n "$GCONF_SHARP_LIBS"; then
+-    pkg_cv_GCONF_SHARP_LIBS="$GCONF_SHARP_LIBS"
+- elif test -n "$PKG_CONFIG"; then
+-    if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5
+-  ac_status=$?
+-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+-  test $ac_status = 0; }; then
+-  pkg_cv_GCONF_SHARP_LIBS=`$PKG_CONFIG --libs "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null`
+-		      test "x$?" != "x0" && pkg_failed=yes
+-else
+-  pkg_failed=yes
+-fi
+- else
+-    pkg_failed=untried
+-fi
+-
+-
+-
+-if test $pkg_failed = yes; then
+-   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-
+-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+-        _pkg_short_errors_supported=yes
+-else
+-        _pkg_short_errors_supported=no
+-fi
+-        if test $_pkg_short_errors_supported = yes; then
+-	        GCONF_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1`
+-        else
+-	        GCONF_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1`
+-        fi
+-	# Put the nasty error message in config.log where it belongs
+-	echo "$GCONF_SHARP_PKG_ERRORS" >&5
+-
+-	gconf_sharp=no
+-elif test $pkg_failed = untried; then
+-     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
+-	gconf_sharp=no
+-else
+-	GCONF_SHARP_CFLAGS=$pkg_cv_GCONF_SHARP_CFLAGS
+-	GCONF_SHARP_LIBS=$pkg_cv_GCONF_SHARP_LIBS
+-        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-$as_echo "yes" >&6; }
+-	gconf_sharp=yes
+-fi
+-
+-
+ gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`"
+ 
+ 
+diff -rupN monodevelop/src/addins/GnomePlatform/GnomePlatform.cs monodevelop.nognome/src/addins/GnomePlatform/GnomePlatform.cs
+--- monodevelop/src/addins/GnomePlatform/GnomePlatform.cs	2014-09-22 16:28:49.000000000 +0300
++++ monodevelop.nognome/src/addins/GnomePlatform/GnomePlatform.cs	2015-05-27 12:40:15.073411758 +0300
+@@ -26,7 +26,6 @@
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ //
+ 
+-using Gnome;
+ using MonoDevelop.Ide.Desktop;
+ using System;
+ using System.Collections.Generic;
+@@ -40,46 +39,15 @@ namespace MonoDevelop.Platform
+ {
+ 	public class GnomePlatform : PlatformService
+ 	{
+-		static bool useGio;
+-
+-		Gnome.ThumbnailFactory thumbnailFactory = new Gnome.ThumbnailFactory (Gnome.ThumbnailSize.Normal);
+-
+ 		static GnomePlatform ()
+ 		{
+ 			try {
+ 				Gio.GetDefaultForType ("text/plain");
+-				useGio = true;
+ 			} catch (Exception ex) {
+ 				Console.WriteLine (ex);
+ 			}
+-			//apparently Gnome.Icon needs GnomeVFS initialized even when we're using GIO.
+-			Gnome.Vfs.Vfs.Initialize ();
+-		}
+-		
+-		DesktopApplication GetGnomeVfsDefaultApplication (string mimeType)
+-		{
+-			var app = Gnome.Vfs.Mime.GetDefaultApplication (mimeType);
+-			if (app != null)
+-				return (DesktopApplication) Marshal.PtrToStructure (app.Handle, typeof(DesktopApplication));
+-			else
+-				return null;
+-		}
+-		
+-		IEnumerable<DesktopApplication> GetGnomeVfsApplications (string mimeType)
+-		{
+-			var def = GetGnomeVfsDefaultApplication (mimeType);
+-			var list = new List<DesktopApplication> ();
+-			var apps = Gnome.Vfs.Mime.GetAllApplications (mimeType);
+-			foreach (var app in apps) {
+-				var dap = (GnomeVfsApp) Marshal.PtrToStructure (app.Handle, typeof(GnomeVfsApp));
+-				if (!string.IsNullOrEmpty (dap.Command) && !string.IsNullOrEmpty (dap.DisplayName) && !dap.Command.Contains ("monodevelop ")) {
+-					var isDefault = def != null && def.Id == dap.Command;
+-					list.Add (new GnomeDesktopApplication (dap.Command, dap.DisplayName, isDefault));
+-				}
+-			}
+-			return list;
+ 		}
+-		
++
+ 		public override IEnumerable<DesktopApplication> GetApplications (string filename)
+ 		{
+ 			var mimeType = GetMimeTypeForUri (filename);
+@@ -88,10 +56,7 @@ namespace MonoDevelop.Platform
+ 
+ 		IEnumerable<DesktopApplication> GetApplicationsForMimeType (string mimeType)
+ 		{
+-			if (useGio)
+-				return Gio.GetAllForType (mimeType);
+-			else
+-				return GetGnomeVfsApplications (mimeType);
++			return Gio.GetAllForType (mimeType);
+ 		}
+ 		
+ 		struct GnomeVfsApp {
+@@ -100,10 +65,7 @@ namespace MonoDevelop.Platform
+ 
+ 		protected override string OnGetMimeTypeDescription (string mt)
+ 		{
+-			if (useGio)
+-				return Gio.GetMimeTypeDescription (mt);
+-			else
+-				return Gnome.Vfs.Mime.GetDescription (mt);
++			return Gio.GetMimeTypeDescription (mt);
+ 		}
+ 
+ 		protected override string OnGetMimeTypeForUri (string uri)
+@@ -111,12 +73,7 @@ namespace MonoDevelop.Platform
+ 			if (uri == null)
+ 				return null;
+ 			
+-			if (useGio) {
+-				string mt = Gio.GetMimeTypeForUri (uri);
+-				if (mt != null)
+-					return mt;
+-			}
+-			return Gnome.Vfs.MimeType.GetMimeTypeForUri (ConvertFileNameToVFS (uri));
++			return Gio.GetMimeTypeForUri (uri);
+ 		}
+ 		
+ 		protected override bool OnGetMimeTypeIsText (string mimeType)
+@@ -127,20 +84,10 @@ namespace MonoDevelop.Platform
+ 					return true;
+ 			return base.OnGetMimeTypeIsText (mimeType);
+ 		}
+-
+-
+-		public override void ShowUrl (string url)
+-		{
+-			Gnome.Url.Show (url);
+-		}
+ 		
+ 		public override string DefaultMonospaceFont {
+ 			get {
+-				try {
+-					return (string) (new GConf.Client ().Get ("/desktop/gnome/interface/monospace_font_name"));
+-				} catch (Exception) {
+-					return "Monospace 11";
+-				}
++				return "Monospace 11";
+ 			}
+ 		}
+ 		
+@@ -158,19 +105,9 @@ namespace MonoDevelop.Platform
+ 			} else if (System.IO.File.Exists (filename)) {
+ 				filename = EscapeFileName (filename);
+ 				if (filename == null)
+-					return "gnome-fs-regular";
+-				
+-				string icon = null;
+-				Gnome.IconLookupResultFlags result;
+-				try {
+-					icon = Gnome.Icon.LookupSync (IconTheme.Default, thumbnailFactory, filename, null, 
+-					                              Gnome.IconLookupFlags.None, out result);
+-				} catch {}
+-				if (icon != null && icon.Length > 0)
+-					return icon;
++					return "gnome-fs-regular";				
+ 			}			
+-			return "gnome-fs-regular";
+-			
++			return "gnome-fs-regular";			
+ 		}
+ 		
+ 		protected override Xwt.Drawing.Image OnGetIconForFile (string filename)

diff --git a/dev-util/monodevelop/files/kill-qtcurve-warning.patch b/dev-util/monodevelop/files/kill-qtcurve-warning.patch
new file mode 100644
index 0000000..36eb66e
--- /dev/null
+++ b/dev-util/monodevelop/files/kill-qtcurve-warning.patch
@@ -0,0 +1,12 @@
+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
+--- monodevelop-5.0.1.org/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs	2014-06-04 19:10:44.000000000 +0300
++++ monodevelop-5.0.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs	2014-12-29 15:28:43.590834768 +0200
+@@ -127,8 +127,6 @@
+ 
+ 		internal static bool IsBadGtkTheme (string theme)
+ 		{
+-			if (string.Equals ("QtCurve", theme, StringComparison.OrdinalIgnoreCase))
+-				return true;
+ 			if (string.Equals ("oxygen-gtk", theme, StringComparison.OrdinalIgnoreCase))
+ 				return Environment.GetEnvironmentVariable ("OXYGEN_DISABLE_INNER_SHADOWS_HACK") != "1";
+ 			return false;

diff --git a/dev-util/monodevelop/metadata.xml b/dev-util/monodevelop/metadata.xml
index bbfd2d9..9314408 100644
--- a/dev-util/monodevelop/metadata.xml
+++ b/dev-util/monodevelop/metadata.xml
@@ -4,5 +4,7 @@
   <herd>dotnet</herd>
   <use>
 	<flag name='git'>Enable Git version control support</flag>
+	<flag name='gnome'>Enable support gnome support (unsetting this flag is unsupported)</flag>
+	<flag name='qtcurve'>Remove qtcurve check (unsupported)</flag>
   </use>
 </pkgmetadata>

diff --git a/dev-util/monodevelop/monodevelop-5.9.0.431.ebuild b/dev-util/monodevelop/monodevelop-5.9.0.431.ebuild
new file mode 100644
index 0000000..b8f6224
--- /dev/null
+++ b/dev-util/monodevelop/monodevelop-5.9.0.431.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+inherit fdo-mime gnome2-utils dotnet versionator eutils
+
+DESCRIPTION="Integrated Development Environment for .NET"
+HOMEPAGE="http://www.monodevelop.com/"
+SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2
+	https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip
+	https://www.nuget.org/api/v2/package/NUnit/2.6.3 -> NUnit.2.6.3.zip
+	https://www.nuget.org/api/v2/package/NUnit.Runners/2.6.3  -> NUnit.Runners.2.6.3.zip
+	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
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/5.2.2 -> Microsoft.AspNet.Mvc.5.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.2 -> Microsoft.AspNet.Razor.3.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.WebPages/3.2.2 -> Microsoft.AspNet.WebPages.3.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0 -> Microsoft.Web.Infrastructure.1.0.0.0.zip"
+ 		 
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+subversion +git doc +gnome qtcurve"
+
+RDEPEND=">=dev-lang/mono-3.2.8
+	>=dev-dotnet/nuget-2.8.3
+	gnome? ( >=dev-dotnet/gnome-sharp-2.24.2-r1 )
+	>=dev-dotnet/gtk-sharp-2.12.21
+	>=dev-dotnet/mono-addins-1.0[gtk]
+	doc? ( dev-util/mono-docbrowser )
+	>=dev-dotnet/xsp-2
+	dev-util/ctags
+	sys-apps/dbus[X]
+	subversion? ( dev-vcs/subversion )
+	!<dev-util/monodevelop-boo-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-java-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-database-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-debugger-gdb-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-debugger-mdb-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-vala-$(get_version_component_range 1-2)"
+DEPEND="${RDEPEND}
+	dev-util/intltool
+	virtual/pkgconfig
+	sys-devel/gettext
+	x11-misc/shared-mime-info
+	x11-terms/xterm
+	app-arch/unzip"
+MAKEOPTS="${MAKEOPTS} -j1" #nowarn
+S="${WORKDIR}/monodevelop-5.9"
+
+src_unpack() {
+	unpack "${P}".tar.bz2  NUnit-2.5.10.11092.zip
+	mkdir monodevelop-5.9/packages || die
+	cd monodevelop-5.9/packages || die
+	
+	for pkg in	NUnit.2.6.3 \
+				NUnit.Runners.2.6.3 \
+				System.Web.Mvc.Extensions.Mvc.4.1.0.9 \
+				Microsoft.AspNet.Mvc.5.2.2 \
+				Microsoft.AspNet.Razor.3.2.2 \
+				Microsoft.AspNet.WebPages.3.2.2 \
+				Microsoft.Web.Infrastructure.1.0.0.0
+	do
+		mkdir $pkg || die
+		cd $pkg || die
+		unpack $pkg.zip
+		cd .. || die
+	done
+}
+
+src_prepare() {
+	# Remove the git rev-parse (changelog?)
+	sed -i '/<Exec.*rev-parse/ d' "${S}/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj" || die
+	# Set specific_version to prevent binding problem
+	# when gtk#-3 is installed alongside gtk#-2
+	find "${S}" -name '*.csproj' -exec sed -i 's#<SpecificVersion>.*</SpecificVersion>#<SpecificVersion>True</SpecificVersion>#' {} + || die
+
+	#copy missing binaries
+	cp -fR "${WORKDIR}"/NUnit-2.5.10.11092/bin/net-2.0/framework/* "${S}"/external/cecil/Test/libs/nunit-2.5.10/ || die
+	
+	#fix ASP.Net
+	epatch "${FILESDIR}/5.7-downgrade_to_mvc3.patch"
+	# fix for https://github.com/gentoo/dotnet/issues/42
+	epatch "${FILESDIR}/aspnet-template-references-fix.patch"
+	use gnome || epatch "${FILESDIR}/kill-gnome.patch"
+	use qtcurve && epatch "${FILESDIR}/kill-qtcurve-warning.patch"
+}
+
+src_configure() {
+	# env vars are added as the fix for https://github.com/gentoo/dotnet/issues/29
+	MCS=/usr/bin/dmcs CSC=/usr/bin/dmcs GMCS=/usr/bin/dmcs econf \
+		--disable-update-mimedb \
+		--disable-update-desktopdb \
+		--enable-monoextensions \
+		--enable-gnomeplatform \
+		$(use_enable subversion) \
+		$(use_enable git)
+	# https://github.com/mrward/xdt/issues/4
+	# Main.sln file is created on the fly during econf
+	epatch -p2 "${FILESDIR}/mrward-xdt-issue-4.patch"
+	# fix of https://github.com/gentoo/dotnet/issues/38
+	sed -i -E -e 's#(EXE_PATH=")(.*)(/lib/monodevelop/bin/MonoDevelop.exe")#\1'${EPREFIX}'/usr\3#g' "${S}/monodevelop" || die
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postinst() {
+	gnome2_icon_cache_update
+	fdo-mime_mime_database_update
+	fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+	gnome2_icon_cache_update
+	fdo-mime_mime_database_update
+	fdo-mime_desktop_database_update
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/dotnet:master commit in: dev-util/monodevelop/files/, dev-util/monodevelop/
@ 2015-07-20 12:56 Heather Cynede
  0 siblings, 0 replies; 3+ messages in thread
From: Heather Cynede @ 2015-07-20 12:56 UTC (permalink / raw
  To: gentoo-commits

commit:     f79d6b085ab8c35f299b0ae06b9026e5f396f7c3
Author:     Tomáš Chaloupka <chalucha <AT> gmail <DOT> com>
AuthorDate: Sat Jul 18 18:12:12 2015 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Sat Jul 18 18:12:12 2015 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f79d6b08

Added ebuild for monodevelop-5.9.5.5 (github)

 dev-util/monodevelop/files/5.9.5-kill-gnome.patch  | 153 +++++++++++++++++++++
 .../monodevelop/files/5.9.5-skip_merged_tar.patch  |  11 ++
 dev-util/monodevelop/monodevelop-5.9.5.5.ebuild    | 141 +++++++++++++++++++
 3 files changed, 305 insertions(+)

diff --git a/dev-util/monodevelop/files/5.9.5-kill-gnome.patch b/dev-util/monodevelop/files/5.9.5-kill-gnome.patch
new file mode 100644
index 0000000..b9b07d1
--- /dev/null
+++ b/dev-util/monodevelop/files/5.9.5-kill-gnome.patch
@@ -0,0 +1,153 @@
+diff -rupN main.original/configure.in main/configure.in
+--- main.original/configure.in	2015-07-18 14:09:27.934561734 +0200
++++ main/configure.in	2015-07-18 14:11:02.182316682 +0200
+@@ -133,13 +133,6 @@ PKG_CHECK_MODULES(MONODOC, monodoc >= $M
+ AC_SUBST(MONODOC_LIBS)
+ 
+ dnl soft dependencies
+-PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION, [gnome_sharp=yes], [gnome_sharp=no])
+-AC_SUBST(GNOME_SHARP_LIBS)
+-PKG_CHECK_MODULES(GNOME_VFS_SHARP, gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION, [gnome_vfs_sharp=yes], [gnome_vfs_sharp=no])
+-AC_SUBST(GNOME_VFS_SHARP_LIBS)
+-PKG_CHECK_MODULES(GCONF_SHARP, gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION, [gconf_sharp=yes], [gconf_sharp=no])
+-AC_SUBST(GCONF_SHARP_LIBS)
+-
+ gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`"
+ AC_SUBST(gtksharp_prefix)
+ 
+diff -rupN main.original/src/addins/GnomePlatform/GnomePlatform.cs main/src/addins/GnomePlatform/GnomePlatform.cs
+--- main.original/src/addins/GnomePlatform/GnomePlatform.cs	2015-07-18 18:40:15.946222126 +0200
++++ main/src/addins/GnomePlatform/GnomePlatform.cs	2015-07-18 19:56:35.272686234 +0200
+@@ -26,7 +26,6 @@
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ //
+ 
+-using Gnome;
+ using MonoDevelop.Ide.Desktop;
+ using System;
+ using System.Collections.Generic;
+@@ -40,44 +39,13 @@ namespace MonoDevelop.Platform
+ {
+ 	public class GnomePlatform : PlatformService
+ 	{
+-		static bool useGio;
+-
+-		Gnome.ThumbnailFactory thumbnailFactory = new Gnome.ThumbnailFactory (Gnome.ThumbnailSize.Normal);
+-
+ 		static GnomePlatform ()
+ 		{
+ 			try {
+ 				Gio.GetDefaultForType ("text/plain");
+-				useGio = true;
+ 			} catch (Exception ex) {
+ 				Console.WriteLine (ex);
+ 			}
+-			//apparently Gnome.Icon needs GnomeVFS initialized even when we're using GIO.
+-			Gnome.Vfs.Vfs.Initialize ();
+-		}
+-		
+-		DesktopApplication GetGnomeVfsDefaultApplication (string mimeType)
+-		{
+-			var app = Gnome.Vfs.Mime.GetDefaultApplication (mimeType);
+-			if (app != null)
+-				return (DesktopApplication) Marshal.PtrToStructure (app.Handle, typeof(DesktopApplication));
+-			else
+-				return null;
+-		}
+-		
+-		IEnumerable<DesktopApplication> GetGnomeVfsApplications (string mimeType)
+-		{
+-			var def = GetGnomeVfsDefaultApplication (mimeType);
+-			var list = new List<DesktopApplication> ();
+-			var apps = Gnome.Vfs.Mime.GetAllApplications (mimeType);
+-			foreach (var app in apps) {
+-				var dap = (GnomeVfsApp) Marshal.PtrToStructure (app.Handle, typeof(GnomeVfsApp));
+-				if (!string.IsNullOrEmpty (dap.Command) && !string.IsNullOrEmpty (dap.DisplayName) && !dap.Command.Contains ("monodevelop ")) {
+-					var isDefault = def != null && def.Id == dap.Command;
+-					list.Add (new GnomeDesktopApplication (dap.Command, dap.DisplayName, isDefault));
+-				}
+-			}
+-			return list;
+ 		}
+ 		
+ 		public override IEnumerable<DesktopApplication> GetApplications (string filename)
+@@ -88,10 +56,7 @@ namespace MonoDevelop.Platform
+ 
+ 		IEnumerable<DesktopApplication> GetApplicationsForMimeType (string mimeType)
+ 		{
+-			if (useGio)
+-				return Gio.GetAllForType (mimeType);
+-			else
+-				return GetGnomeVfsApplications (mimeType);
++			return Gio.GetAllForType (mimeType);
+ 		}
+ 		
+ 		struct GnomeVfsApp {
+@@ -100,23 +65,15 @@ namespace MonoDevelop.Platform
+ 
+ 		protected override string OnGetMimeTypeDescription (string mt)
+ 		{
+-			if (useGio)
+-				return Gio.GetMimeTypeDescription (mt);
+-			else
+-				return Gnome.Vfs.Mime.GetDescription (mt);
++			return Gio.GetMimeTypeDescription (mt);
+ 		}
+ 
+ 		protected override string OnGetMimeTypeForUri (string uri)
+ 		{
+ 			if (uri == null)
+ 				return null;
+-			
+-			if (useGio) {
+-				string mt = Gio.GetMimeTypeForUri (uri);
+-				if (mt != null)
+-					return mt;
+-			}
+-			return Gnome.Vfs.MimeType.GetMimeTypeForUri (ConvertFileNameToVFS (uri));
++
++			return Gio.GetMimeTypeForUri (uri);
+ 		}
+ 		
+ 		protected override bool OnGetMimeTypeIsText (string mimeType)
+@@ -128,19 +85,9 @@ namespace MonoDevelop.Platform
+ 			return base.OnGetMimeTypeIsText (mimeType);
+ 		}
+ 
+-
+-		public override void ShowUrl (string url)
+-		{
+-			Gnome.Url.Show (url);
+-		}
+-		
+ 		public override string DefaultMonospaceFont {
+ 			get {
+-				try {
+-					return (string) (new GConf.Client ().Get ("/desktop/gnome/interface/monospace_font_name"));
+-				} catch (Exception) {
+-					return "Monospace 11";
+-				}
++				return "Monospace 11";
+ 			}
+ 		}
+ 		
+@@ -159,18 +106,8 @@ namespace MonoDevelop.Platform
+ 				filename = EscapeFileName (filename);
+ 				if (filename == null)
+ 					return "gnome-fs-regular";
+-				
+-				string icon = null;
+-				Gnome.IconLookupResultFlags result;
+-				try {
+-					icon = Gnome.Icon.LookupSync (IconTheme.Default, thumbnailFactory, filename, null, 
+-					                              Gnome.IconLookupFlags.None, out result);
+-				} catch {}
+-				if (icon != null && icon.Length > 0)
+-					return icon;
+-			}			
++			}
+ 			return "gnome-fs-regular";
+-			
+ 		}
+ 		
+ 		protected override Xwt.Drawing.Image OnGetIconForFile (string filename)

diff --git a/dev-util/monodevelop/files/5.9.5-skip_merged_tar.patch b/dev-util/monodevelop/files/5.9.5-skip_merged_tar.patch
new file mode 100644
index 0000000..4f00947
--- /dev/null
+++ b/dev-util/monodevelop/files/5.9.5-skip_merged_tar.patch
@@ -0,0 +1,11 @@
+--- monodevelop-5.9.5.5.orig/Makefile	2015-07-18 18:40:15.414229154 +0200
++++ monodevelop-5.9.5.5/Makefile	2015-07-18 19:39:03.782576863 +0200
+@@ -87,8 +87,6 @@ dist: update_submodules remove-stale-tar
+ 		-name \*.dll -o \
+ 		-name \*.mdb \) \
+ 		-delete
+-	@cd tarballs && tar -cjf monodevelop-$(PACKAGE_VERSION).tar.bz2 monodevelop-$(PACKAGE_VERSION)
+-	@cd tarballs && rm -rf monodevelop-$(PACKAGE_VERSION)
+ 
+ aot:
+ 	@for i in main/build/bin/*.dll; do ($(MONO_AOT) $$i &> /dev/null && echo AOT successful: $$i) || (echo AOT failed: $$i); done

diff --git a/dev-util/monodevelop/monodevelop-5.9.5.5.ebuild b/dev-util/monodevelop/monodevelop-5.9.5.5.ebuild
new file mode 100644
index 0000000..a2902ad
--- /dev/null
+++ b/dev-util/monodevelop/monodevelop-5.9.5.5.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit fdo-mime gnome2-utils dotnet versionator eutils git-r3
+
+DESCRIPTION="Integrated Development Environment for .NET"
+HOMEPAGE="http://www.monodevelop.com/"
+SRC_URI="https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip
+	https://www.nuget.org/api/v2/package/NUnit/2.6.3 -> NUnit.2.6.3.zip
+	https://www.nuget.org/api/v2/package/NUnit.Runners/2.6.3  -> NUnit.Runners.2.6.3.zip
+	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
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/5.2.2 -> Microsoft.AspNet.Mvc.5.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.2 -> Microsoft.AspNet.Razor.3.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.WebPages/3.2.2 -> Microsoft.AspNet.WebPages.3.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0 -> Microsoft.Web.Infrastructure.1.0.0.0.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+subversion +git doc +gnome qtcurve"
+
+RDEPEND=">=dev-lang/mono-3.2.8
+	>=dev-dotnet/nuget-2.8.3
+	gnome? ( >=dev-dotnet/gnome-sharp-2.24.2-r1 )
+	>=dev-dotnet/gtk-sharp-2.12.21:2
+	>=dev-dotnet/mono-addins-1.0[gtk]
+	doc? ( dev-util/mono-docbrowser )
+	>=dev-dotnet/xsp-2
+	dev-util/ctags
+	sys-apps/dbus[X]
+	subversion? ( dev-vcs/subversion )
+	!<dev-util/monodevelop-boo-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-java-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-database-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-debugger-gdb-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-debugger-mdb-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-vala-$(get_version_component_range 1-2)"
+DEPEND="${RDEPEND}
+	dev-util/intltool
+	virtual/pkgconfig
+	sys-devel/gettext
+	x11-misc/shared-mime-info
+	x11-terms/xterm
+	app-arch/unzip"
+MAKEOPTS="${MAKEOPTS} -j1" #nowarn
+S="${WORKDIR}"/${P}
+EGIT_REPO_URI="https://github.com/mono/monodevelop.git"
+EGIT_COMMIT="${P}"
+
+src_unpack() {
+	cd "${T}"
+	unpack NUnit-2.5.10.11092.zip
+
+	#clone from git
+	git-r3_fetch
+	git-r3_checkout "${EGIT_REPO_URI}" "${T}/${P}"
+
+	#extract packages
+	mkdir -p "${T}"/packages || die
+	cd "${T}"/packages || die
+
+	for pkg in NUnit.2.6.3 \
+				NUnit.Runners.2.6.3 \
+				System.Web.Mvc.Extensions.Mvc.4.1.0.9 \
+				Microsoft.AspNet.Mvc.5.2.2 \
+				Microsoft.AspNet.Razor.3.2.2 \
+				Microsoft.AspNet.WebPages.3.2.2 \
+				Microsoft.Web.Infrastructure.1.0.0.0
+	do
+		mkdir $pkg || die
+		cd $pkg || die
+		unpack $pkg.zip
+		cd .. || die
+	done
+	mkdir -p "${S}"
+}
+
+src_prepare() {
+	# Remove the git rev-parse (changelog?)
+	sed -i '/<Exec.*rev-parse/ d' "${T}/${P}/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj" || die
+	# Set specific_version to prevent binding problem
+	# when gtk#-3 is installed alongside gtk#-2
+	find "${T}/${P}" -name '*.csproj' -exec sed -i 's#<SpecificVersion>.*</SpecificVersion>#<SpecificVersion>True</SpecificVersion>#' {} + || die
+
+	#fix ASP.Net
+	cd "${T}/${P}/main"
+	epatch "${FILESDIR}/5.7-downgrade_to_mvc3.patch"
+	
+	# fix for https://github.com/gentoo/dotnet/issues/42
+	epatch "${FILESDIR}/aspnet-template-references-fix.patch"
+	use gnome || epatch "${FILESDIR}/5.9.5-kill-gnome.patch"
+	use qtcurve && epatch "${FILESDIR}/kill-qtcurve-warning.patch"
+	
+	#prepare dist package
+	cd "${T}/${P}"
+	epatch "${FILESDIR}/5.9.5-skip_merged_tar.patch"
+	./configure --profile=default || die
+	make dist || die
+	
+	#move it
+	mv -f "${T}/${P}/tarballs/"monodevelop-*/* "${S}" || die
+
+	#copy missing binaries
+	mkdir -p "${S}"/external/cecil/Test/libs/nunit-2.5.10/ || die
+	cp -fR "${T}"/NUnit-2.5.10.11092/bin/net-2.0/framework/* "${S}"/external/cecil/Test/libs/nunit-2.5.10/ || die
+	mv -f "${T}/packages" "${S}"
+}
+
+src_configure() {
+	# env vars are added as the fix for https://github.com/gentoo/dotnet/issues/29
+	MCS=/usr/bin/dmcs CSC=/usr/bin/dmcs GMCS=/usr/bin/dmcs econf \
+		--disable-update-mimedb \
+		--disable-update-desktopdb \
+		--enable-monoextensions \
+		--enable-gnomeplatform \
+		$(use_enable subversion) \
+		$(use_enable git)
+	# https://github.com/mrward/xdt/issues/4
+	# Main.sln file is created on the fly during econf
+	epatch -p2 "${FILESDIR}/mrward-xdt-issue-4.patch"
+	# fix of https://github.com/gentoo/dotnet/issues/38
+	sed -i -E -e 's#(EXE_PATH=")(.*)(/lib/monodevelop/bin/MonoDevelop.exe")#\1'${EPREFIX}'/usr\3#g' "${S}/monodevelop" || die
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postinst() {
+	gnome2_icon_cache_update
+	fdo-mime_mime_database_update
+	fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+	gnome2_icon_cache_update
+	fdo-mime_mime_database_update
+	fdo-mime_desktop_database_update
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/dotnet:master commit in: dev-util/monodevelop/files/, dev-util/monodevelop/
@ 2016-01-15 13:20 Heather Cynede
  0 siblings, 0 replies; 3+ messages in thread
From: Heather Cynede @ 2016-01-15 13:20 UTC (permalink / raw
  To: gentoo-commits

commit:     9df07e1aef012ef4d0ffa4d7856b0be62454e675
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Thu Jan  7 05:07:20 2016 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Thu Jan  7 05:07:20 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=9df07e1a

https://github.com/mrward/monodevelop-nuget-addin/issues/59

 dev-util/monodevelop/files/local-nuget-icons.patch |  48 +++++++
 dev-util/monodevelop/monodevelop-5.9.5.9-r1.ebuild | 142 +++++++++++++++++++++
 2 files changed, 190 insertions(+)

diff --git a/dev-util/monodevelop/files/local-nuget-icons.patch b/dev-util/monodevelop/files/local-nuget-icons.patch
new file mode 100644
index 0000000..329c57f
--- /dev/null
+++ b/dev-util/monodevelop/files/local-nuget-icons.patch
@@ -0,0 +1,48 @@
+From c5f730b3ffcecfd15dc291353332a6a3f0bb515a Mon Sep 17 00:00:00 2001
+From: Matt Ward <matt.ward@xamarin.com>
+Date: Sat, 2 Jan 2016 15:29:00 +0000
+Subject: [PATCH] [NuGet] Support NuGet packages that use icons from local
+ files.
+
+Allows a NuGet package to use an icon, shown in the Add Packages
+dialog, taken from the local file system using a file url.
+Previously this would fail with an invalid cast exception.
+---
+ .../MonoDevelop.PackageManagement/ImageLoader.cs           | 14 ++++++++++++--
+ 1 file changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement/ImageLoader.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement/ImageLoader.cs
+index 07b7b99..98eff92 100644
+--- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement/ImageLoader.cs
++++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement/ImageLoader.cs
+@@ -91,8 +91,7 @@ namespace MonoDevelop.PackageManagement
+ 		ImageLoadedEventArgs LoadImage (Uri uri, object state)
+ 		{
+ 			try {
+-				var httpClient = new HttpClient (uri);
+-				Stream stream = httpClient.GetResponse ().GetResponseStream ();
++				Stream stream = GetResponseStream (uri);
+ 				Image image = Image.FromStream (stream);
+ 
+ 				return new ImageLoadedEventArgs (image, uri, state);
+@@ -101,6 +100,17 @@ namespace MonoDevelop.PackageManagement
+ 			}
+ 		}
+ 
++		static Stream GetResponseStream (Uri uri)
++		{
++			if (uri.IsFile) {
++				var request = WebRequest.Create (uri);
++				return request.GetResponse ().GetResponseStream ();
++			}
++
++			var httpClient = new HttpClient (uri);
++			return httpClient.GetResponse ().GetResponseStream ();
++		}
++
+ 		void OnLoaded (ITask<ImageLoadedEventArgs> task, Uri uri, object state)
+ 		{
+ 			if (task.IsFaulted) {
+-- 
+2.6.0
+

diff --git a/dev-util/monodevelop/monodevelop-5.9.5.9-r1.ebuild b/dev-util/monodevelop/monodevelop-5.9.5.9-r1.ebuild
new file mode 100644
index 0000000..ee1cc62
--- /dev/null
+++ b/dev-util/monodevelop/monodevelop-5.9.5.9-r1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit fdo-mime gnome2-utils dotnet versionator eutils git-r3
+
+DESCRIPTION="Integrated Development Environment for .NET"
+HOMEPAGE="http://www.monodevelop.com/"
+SRC_URI="https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip
+	https://www.nuget.org/api/v2/package/NUnit/2.6.3 -> NUnit.2.6.3.zip
+	https://www.nuget.org/api/v2/package/NUnit.Runners/2.6.3  -> NUnit.Runners.2.6.3.zip
+	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
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/5.2.2 -> Microsoft.AspNet.Mvc.5.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.2 -> Microsoft.AspNet.Razor.3.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.AspNet.WebPages/3.2.2 -> Microsoft.AspNet.WebPages.3.2.2.zip
+	https://www.nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0 -> Microsoft.Web.Infrastructure.1.0.0.0.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+subversion +git doc +gnome qtcurve"
+
+RDEPEND=">=dev-lang/mono-3.2.8
+	>=dev-dotnet/nuget-2.8.3
+	gnome? ( >=dev-dotnet/gnome-sharp-2.24.2-r1 )
+	>=dev-dotnet/gtk-sharp-2.12.21:2
+	doc? ( dev-util/mono-docbrowser )
+	>=www-servers/xsp-2
+	dev-util/ctags
+	sys-apps/dbus[X]
+	subversion? ( dev-vcs/subversion )
+	!<dev-util/monodevelop-boo-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-java-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-database-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-debugger-gdb-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-debugger-mdb-$(get_version_component_range 1-2)
+	!<dev-util/monodevelop-vala-$(get_version_component_range 1-2)"
+DEPEND="${RDEPEND}
+	dev-util/intltool
+	virtual/pkgconfig
+	sys-devel/gettext
+	x11-misc/shared-mime-info
+	x11-terms/xterm
+	app-arch/unzip"
+MAKEOPTS="${MAKEOPTS} -j1" #nowarn
+S="${WORKDIR}"/${P}
+EGIT_REPO_URI="https://github.com/mono/monodevelop.git"
+EGIT_COMMIT="${P}"
+
+src_unpack() {
+	cd "${T}"
+	unpack NUnit-2.5.10.11092.zip
+
+	#clone from git
+	git-r3_fetch
+	git-r3_checkout "${EGIT_REPO_URI}" "${T}/${P}"
+
+	#extract packages
+	mkdir -p "${T}"/packages || die
+	cd "${T}"/packages || die
+
+	for pkg in NUnit.2.6.3 \
+				NUnit.Runners.2.6.3 \
+				System.Web.Mvc.Extensions.Mvc.4.1.0.9 \
+				Microsoft.AspNet.Mvc.5.2.2 \
+				Microsoft.AspNet.Razor.3.2.2 \
+				Microsoft.AspNet.WebPages.3.2.2 \
+				Microsoft.Web.Infrastructure.1.0.0.0
+	do
+		mkdir $pkg || die
+		cd $pkg || die
+		unpack $pkg.zip
+		cd .. || die
+	done
+	mkdir -p "${S}"
+}
+
+src_prepare() {
+	# Remove the git rev-parse (changelog?)
+	sed -i '/<Exec.*rev-parse/ d' "${T}/${P}/main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj" || die
+	# Set specific_version to prevent binding problem
+	# when gtk#-3 is installed alongside gtk#-2
+	find "${T}/${P}" -name '*.csproj' -exec sed -i 's#<SpecificVersion>.*</SpecificVersion>#<SpecificVersion>True</SpecificVersion>#' {} + || die
+
+	#fix ASP.Net
+	cd "${T}/${P}/main"
+	epatch "${FILESDIR}/5.7-downgrade_to_mvc3.patch"
+
+	# fix for https://github.com/gentoo/dotnet/issues/42
+	epatch "${FILESDIR}/aspnet-template-references-fix.patch"
+	use gnome || epatch "${FILESDIR}/5.9.5-kill-gnome.patch"
+	use qtcurve && epatch "${FILESDIR}/kill-qtcurve-warning.patch"
+
+	#prepare dist package
+	cd "${T}/${P}"
+	epatch "${FILESDIR}/5.9.5-skip_merged_tar.patch"
+	./configure --profile=default || die
+	make dist || die
+
+	#move it
+	mv -f "${T}/${P}/tarballs/"monodevelop-*/* "${S}" || die
+
+	#copy missing binaries
+	mkdir -p "${S}"/external/cecil/Test/libs/nunit-2.5.10/ || die
+	cp -fR "${T}"/NUnit-2.5.10.11092/bin/net-2.0/framework/* "${S}"/external/cecil/Test/libs/nunit-2.5.10/ || die
+	mv -f "${T}/packages" "${S}"
+
+	epatch "${FILESDIR}/local-nuget-icons.patch"
+}
+
+src_configure() {
+	# env vars are added as the fix for https://github.com/gentoo/dotnet/issues/29
+	MCS=/usr/bin/dmcs CSC=/usr/bin/dmcs GMCS=/usr/bin/dmcs econf \
+		--disable-update-mimedb \
+		--disable-update-desktopdb \
+		--enable-monoextensions \
+		--enable-gnomeplatform \
+		$(use_enable subversion) \
+		$(use_enable git)
+	# https://github.com/mrward/xdt/issues/4
+	# Main.sln file is created on the fly during econf
+	epatch -p2 "${FILESDIR}/mrward-xdt-issue-4.patch"
+	# fix of https://github.com/gentoo/dotnet/issues/38
+	sed -i -E -e 's#(EXE_PATH=")(.*)(/lib/monodevelop/bin/MonoDevelop.exe")#\1'${EPREFIX}'/usr\3#g' "${S}/monodevelop" || die
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postinst() {
+	gnome2_icon_cache_update
+	fdo-mime_mime_database_update
+	fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+	gnome2_icon_cache_update
+	fdo-mime_mime_database_update
+	fdo-mime_desktop_database_update
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-15 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-28  4:26 [gentoo-commits] proj/dotnet:master commit in: dev-util/monodevelop/files/, dev-util/monodevelop/ Heather Cynede
  -- strict thread matches above, loose matches on Subject: below --
2015-07-20 12:56 Heather Cynede
2016-01-15 13:20 Heather Cynede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox