2010-05-25 16:29:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cairomm < Formula
|
2010-05-25 16:29:08 +00:00
|
|
|
homepage 'http://cairographics.org/cairomm/'
|
2011-05-15 20:38:34 +00:00
|
|
|
url 'http://cairographics.org/releases/cairomm-1.10.0.tar.gz'
|
|
|
|
sha256 '068d96c43eae7b0a3d98648cbfc6fbd16acc385858e9ba6d37b5a47e4dba398f'
|
2010-05-25 16:29:08 +00:00
|
|
|
|
2012-08-12 04:19:06 +00:00
|
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-05-25 16:29:08 +00:00
|
|
|
depends_on 'libsigc++'
|
2013-06-10 21:29:59 +00:00
|
|
|
depends_on 'cairo' => 'with-glib'
|
2012-08-12 04:19:06 +00:00
|
|
|
depends_on :x11 unless build.include? 'without-x'
|
2010-05-25 16:29:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-10-18 20:41:42 +00:00
|
|
|
"--prefix=#{prefix}"
|
2010-05-25 16:29:08 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|