require "formula"
class Clutter < Formula
homepage "https://wiki.gnome.org/Projects/Clutter"
url "http://ftp.gnome.org/pub/gnome/sources/clutter/1.20/clutter-1.20.0.tar.xz"
sha256 "cc940809e6e1469ce349c4bddb0cbcc2c13c087d4fc15cda9278d855ee2d1293"
bottle do
sha1 "f9ef97d254247e2e0ab98fbaf3723d577c115ab4" => :mavericks
sha1 "063234b823140c65483e9ac0dbbf4af63764431b" => :mountain_lion
sha1 "7565ae43a559f988271cfdf8a745cc7919659efe" => :lion
end
deprecated_option "without-x" => "without-x11"
depends_on "pkg-config" => :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 => ["2.5.1", :recommended]
depends_on "gobject-introspection"
def install
args = %W[
--disable-dependency-tracking
--disable-debug
--prefix=#{prefix}
--enable-introspection=yes
--disable-silent-rules
--disable-Bsymbolic
--disable-tests
--disable-examples
--disable-gtk-doc-html
]
if build.with? "x11"
args.concat %w{
--with-x --enable-x11-backend=yes
--enable-gdk-pixbuf=yes
--enable-quartz-backend=no
}
else
args.concat %w{
--without-x --enable-x11-backend=no
--enable-gdk-pixbuf=no
--enable-quartz-backend=yes
}
end
system "./configure", *args
system "make install"
end
end
=ed53bb333b4a2b918a2020343fda89ac8331c101'>treecommitdiffstats
blob: 97f376e444bdc1b946b994018cb8949bbb6b13f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
require 'formula'
module Homebrew extend self
def options
if ARGV.include? '--all'
puts_options Formula.to_a
elsif ARGV.include? '--installed'
puts_options Formula.installed
else
raise FormulaUnspecifiedError if ARGV.named.empty?
puts_options ARGV.formulae
end
end
def puts_options(formulae)
formulae.each do |f|
next if f.build.empty?
if ARGV.include? '--compact'
puts f.build.as_flags.sort * " "
else
puts f.name if formulae.length > 1
dump_options_for_formula f
puts
end
end
end
def dump_options_for_formula f
f.build.sort_by(&:flag).each do |opt|
puts opt.flag
puts "\t"+opt.description
end
if f.devel
puts '--devel'
puts "\tinstall development version #{f.devel.version}"
end
if f.head
puts '--HEAD'
puts "\tinstall HEAD version"
end
end
end
|