Skip to content

Instantly share code, notes, and snippets.

@jlyonsmith
Created April 8, 2014 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlyonsmith/10097598 to your computer and use it in GitHub Desktop.
Save jlyonsmith/10097598 to your computer and use it in GitHub Desktop.
Homebrew formula for Toaster unit test tools
require 'formula'
class Csharptools < Formula
homepage "http://jlyonsmith.github.io/Toaster/"
url "https://s3-us-west-2.amazonaws.com/jlyonsmith/Toaster-2.0.20407.tar.gz"
sha1 "aeadb20cf4cfbf9886a2d60c30c4b883fcd5196a"
def install
mono_path = `/usr/bin/which mono`.strip
if mono_path.size == 0 || `#{mono_path} --version`.index(/3\./) == nil
onoe "You have to install mono 3.x first.\n" +\
"You can find the framework release on http://www.go-mono.com/mono-downloads/download.html"
end
system "make install PREFIX=#{prefix} HOMEBREW=1"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment