homebrew-core/Formula/pygobject3.rb
Tom Schoonjans a835c118ff pygobject3 3.16.2
version bump
make check support removed since it will always fail: it
relies on linking executables against dynamically loadable modules which
works on Linux but is not supported on Mac OS X

Closes Homebrew/homebrew#40747.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-15 21:30:56 +01:00

37 lines
1.1 KiB
Ruby

class Pygobject3 < Formula
desc "GLib/GObject/GIO Python bindings for Python 3"
homepage "https://live.gnome.org/PyGObject"
url "https://download.gnome.org/sources/pygobject/3.16/pygobject-3.16.2.tar.xz"
sha256 "de620e00fe7ecb788aa2dc0d664e41f71b8e718e728168e8d982cf193a9e7e64"
option :universal
depends_on "pkg-config" => :build
depends_on "libffi" => :optional
depends_on "glib"
depends_on :python => :recommended
depends_on :python3 => :optional
depends_on "py2cairo" if build.with? "python"
depends_on "py3cairo" if build.with? "python3"
depends_on "gobject-introspection"
def install
ENV.universal_binary if build.universal?
Language::Python.each_python(build) do |python, _version|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "PYTHON=#{python}"
system "make", "install"
system "make", "clean"
end
end
test do
Pathname("test.py").write <<-EOS.undent
import gi
assert("__init__" in gi.__file__)
EOS
Language::Python.each_python(build) do |python, _version|
system python, "test.py"
end
end
end