homebrew-core/Formula/py2cairo.rb
Ralf Stephan bd7152088d py2cairo 1.10.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-18 21:38:50 -08:00

16 lines
494 B
Ruby

require 'formula'
class Py2cairo < Formula
url 'http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2'
homepage 'http://cairographics.org/pycairo/'
md5 '20337132c4ab06c1146ad384d55372c5'
depends_on 'cairo'
def install
# Python extensions default to universal but cairo may not be universal
ENV['ARCHFLAGS'] = "-arch x86_64" unless ARGV.build_universal?
system "./waf", "configure", "--prefix=#{prefix}", "--nopyc", "--nopyo"
system "./waf", "install"
end
end