diff options
| author | Adam Vandenberg | 2012-07-30 12:15:01 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:01:38 -0700 | 
| commit | 8aaf46d5c0050021e3a880df39d38172bd2a66c0 (patch) | |
| tree | 20bdde10696b488fb2ef302a7e1c16a4bded541f | |
| parent | 7b0bf07b845eb97e806877616769cab6b544a58d (diff) | |
| download | homebrew-8aaf46d5c0050021e3a880df39d38172bd2a66c0.tar.bz2 | |
cppunit: use options dsl + style cleanups
| -rw-r--r-- | Library/Formula/cppunit.rb | 15 | 
1 files changed, 6 insertions, 9 deletions
| diff --git a/Library/Formula/cppunit.rb b/Library/Formula/cppunit.rb index 36ee482e1..f27ff3e7d 100644 --- a/Library/Formula/cppunit.rb +++ b/Library/Formula/cppunit.rb @@ -1,20 +1,17 @@  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' +  url 'http://downloads.sourceforge.net/project/cppunit/cppunit/1.12.1/cppunit-1.12.1.tar.gz' +  sha1 'f1ab8986af7a1ffa6760f4bacf5622924639bf4a' -  def options -    [["--universal", "Build for both 32 & 64 bit Intel."]] -  end +  option :universal    def install -    args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"] - -    ENV.universal_binary if ARGV.build_universal? +    ENV.universal_binary if build.universal? -    system "./configure", *args +    system "./configure", "--disable-debug", "--disable-dependency-tracking", +                          "--prefix=#{prefix}"      system "make install"    end  end | 
