aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorHenrik Feldt2015-01-27 16:06:34 +0100
committerMike McQuaid2015-01-28 15:52:03 +0000
commit83b1ebac92048e67996e5d6739f54b540cbeb18c (patch)
treee349c17b948fb5e7adb3141b40a7cbf8194e6dd1 /Library/Formula
parentb73de8a49e29ddcb1d30da9c95d6741c7c630f0f (diff)
downloadhomebrew-83b1ebac92048e67996e5d6739f54b540cbeb18c.tar.bz2
mono 3.12
Fixes #36279. Closes #36283. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mono.rb22
1 files changed, 9 insertions, 13 deletions
diff --git a/Library/Formula/mono.rb b/Library/Formula/mono.rb
index 05cf0a7b7..e70c59fb0 100644
--- a/Library/Formula/mono.rb
+++ b/Library/Formula/mono.rb
@@ -2,8 +2,9 @@ require "formula"
class Mono < Formula
homepage "http://www.mono-project.com/"
- url "http://download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2"
- sha1 "74e43604ea48e941c39a43ebc153abee4ddba56c"
+ url "http://download.mono-project.com/sources/mono/mono-3.12.0.tar.bz2"
+ sha1 "cec83efd13ffc1e212c632395a5aac75772a09e7"
+ head "https://github.com/mono/mono.git"
# xbuild requires the .exe files inside the runtime directories to
# be executable
@@ -43,8 +44,7 @@ class Mono < Formula
test do
test_str = "Hello Homebrew"
test_name = "hello.cs"
- hello = testpath/test_name
- hello.write <<-EOS.undent
+ (testpath/test_name).write <<-EOS.undent
public class Hello1
{
public static void Main()
@@ -53,15 +53,12 @@ class Mono < Formula
}
}
EOS
- `#{bin}/mcs #{hello}`
- assert $?.success?
- output = `#{bin}/mono hello.exe`
- assert $?.success?
- assert_equal test_str, output.strip
+ shell_output "#{bin}/mcs #{test_name}"
+ output = shell_output "#{bin}/mono hello.exe"
+ assert_match test_str, output.strip
# Tests that xbuild is able to execute lib/mono/*/mcs.exe
- xbuild = testpath/"test.csproj"
- xbuild.write <<-EOS.undent
+ (testpath/"test.csproj").write <<-EOS.undent
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
@@ -73,8 +70,7 @@ class Mono < Formula
<Import Project="$(MSBuildBinPath)\\Microsoft.CSharp.targets" />
</Project>
EOS
- system "#{bin}/xbuild", xbuild
- assert $?.success?
+ shell_output "#{bin}/xbuild test.csproj"
end
def caveats; <<-EOS.undent