diff options
| author | Julien Ammous | 2012-03-19 18:35:17 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-30 21:43:54 -0700 |
| commit | d8ced2d065b3045dcd07a8ca3a7b933148ebf2bb (patch) | |
| tree | 27a9b49de79e2d9330d2ed376291f0f8859825f5 | |
| parent | 8e625e2192621f1025f803c358d7c299fe04c6cc (diff) | |
| download | homebrew-d8ced2d065b3045dcd07a8ca3a7b933148ebf2bb.tar.bz2 | |
crossroads 1.0.1
Closes #11060.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/crossroads.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/crossroads.rb b/Library/Formula/crossroads.rb new file mode 100644 index 000000000..15527d94d --- /dev/null +++ b/Library/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 |
