Skip to content

Instantly share code, notes, and snippets.

@Gui13
Created October 27, 2014 13:43
Show Gist options
  • Save Gui13/cdcad37faa6b8ffa0588 to your computer and use it in GitHub Desktop.
Save Gui13/cdcad37faa6b8ffa0588 to your computer and use it in GitHub Desktop.
gtk-mac-integration 2.0.5 brew
require 'formula'
class GtkMacIntegration < Formula
homepage 'https://live.gnome.org/GTK+/OSX'
url 'ftp://ftp.gnome.org/pub/gnome/sources/gtk-mac-integration/2.0/gtk-mac-integration-2.0.5.tar.xz'
sha1 '74e43c2fff14ca4aff3a8f6c35660bedc7a349a1'
head 'git://git.gnome.org/gtk-mac-integration'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gtk+'
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
prefix.install "src/.libs/test-integration"
(prefix + "src").install "src/testui.xml"
end
def test
system "cd #{prefix} && ./test-integration"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment