libyaml: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
227e2bb14b
commit
6e5293d325
1 changed files with 3 additions and 7 deletions
|
@ -1,20 +1,16 @@
|
|||
require 'formula'
|
||||
|
||||
class Libyaml < Formula
|
||||
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
|
||||
homepage 'http://pyyaml.org/wiki/LibYAML'
|
||||
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
|
||||
md5 '36c852831d02cf90508c29852361d01b'
|
||||
|
||||
def options
|
||||
[
|
||||
["--universal", "Build for both 32 & 64 bit Intel."],
|
||||
]
|
||||
end
|
||||
option :universal
|
||||
|
||||
def install
|
||||
args = ["--prefix=#{prefix}"]
|
||||
|
||||
if ARGV.build_universal?
|
||||
if build.universal?
|
||||
ENV['CFLAGS'] = "-arch i386 -arch x86_64"
|
||||
ENV['LDFLAGS'] = "-arch i386 -arch x86_64"
|
||||
args << "--disable-dependency-tracking"
|
||||
|
|
Loading…
Reference in a new issue