Skip to content

Instantly share code, notes, and snippets.

@jlyonsmith
Last active January 3, 2016 17:19
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/8495038 to your computer and use it in GitHub Desktop.
Save jlyonsmith/8495038 to your computer and use it in GitHub Desktop.
Homebrew Formula for installing CSharpTools
require 'formula'
class Csharptools < Formula
homepage "http://jlyonsmith.github.io/CSharpTools/"
url "https://s3-us-west-2.amazonaws.com/jlyonsmith/CSharpTools-3.0.10427.tar.gz"
sha1 "ec1e27fa9196479afa7e2f5d9ecd2970fec03d79"
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