Skip to content

Instantly share code, notes, and snippets.

@endel
Forked from shtirlic/mono.rb
Last active December 26, 2015 22:09
Show Gist options
  • Save endel/7220823 to your computer and use it in GitHub Desktop.
Save endel/7220823 to your computer and use it in GitHub Desktop.
Install mono-2.11.4 os OSX via homebrew.
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
#url 'http://download.mono-project.com/sources/mono/mono-3.0.6.tar.bz2'
#sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77'
url 'http://download.mono-project.com/sources/mono/mono-2.11.4.tar.bz2'
sha1 '41707d3b6a1bd8380f4150474602c19e5e88e3f8'
homepage 'http://www.mono-project.com/'
def install
args = ["--prefix=#{prefix}",
"--with-glib=embedded",
"--enable-nls=no",
"--build=i386-apple-darwin11.2.0"]
#args << "--host=x86_64-apple-darwin10" if MacOS.prefer_64_bit?
system "./configure", *args
system "make"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment