Skip to content

Commit

Permalink
gobject-introspection: remove --with-tests
Browse files Browse the repository at this point in the history
The tests require a weird configuration and fail on OS X.

Failures reported upstream: https://bugzilla.gnome.org/show_bug.cgi?id=752468

Closes Homebrew/legacy-homebrew#41707.
  • Loading branch information
tdsmith committed Jul 16, 2015
1 parent 2dca50b commit da56fe5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Formula/gobject-introspection.rb
Expand Up @@ -12,18 +12,10 @@ class GobjectIntrospection < Formula
end

option :universal
option "with-tests", "Run tests in addition to the build (requires cairo)"

depends_on "pkg-config" => :run
depends_on "glib"
depends_on "libffi"
depends_on "cairo" => :build if build.with? "tests"

# Allow tests to execute on OS X (.so => .dylib)
patch do
url "https://gist.githubusercontent.com/krrk/6958869/raw/de8d83009d58eefa680a590f5839e61a6e76ff76/gobject-introspection-tests.patch"
sha1 "1f57849db76cd2ca26ddb35dc36c373606414dfc"
end if build.with? "tests"

resource "tutorial" do
url "https://gist.github.com/7a0023656ccfe309337a.git",
Expand All @@ -38,12 +30,8 @@ def install
s.change_make_var! "GOBJECT_INTROSPECTION_LIBDIR", "#{HOMEBREW_PREFIX}/lib"
end

args = %W[--disable-dependency-tracking --prefix=#{prefix}]
args << "--with-cairo" if build.with? "tests"

system "./configure", *args
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
system "make", "check" if build.with? "tests"
system "make", "install"
end

Expand Down

0 comments on commit da56fe5

Please sign in to comment.