homebrew-core/Formula/py2cairo.rb
2018-07-07 23:16:49 -07:00

25 lines
865 B
Ruby

class Py2cairo < Formula
desc "Python 2 bindings for the Cairo graphics library"
homepage "https://cairographics.org/pycairo/"
url "https://github.com/pygobject/pycairo/releases/download/v1.17.1/pycairo-1.17.1.tar.gz"
sha256 "0f0a35ec923d87bc495f6753b1e540fd046d95db56a35250c44089fbce03b698"
bottle do
cellar :any
sha256 "cc27ae0fe2cb2fc727536d20f61570ae84e44e25091d597f90998da561df2ae4" => :high_sierra
sha256 "aaf3782651fff409434c559defc6ccc043d7070ae1dae4dcf5e9c42fb7c72430" => :sierra
sha256 "13175f0338beb6d0253974f01422fcbbb3cb3b47d43af1a51689dd1f803e62d8" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "python@2"
def install
system "python", *Language::Python.setup_install_args(prefix)
end
test do
system "python", "-c", "import cairo; print(cairo.version)"
end
end