homebrew-core/Formula/cppunit.rb
William Woodall 773723a0de cppunit: add --universal option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-09-01 16:24:48 -07:00

20 lines
539 B
Ruby

require 'formula'
class Cppunit < Formula
url 'http://downloads.sourceforge.net/project/cppunit/cppunit/1.12.1/cppunit-1.12.1.tar.gz'
homepage 'http://sourceforge.net/apps/mediawiki/cppunit/'
md5 'bd30e9cf5523cdfc019b94f5e1d7fd19'
def options
[["--universal", "Build for both 32 & 64 bit Intel."]]
end
def install
args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
ENV.universal_binary if ARGV.build_universal?
system "./configure", *args
system "make install"
end
end