diff options
| author | Ralf Stephan | 2011-12-19 08:53:51 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-18 21:38:50 -0800 |
| commit | 1fcfc3412087f12cc697481cba2b53dc44129542 (patch) | |
| tree | 9c2a311711a3d5951f4c22c4c60a5c351629975a /Library | |
| parent | 99b4fd828158891b1d7e30d14c77105413ebf04f (diff) | |
| download | homebrew-1fcfc3412087f12cc697481cba2b53dc44129542.tar.bz2 | |
py2cairo 1.10.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/py2cairo.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/py2cairo.rb b/Library/Formula/py2cairo.rb new file mode 100644 index 000000000..b1b60eea9 --- /dev/null +++ b/Library/Formula/py2cairo.rb @@ -0,0 +1,16 @@ +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 |
