From 9efdd9361ac7ecc8f22079b9088ff5564dd5fbb4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Aug 2012 12:58:58 -0500 Subject: py2cairo: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/py2cairo.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/py2cairo.rb b/Library/Formula/py2cairo.rb index c7b9e52a3..7feb83ef1 100644 --- a/Library/Formula/py2cairo.rb +++ b/Library/Formula/py2cairo.rb @@ -8,18 +8,16 @@ class Py2cairo < Formula depends_on 'cairo' depends_on :x11 + option :universal + fails_with :llvm do build 2336 cause "The build script will set -march=native which llvm can't accept" end - def options - [['--universal', 'Build universal binaries']] - end - def install # Python extensions default to universal but cairo may not be universal - unless ARGV.build_universal? + unless build.universal? ENV['ARCHFLAGS'] = if MacOS.prefer_64_bit? "-arch x86_64" else -- cgit v1.2.3