From d3757db0ec918caa09a5716fd757d446b7cc7e1b Mon Sep 17 00:00:00 2001 From: Ventero Date: Fri, 8 Aug 2014 21:22:00 +0200 Subject: mono: Don't clean mono's runtime directories. xbuild requires the various .exe files in the runtime directories to be executable. Closes #31457. Signed-off-by: Jack Nagel --- Library/Formula/mono.rb | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/mono.rb b/Library/Formula/mono.rb index 2bd434be4..3b47c51e1 100644 --- a/Library/Formula/mono.rb +++ b/Library/Formula/mono.rb @@ -4,6 +4,11 @@ class Mono < Formula homepage "http://www.mono-project.com/" url "http://download.mono-project.com/sources/mono/mono-3.4.0.tar.bz2" sha1 "bae86f50f9a29d68d4e1917358996e7186e7f89e" + revision 1 + + # xbuild requires the .exe files inside the runtime directories to + # be executable + skip_clean "lib/mono" bottle do sha1 "dca650732ccb8aac36e56cd7bce03851d69e2d1c" => :mavericks @@ -55,7 +60,8 @@ class Mono < Formula test do test_str = "Hello Homebrew" - hello = (testpath/"hello.cs") + test_name = "hello.cs" + hello = testpath/test_name hello.write <<-EOS.undent public class Hello1 { @@ -70,6 +76,23 @@ class Mono < Formula output = `#{bin}/mono hello.exe` assert $?.success? assert_equal test_str, output.strip + + # Tests that xbuild is able to execute lib/mono/*/mcs.exe + xbuild = testpath/"test.csproj" + xbuild.write <<-EOS.undent + + + + HomebrewMonoTest + + + + + + + EOS + system "#{bin}/xbuild", xbuild + assert $?.success? end def caveats; <<-EOS.undent -- cgit v1.2.3