summaryrefslogtreecommitdiff
path: root/games/gbrainy
diff options
context:
space:
mode:
Diffstat (limited to 'games/gbrainy')
-rw-r--r--games/gbrainy/distinfo3
-rw-r--r--games/gbrainy/patches/patch-src_Core_Libraries_CSharpCompiler.cs24
2 files changed, 26 insertions, 1 deletions
diff --git a/games/gbrainy/distinfo b/games/gbrainy/distinfo
index 6ba0d0efff5..5491a338cb3 100644
--- a/games/gbrainy/distinfo
+++ b/games/gbrainy/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.31 2013/04/21 14:38:14 wiz Exp $
+$NetBSD: distinfo,v 1.32 2013/05/29 11:13:41 wiz Exp $
SHA1 (gbrainy-2.2.0.tar.gz) = 5751ce78e30b4108ecc9565ea3b744265e220c98
RMD160 (gbrainy-2.2.0.tar.gz) = 68bff13308ae76155034a5dea3af268e5f3b9173
Size (gbrainy-2.2.0.tar.gz) = 2818865 bytes
+SHA1 (patch-src_Core_Libraries_CSharpCompiler.cs) = f39a7b2e768aacd4ac61bde3616908d1866aec34
diff --git a/games/gbrainy/patches/patch-src_Core_Libraries_CSharpCompiler.cs b/games/gbrainy/patches/patch-src_Core_Libraries_CSharpCompiler.cs
new file mode 100644
index 00000000000..8cbe7a83f4f
--- /dev/null
+++ b/games/gbrainy/patches/patch-src_Core_Libraries_CSharpCompiler.cs
@@ -0,0 +1,24 @@
+$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)