homebrew-core/Formula/py3cairo.rb
Kieran Ramos fc88b8e972 New formula: py3cairo
Closes Homebrew/homebrew#23252.

Signed-off-by: Kieran Ramos <ramos.kieran@gmail.com>
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-11-16 23:12:55 -06:00

25 lines
584 B
Ruby

require 'formula'
class Py3cairo < Formula
homepage 'http://cairographics.org/pycairo/'
url 'http://cairographics.org/releases/pycairo-1.10.0.tar.bz2'
sha1 'b4283aa1cc9aafd12fd72ad371303a486da1d014'
depends_on 'pkg-config' => :build
depends_on 'cairo'
depends_on :x11
depends_on :python3
def install
python3 do
ENV['PYTHON'] = "python3"
system "./waf", "configure", "--prefix=#{prefix}"
system "./waf", "build"
system "./waf", "install"
end
end
test do
system "python3", "-c", "import cairo; print(cairo.version)"
end
end