diff options
| author | Gaƫtan Lehmann | 2014-04-04 16:45:07 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-07 09:47:42 -0700 |
| commit | 3a08663aff81425e578a5b30cfc6e33e32eb2c94 (patch) | |
| tree | b5d0b7f4f9fb888afdc40c3ed8981df37ce599d2 /Library | |
| parent | b2d2cf667f4624264e9760fe1211b7e7c7a6af46 (diff) | |
| download | homebrew-3a08663aff81425e578a5b30cfc6e33e32eb2c94.tar.bz2 | |
nant 0.92
Closes #29033.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nant.rb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/nant.rb b/Library/Formula/nant.rb new file mode 100644 index 000000000..b6744852e --- /dev/null +++ b/Library/Formula/nant.rb @@ -0,0 +1,48 @@ +require "formula" + +class Nant < Formula + homepage "http://nant.sourceforge.net/" + url "https://downloads.sourceforge.net/nant/nant/nant-0.92-src.tar.gz" + sha1 "5f95dea73f82e26aaf4df46da460604e856479aa" + + depends_on "mono" + depends_on "pkg-config" => :build + + patch do + # fix build with newer versions of mono + url "https://github.com/nant/nant/commit/69c8ee96493c5d953212397c8ca06c2392372ca4.diff" + sha1 "47142439263f22f7fee1608f4b50cbff51496f9b" + end + + def install + ENV.deparallelize + system "make", "install", "prefix=#{prefix}" + inreplace bin/"nant", bin/"mono", "mono" + end + + test do + ENV.prepend_path "PATH", Formula["mono"].bin + (testpath/"default.build").write <<-EOS.undent + <project default="build" + xmlns="http://nant.sf.net/release/0.86-beta1/nant.xsd"> + <target name="build"> + <csc target="exe" output="hello.exe"> + <sources> + <include name="hello.cs" /> + </sources> + </csc> + </target> + </project> + EOS + (testpath/"hello.cs").write <<-EOS.undent + public class Hello1 + { + public static void Main() + { + System.Console.WriteLine("hello homebrew!"); + } + } + EOS + system bin/"nant" + end +end |
