2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-28 19:16:15 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libyaml < Formula
|
2009-09-28 19:16:15 +00:00
|
|
|
homepage 'http://pyyaml.org/wiki/LibYAML'
|
2012-08-13 15:28:12 +00:00
|
|
|
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
|
2011-07-16 06:07:02 +00:00
|
|
|
md5 '36c852831d02cf90508c29852361d01b'
|
2009-09-28 19:16:15 +00:00
|
|
|
|
2012-08-13 15:28:12 +00:00
|
|
|
option :universal
|
2011-08-08 02:26:49 +00:00
|
|
|
|
2009-09-28 19:16:15 +00:00
|
|
|
def install
|
2011-08-08 02:26:49 +00:00
|
|
|
args = ["--prefix=#{prefix}"]
|
|
|
|
|
2012-08-13 15:28:12 +00:00
|
|
|
if build.universal?
|
2011-08-08 02:26:49 +00:00
|
|
|
ENV['CFLAGS'] = "-arch i386 -arch x86_64"
|
|
|
|
ENV['LDFLAGS'] = "-arch i386 -arch x86_64"
|
|
|
|
args << "--disable-dependency-tracking"
|
|
|
|
end
|
|
|
|
|
|
|
|
system './configure', *args
|
2009-09-28 19:16:15 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-09-12 19:55:17 +00:00
|
|
|
end
|