Wed May 29 11:13:41 2013 UTC ()
Fix build with mono 3.
(wiz)
diff -r1.31 -r1.32 pkgsrc/games/gbrainy/distinfo
diff -r0 -r1.1 pkgsrc/games/gbrainy/patches/patch-src_Core_Libraries_CSharpCompiler.cs
--- pkgsrc/games/gbrainy/distinfo 2013/04/21 14:38:14 1.31
+++ pkgsrc/games/gbrainy/distinfo 2013/05/29 11:13:41 1.32
| @@ -1,5 +1,6 @@ | | | @@ -1,5 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.31 2013/04/21 14:38:14 wiz Exp $ | | 1 | $NetBSD: distinfo,v 1.32 2013/05/29 11:13:41 wiz Exp $ |
2 | | | 2 | |
3 | SHA1 (gbrainy-2.2.0.tar.gz) = 5751ce78e30b4108ecc9565ea3b744265e220c98 | | 3 | SHA1 (gbrainy-2.2.0.tar.gz) = 5751ce78e30b4108ecc9565ea3b744265e220c98 |
4 | RMD160 (gbrainy-2.2.0.tar.gz) = 68bff13308ae76155034a5dea3af268e5f3b9173 | | 4 | RMD160 (gbrainy-2.2.0.tar.gz) = 68bff13308ae76155034a5dea3af268e5f3b9173 |
5 | Size (gbrainy-2.2.0.tar.gz) = 2818865 bytes | | 5 | Size (gbrainy-2.2.0.tar.gz) = 2818865 bytes |
| | | 6 | SHA1 (patch-src_Core_Libraries_CSharpCompiler.cs) = f39a7b2e768aacd4ac61bde3616908d1866aec34 |
$NetBSD: patch-src_Core_Libraries_CSharpCompiler.cs,v 1.1 2013/05/29 11:13:41 wiz Exp $
Fix
./Libraries/CSharpCompiler.cs(48,20): error CS1729: The type `Mono.CSharp.Report' does not contain a constructor that takes `1' arguments
/usr/pkg/lib/mono/4.0/Mono.CSharp.dll (Location of the symbol related to previous error)
./Libraries/CSharpCompiler.cs(50,16): error CS1729: The type `Mono.CSharp.Evaluator' does not contain a constructor that takes `2' arguments
/usr/pkg/lib/mono/4.0/Mono.CSharp.dll (Location of the symbol related to previous error)
from
http://svnweb.freebsd.org/ports/head/games/gbrainy/files/patch-CSharpCompiler.cs?revision=297313&view=markup
--- src/Core/Libraries/CSharpCompiler.cs.orig 2011-07-19 18:22:43.000000000 +0000
+++ src/Core/Libraries/CSharpCompiler.cs
@@ -44,10 +44,7 @@ namespace gbrainy.Core.Libraries
public CSharpCompiler ()
{
- CompilerSettings settings = new CompilerSettings ();
- Report report = new Report (new NullReportPrinter ());
-
- evaluator = new Evaluator (settings, report);
+ evaluator = new Evaluator (new CompilerContext (new CompilerSettings (), new NullReportPrinter ()));
}
public void EvaluateCode (string code)