homebrew-core/Formula/libyaml.rb

23 lines
513 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libyaml < Formula
homepage 'http://pyyaml.org/wiki/LibYAML'
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
sha1 'e0e5e09192ab10a607e3da2970db492118f560f2'
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