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
+}

Reply via email to