diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/py3cairo.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/py3cairo.rb b/Library/Formula/py3cairo.rb new file mode 100644 index 000000000..f18e21609 --- /dev/null +++ b/Library/Formula/py3cairo.rb @@ -0,0 +1,20 @@ +class Py3cairo < Formula + homepage "http://cairographics.org/pycairo/" + url "http://cairographics.org/releases/pycairo-1.10.0.tar.bz2" + sha256 "9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be" + + depends_on "pkg-config" => :build + depends_on "cairo" + depends_on :python3 + + def install + ENV["PYTHON"] = "python3" + system "./waf", "configure", "--prefix=#{prefix}" + system "./waf", "build" + system "./waf", "install" + end + + test do + system "python3", "-c", "import cairo; print(cairo.version)" + end +end |
