homebrew-core/Formula/gobject-introspection.rb

27 lines
941 B
Ruby
Raw Normal View History

require 'formula'
class GobjectIntrospection < Formula
homepage 'http://live.gnome.org/GObjectIntrospection'
url 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.34/gobject-introspection-1.34.1.tar.xz'
sha256 'bf40470c863dbb292ec52d1e84495e9334ea954e3a0ee59d6ff5f8161ea53abd'
2012-08-10 04:53:39 +00:00
option :universal
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on 'libffi'
# To avoid: ImportError: dlopen(./.libs/_giscanner.so, 2): Symbol not found: _PyList_Check
depends_on :python
def install
2012-08-10 04:53:39 +00:00
ENV.universal_binary if build.universal?
inreplace 'giscanner/transformer.py', '/usr/share', HOMEBREW_PREFIX/'share'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
# Tests require (at least) cairo, disable them.
"--disable-tests"
system "make install"
end
end