Created
July 5, 2012 20:07
-
-
Save smiler/3056138 to your computer and use it in GitHub Desktop.
This file contains 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 Gtkx < Formula | |
homepage 'http://gtk.org/' | |
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.10.tar.xz' | |
sha256 'ea56e31bb9d6e19ed2e8911f4c7ac493cb804431caa21cdcadae625d375a0e89' | |
depends_on 'pkg-config' => :build | |
depends_on 'xz' => :build | |
depends_on 'glib' | |
depends_on 'jpeg' | |
depends_on 'libtiff' | |
depends_on 'gdk-pixbuf' | |
depends_on 'pango' | |
depends_on 'jasper' => :optional | |
depends_on 'atk' => :optional | |
depends_on 'cairo' | |
depends_on :x11 | |
fails_with :llvm do | |
build 2326 | |
cause "Undefined symbols when linking" | |
end | |
def patches | |
# Fix build of tests with quartz backend | |
# Fix when glib2 is built with clang | |
# See patches from https://trac.macports.org/browser/trunk/dports/gnome/gtk2 | |
#DATA | |
{ :p0 => [ | |
'https://trac.macports.org/export/95028/trunk/dports/gnome/gtk2/files/patch-aliases.diff', | |
'https://trac.macports.org/export/95028/trunk/dports/gnome/gtk2/files/patch-gtk-builder-convert.diff', | |
'https://trac.macports.org/export/95028/trunk/dports/gnome/gtk2/files/patch-tests_Makefile.in.diff' | |
] | |
} | |
end | |
def install | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--disable-glibtest", | |
"--disable-introspection", | |
"--with-gdktarget=quartz", | |
"--disable-visibility" | |
system "make install" | |
end | |
def test | |
system "#{bin}/gtk-demo" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment