/Library/Formula/blitz.rb
Ruby | 27 lines | 22 code | 5 blank | 0 comment | 2 complexity | a222f6f08dfb7db5accf26267f73f0f1 MD5 | raw file
- require 'formula'
- class Blitz < Formula
- homepage 'http://oonumerics.org/blitz'
- url 'http://downloads.sourceforge.net/project/blitz/blitz/Blitz%2B%2B%200.9/blitz-0.9.tar.gz'
- md5 '031df2816c73e2d3bd6d667bbac19eca'
- head 'http://blitz.hg.sourceforge.net:8000/hgroot/blitz/blitz', :using => :hg
- if ARGV.build_head? and MacOS.xcode_version >= "4.3"
- depends_on "automake" => :build
- depends_on "libtool" => :build
- end
- def install
- system "autoreconf", "-fi" if ARGV.build_head?
- system "./configure", "--disable-debug",
- "--disable-dependency-tracking",
- "--infodir=#{info}",
- "--enable-shared",
- "--disable-doxygen",
- "--disable-dot",
- "--prefix=#{prefix}"
- system "make install"
- end
- end