Skip to content

Instantly share code, notes, and snippets.

@kakutani
Created December 22, 2010 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kakutani/751503 to your computer and use it in GitHub Desktop.
Save kakutani/751503 to your computer and use it in GitHub Desktop.
require 'formula'
class Cairo <Formula
url 'http://cairographics.org/releases/cairo-1.8.10.tar.gz'
homepage 'http://cairographics.org/'
md5 'b60a82f405f9400bbfdcf850b1728d25'
depends_on 'pkg-config' => :build
depends_on 'libpng'
depends_on 'pixman'
# Comes with Snow Leopard, but not Leopard
# keg_only :provided_by_osx
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-x",
"--enable-quartz",
"--enable-quartz-font",
"--enable-quartz-image",
"--disable-xlib",
"--disable-xlib-xrender"
system "make install"
end
end
require 'formula'
class Gtkx <Formula
url 'ftp://ftp.gnome.org/pub/gnome/sources/gtk+/2.20/gtk+-2.20.1.tar.bz2'
homepage 'http://www.gtk.org/'
sha256 '0e081731d21e34ff45c82199490c2889504fa8b3c7e117c043e82ababaec0f65'
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
# Used by pango, but keg-only, so needs to be added to
# the flags for gtk+ explicitly.
depends_on 'cairo' if MACOS_VERSION < 10.6
depends_on 'pango'
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
def install
fails_with_llvm "Undefined symbols when linking", :build => "2326"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest",
"--with-gdktarget=quartz"
system "make install"
end
def test
system "gtk-demo"
end
end
require 'formula'
class Pango <Formula
url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.3.tar.bz2'
homepage 'http://www.pango.org/'
sha256 '5e278bc9430cc7bb00270f183360d262c5006b51248e8b537ea904573f200632'
depends_on 'pkg-config' => :build
depends_on 'glib'
if MACOS_VERSION < 10.6
depends_on 'fontconfig' # Leopard's fontconfig is too old.
depends_on 'cairo' # Leopard doesn't come with Cairo.
end
def install
fails_with_llvm "Undefined symbols when linking", :build => "2326"
system "./configure", "--prefix=#{prefix}", "--without-x",
"--enable-static",
"--disable-introspection",
"--x-include=#{prefix}/include",
"--x-lib=#{prefix}/lib"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment