summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-05-29 11:13:03 +0000
committerwiz <wiz@pkgsrc.org>2013-05-29 11:13:03 +0000
commit31ccefc8a2a6f54ae9dd53b2d13d0562bba731ca (patch)
treeb2280f6cd8f7886b2be425048be333f5ea53339f /games
parentafa22889460e0a679e53cbc346e0fb1c29184de0 (diff)
downloadpkgsrc-31ccefc8a2a6f54ae9dd53b2d13d0562bba731ca.tar.gz
Fix build with mono 3.
Diffstat (limited to 'games')
-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)