homebrew-core/Formula/libyaml.rb
Jack Nagel 6e5293d325 libyaml: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 10:28:12 -05:00

22 lines
504 B
Ruby

require 'formula'
class Libyaml < Formula
homepage 'http://pyyaml.org/wiki/LibYAML'
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
md5 '36c852831d02cf90508c29852361d01b'
option :universal
def install
args = ["--prefix=#{prefix}"]
if build.universal?
ENV['CFLAGS'] = "-arch i386 -arch x86_64"
ENV['LDFLAGS'] = "-arch i386 -arch x86_64"
args << "--disable-dependency-tracking"
end
system './configure', *args
system "make install"
end
end