aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-12 12:58:48 -0500
committerJack Nagel2012-08-12 13:01:03 -0500
commit544209f4865a76e0b75b99a0cfab14fbb4e9513b (patch)
treefb8542eecf364c70dfda6cbba32b761e0f54902f /Library
parentf7421f0587ad55af92b437fd3d68391d18869862 (diff)
downloadhomebrew-544209f4865a76e0b75b99a0cfab14fbb4e9513b.tar.bz2
protobuf: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/protobuf.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/protobuf.rb b/Library/Formula/protobuf.rb
index 7643d7854..957790fbd 100644
--- a/Library/Formula/protobuf.rb
+++ b/Library/Formula/protobuf.rb
@@ -5,20 +5,18 @@ class Protobuf < Formula
url 'http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2'
sha1 'df5867e37a4b51fb69f53a8baf5b994938691d6d'
+ option :universal
+
fails_with :llvm do
build 2334
end
- def options
- [['--universal', 'Do a universal build']]
- end
-
def install
# Don't build in debug mode. See:
# https://github.com/mxcl/homebrew/issues/9279
# http://code.google.com/p/protobuf/source/browse/trunk/configure.ac#61
ENV.prepend 'CXXFLAGS', '-DNDEBUG'
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-zlib"