homebrew-core/Formula/libyaml.rb
Jack Nagel 1dbdce5ba1 Append missing trailing newlines
A few formulae are missing trailing newlines.

Let's be POSIXly correct about trailing newlines, which are part of the
definition of a "line" and hence a "file". Even "diff" has it's own
special handling for files without trailing newlines.

Perhaps an audit check is in order.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-12 15:07:54 -05:00

26 lines
581 B
Ruby

require 'formula'
class Libyaml < Formula
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
homepage 'http://pyyaml.org/wiki/LibYAML'
md5 '36c852831d02cf90508c29852361d01b'
def options
[
["--universal", "Build for both 32 & 64 bit Intel."],
]
end
def install
args = ["--prefix=#{prefix}"]
if ARGV.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