diff options
| author | Jack Nagel | 2012-08-12 12:58:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 13:01:03 -0500 |
| commit | 9efdd9361ac7ecc8f22079b9088ff5564dd5fbb4 (patch) | |
| tree | 9f0384ef5a59d2770307d22a5335a74e8be4e833 /Library/Formula | |
| parent | 544209f4865a76e0b75b99a0cfab14fbb4e9513b (diff) | |
| download | homebrew-9efdd9361ac7ecc8f22079b9088ff5564dd5fbb4.tar.bz2 | |
py2cairo: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/py2cairo.rb | 8 |
1 files changed, 3 insertions, 5 deletions
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 |
