homebrew-core/Formula/cairo.rb

29 lines
914 B
Ruby
Raw Normal View History

2010-04-26 16:29:38 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Cairo < Formula
2010-04-26 16:29:38 +00:00
homepage 'http://cairographics.org/'
url 'http://www.cairographics.org/releases/cairo-1.10.2.tar.gz'
2011-03-28 15:53:37 +00:00
sha1 'ccce5ae03f99c505db97c286a0c9a90a926d3c6e'
2010-04-26 16:29:38 +00:00
depends_on 'pkg-config' => :build
2010-04-26 16:29:38 +00:00
depends_on 'pixman'
2011-03-16 05:01:31 +00:00
keg_only :provided_by_osx,
"The Cairo provided by Leopard is too old for newer software to link against."
2010-04-26 16:29:38 +00:00
2011-05-10 21:24:49 +00:00
fails_with_llvm "Gives an LLVM ERROR with Xcode 4 on some CPUs"
2010-04-26 16:29:38 +00:00
def install
2011-09-03 02:02:17 +00:00
# Cairo doesn't build correctly with llvm-gcc 4.2, so force normal gcc.
# See:
# https://github.com/mxcl/homebrew/issues/6631
# https://trac.macports.org/ticket/30370
# https://trac.macports.org/browser/trunk/dports/graphics/cairo/Portfile
ENV.gcc_4_2
2010-04-26 16:29:38 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-x"
system "make install"
end
end