d40e83729d
- Upgrade to 1.12.2 - Add an option to build `without-x` like cairo and pango - Add a dep on x11 by default because it uses cairo, pango, cogl - Add a few flags like `disable-debug, disable-tests - Works well with superenv. Requires the new atk PR. Fixes Homebrew/homebrew#15034 Closes Homebrew/homebrew#15634. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
38 lines
1 KiB
Ruby
38 lines
1 KiB
Ruby
require 'formula'
|
|
|
|
class Clutter < Formula
|
|
homepage 'http://clutter-project.org/'
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/clutter/1.12/clutter-1.12.2.tar.xz'
|
|
sha256 '27a8c4495099ea33de39c2d9a911a2c9e00ffa4dcc8f94fafedbcc752c0ddf13'
|
|
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz' => :build
|
|
depends_on 'glib'
|
|
depends_on 'gdk-pixbuf'
|
|
depends_on 'cogl'
|
|
depends_on 'cairo' # for cairo-gobject
|
|
depends_on 'atk'
|
|
depends_on 'pango'
|
|
depends_on 'json-glib'
|
|
depends_on :x11 unless build.include? 'without-x'
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--disable-debug
|
|
--prefix=#{prefix}
|
|
--disable-introspection
|
|
--disable-silent-rules
|
|
--disable-Bsymbolic
|
|
--disable-tests
|
|
--disable-examples
|
|
--disable-gtk-doc-html
|
|
--enable-quartz-backend
|
|
]
|
|
args << '--disable-x11-backend' << '--without-x' if build.include? 'without-x'
|
|
system './configure', *args
|
|
system 'make install'
|
|
end
|
|
end
|