Created
February 1, 2013 21:07
-
-
Save zsol/4694141 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.1.tar.xz' | |
| version '2.0.1' | |
| sha1 '9d939a2e4fb6c0ab4fe3d544ac712a152451249a' | |
| head 'git://git.gnome.org/gtk-mac-integration' | |
| depends_on 'pkg-config' => :build | |
| depends_on 'gtk+' | |
| fails_with :clang do | |
| build 421 | |
| cause <<-EOS.undent | |
| cocoa_menu_item.c:527 fails to compile because 'const gchar *' (aka 'const char *') | |
| is not implicitly converted to 'NSString *' | |
| EOS | |
| end | |
| def patches | |
| # link integration test with Cocoa framework | |
| DATA | |
| end | |
| def install | |
| system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
| "--prefix=#{prefix}" | |
| system "make install" | |
| prefix.install "src/.libs/test-integration" | |
| (prefix + "src").install "src/testui.xml" | |
| end | |
| def test | |
| cd prefix do | |
| system "./test-integration" | |
| end | |
| end | |
| end | |
| __END__ | |
| diff --git a/src/Makefile.in b/src/Makefile.in | |
| index 097eedd..ba441f4 100644 | |
| --- a/src/Makefile.in | |
| +++ b/src/Makefile.in | |
| @@ -325,7 +325,7 @@ integration_include_HEADERS = \ | |
| test_integration_SOURCES = test-integration.c | |
| test_integration_CFLAGS = $(MAC_CFLAGS) | |
| -test_integration_LDADD = $(MAC_LIBS) libgtkmacintegration.la | |
| +test_integration_LDADD = $(MAC_LIBS) -framework Cocoa libgtkmacintegration.la | |
| EXTRA_DIST = testui.xml | |
| @HAVE_INTROSPECTION_TRUE@@INTROSPECTION_TRUE@GtkosxApplication_1_0_gir_SCANNERFLAGS = \ | |
| @HAVE_INTROSPECTION_TRUE@@INTROSPECTION_TRUE@ --identifier-prefix=Gtkosx \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment