homebrew-core/Formula/py2cairo.rb
2018-02-11 04:13:06 -08:00

25 lines
897 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.16.2/pycairo-1.16.2.tar.gz"
sha256 "49a3cf8737c009852e97289d43e952bf228d8df53a7ddb840d4deeb4d0cc1ea7"
bottle do
cellar :any
sha256 "e687f48040be3abc87648271a1f80580d79ecac73f0a5c2261d3973f24c59652" => :high_sierra
sha256 "8aef6503ecaa21895abdb1b94e9401350bb6a5de8c81b37185360e061ce68942" => :sierra
sha256 "967664febee0fde9a33928b795e5fbb123b38f9a5b6ea5a119168867ce7451cf" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "python" if MacOS.version <= :snow_leopard
def install
system "python", *Language::Python.setup_install_args(prefix)
end
test do
system "python", "-c", "import cairo; print(cairo.version)"
end
end