Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

[mono] properly support HEAD building #36764

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions Library/Formula/mono.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ class Mono < Formula
homepage "http://www.mono-project.com/"
url "http://download.mono-project.com/sources/mono/mono-3.12.0.tar.bz2"
sha1 "cec83efd13ffc1e212c632395a5aac75772a09e7"
head "https://github.com/mono/mono.git"

head do
url "https://github.com/mono/mono.git"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end

# xbuild requires the .exe files inside the runtime directories to
# be executable
Expand Down Expand Up @@ -32,7 +39,12 @@ def install
]
args << "--build=" + (MacOS.prefer_64_bit? ? "x86_64": "i686") + "-apple-darwin"

system "./configure", *args
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end

system "make"
system "make", "install"
# mono-gdb.py and mono-sgen-gdb.py are meant to be loaded by gdb, not to be
Expand Down