diff options
| author | Adam Vandenberg | 2012-08-10 09:04:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-10 09:04:59 -0700 |
| commit | 889c67f14ba3e3f7f3e25a9d97c1a108be6885ea (patch) | |
| tree | da3dd5525481914256acc286f2dcd48edffbcfca /Library/Formula/ossp-uuid.rb | |
| parent | 1dad2d5423c76f2e2fa84cc3ffa7462e193f3f3d (diff) | |
| download | homebrew-889c67f14ba3e3f7f3e25a9d97c1a108be6885ea.tar.bz2 | |
ossp-uuid: use options dsl
Diffstat (limited to 'Library/Formula/ossp-uuid.rb')
| -rw-r--r-- | Library/Formula/ossp-uuid.rb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Formula/ossp-uuid.rb b/Library/Formula/ossp-uuid.rb index 4bd97607b..134481bb0 100644 --- a/Library/Formula/ossp-uuid.rb +++ b/Library/Formula/ossp-uuid.rb @@ -1,31 +1,27 @@ require 'formula' class OsspUuid < Formula + homepage 'http://www.ossp.org/pkg/lib/uuid/' url 'ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz' mirror 'http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz' - homepage 'http://www.ossp.org/pkg/lib/uuid/' md5 '5db0d43a9022a6ebbbc25337ae28942f' - def options - [ - ["--32-bit", "Build 32-bit only."], - ["--universal", "Build with universal binaries and libraries."], - ] - end + option :universal + option "32-bit" def install - if ARGV.build_universal? + if build.universal? ENV.universal_binary - elsif ARGV.include? '--32-bit' + elsif build.build_32_bit? ENV.append 'CFLAGS', '-arch i386' ENV.append 'LDFLAGS', '-arch i386' end system "./configure", "--disable-debug", + "--prefix=#{prefix}", "--without-perl", "--without-php", - "--without-pgsql", - "--prefix=#{prefix}" + "--without-pgsql" system "make" system "make install" end |
