Created
April 8, 2014 06:41
-
-
Save jlyonsmith/10097598 to your computer and use it in GitHub Desktop.
Homebrew formula for Toaster unit test tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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