diff options
| author | Ventero | 2014-08-08 21:22:00 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-08-11 23:19:54 -0500 |
| commit | d3757db0ec918caa09a5716fd757d446b7cc7e1b (patch) | |
| tree | 833fc38bc4a44572f30458853149593682678c91 | |
| parent | 23d90a6a187a57fbdf4eeac146993e3b37c3d4d9 (diff) | |
| download | homebrew-d3757db0ec918caa09a5716fd757d446b7cc7e1b.tar.bz2 | |
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 <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/mono.rb | 25 |
1 files changed, 24 insertions, 1 deletions
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 + <?xml version="1.0" encoding="utf-8"?> + <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <AssemblyName>HomebrewMonoTest</AssemblyName> + </PropertyGroup> + <ItemGroup> + <Compile Include="#{test_name}" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\\Microsoft.CSharp.targets" /> + </Project> + EOS + system "#{bin}/xbuild", xbuild + assert $?.success? end def caveats; <<-EOS.undent |
