log4cxx: use options DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-12 12:57:07 -05:00
parent 4aeff92e35
commit 0690f6eed2

View file

@ -5,22 +5,20 @@ class Log4cxx < Formula
url 'http://www.apache.org/dyn/closer.cgi?path=logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz'
md5 'b30ffb8da3665178e68940ff7a61084c'
fails_with :llvm do
build 2334
cause "Fails with 'collect2: ld terminated with signal 11 [Segmentation fault]'"
end
if ARGV.build_head?
depends_on :automake
depends_on :libtool
end
def options
[["--universal", "Build for both 32 & 64 bit Intel."]]
option :universal
fails_with :llvm do
build 2334
cause "Fails with 'collect2: ld terminated with signal 11 [Segmentation fault]'"
end
def install
ENV.universal_binary if ARGV.build_universal?
ENV.universal_binary if build.universal?
ENV.O2 # Using -Os causes build failures on Snow Leopard.
# Fixes build error with clang, old libtool scripts. cf. #12127