From e7511d0a66965aa49407576fcea7ab9f75f23edf Mon Sep 17 00:00:00 2001 From: Julien Ammous Date: Mon, 19 Mar 2012 18:35:17 +0100 Subject: [PATCH] crossroads 1.0.1 Closes Homebrew/homebrew#11060. Signed-off-by: Adam Vandenberg --- Formula/crossroads.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/crossroads.rb diff --git a/Formula/crossroads.rb b/Formula/crossroads.rb new file mode 100644 index 00000000000..15527d94d4d --- /dev/null +++ b/Formula/crossroads.rb @@ -0,0 +1,31 @@ +require 'formula' + +class Crossroads < Formula + homepage 'http://www.crossroads.io/' + url 'https://download.crossroads.io/libxs-1.0.1.tar.gz' + md5 '915aaf168f4a47d8ccf6d03b33845038' + head 'https://github.com/crossroads-io/libxs.git' + + fails_with_llvm "Compiling with LLVM gives a segfault while linking.", + :build => 2326 if MacOS.snow_leopard? + + if ARGV.build_head? and MacOS.xcode_version >= "4.3" + depends_on "automake" => :build + depends_on "libtool" => :build + end + + def options + [['--with-pgm', 'Build with PGM extension']] + end + + def install + system "./autogen.sh" if ARGV.build_head? + + args = ["--disable-dependency-tracking", "--prefix=#{prefix}"] + args << "--with-pgm" if ARGV.include? '--with-pgm' + system "./configure", *args + + system "make" + system "make install" + end +end