aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-10-23 22:55:46 -0700
committerAdam Vandenberg2012-10-27 07:38:44 -0700
commita57764d76c60d773bf7df2f1da2860faab7473ce (patch)
tree8c53949b4bcdfa6626019694766100fe935ad285 /Library/Formula
parentf3f8ea2bddfac6540500f2c109c8d710a2ffba43 (diff)
downloadhomebrew-a57764d76c60d773bf7df2f1da2860faab7473ce.tar.bz2
cogl 1.12.0
- Upgrade to 1.12.0 - Add an option to build `without-x` like cairo - Add a dep on x11 by default because it uses cairo and pango - Make the x11 dep active if X11 is installed - Works well with superenv & clutter Closes #15633. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cogl.rb17
1 files changed, 12 insertions, 5 deletions
diff --git a/Library/Formula/cogl.rb b/Library/Formula/cogl.rb
index b9b8619a7..b9802954a 100644
--- a/Library/Formula/cogl.rb
+++ b/Library/Formula/cogl.rb
@@ -2,22 +2,29 @@ require 'formula'
class Cogl < Formula
homepage 'http://wiki.clutter-project.org/wiki/Cogl'
- url 'http://ftp.gnome.org/pub/gnome/sources/cogl/1.10/cogl-1.10.4.tar.xz'
- sha256 '0b5c9989f1d07dbda000a68640eb7ebf734513d52e3707668c41eed19991adf9'
+ url 'http://ftp.gnome.org/pub/gnome/sources/cogl/1.12/cogl-1.12.0.tar.xz'
+ sha256 '4e7b5abbf0a1e51d74618db1b513551e7c71b486e17e98373f4db93e7710e2f2'
head 'git://git.gnome.org/cogl'
+ option 'without-x', 'Build without X11 support'
+
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on 'pango'
depends_on 'cairo' # needs cairo-gobject
+ depends_on :x11 if MacOS::X11.installed? or not build.include? 'without-x'
def install
system "./autogen.sh" if build.head?
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--disable-introspection"
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --disable-introspection
+ ]
+ args << '--without-x' if build.include? 'without-x'
+ system './configure', *args
system "make install"
end
end