aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cogl.rb21
1 files changed, 19 insertions, 2 deletions
diff --git a/Library/Formula/cogl.rb b/Library/Formula/cogl.rb
index 7de45db11..afe2423b3 100644
--- a/Library/Formula/cogl.rb
+++ b/Library/Formula/cogl.rb
@@ -2,8 +2,8 @@ require "formula"
class Cogl < Formula
homepage "http://developer.gnome.org/cogl/"
- url "http://ftp.gnome.org/pub/gnome/sources/cogl/1.14/cogl-1.14.0.tar.xz"
- sha256 "276e8c9f5ff0fcd57c1eaf74cc245f41ad469a95a18ac831fac2d5960baa5ae8"
+ url "http://ftp.gnome.org/pub/gnome/sources/cogl/1.18/cogl-1.18.2.tar.xz"
+ sha256 "9278e519d5480eb0379efd48db024e8fdbf93f01dff48a7e756b85b508a863aa"
head do
url "git://git.gnome.org/cogl"
@@ -21,11 +21,28 @@ class Cogl < Formula
depends_on :x11 => "2.5.1" if build.with? "x"
depends_on "gobject-introspection"
+ # Lion's grep fails, which later results in compilation failures:
+ # libtool: link: /usr/bin/grep -E -e [really long regexp] ".libs/libcogl.exp" > ".libs/libcogl.expT"
+ # grep: Regular expression too big
+ resource "grep" do
+ url "http://ftpmirror.gnu.org/grep/grep-2.20.tar.xz"
+ mirror "https://ftp.gnu.org/gnu/grep/grep-2.20.tar.xz"
+ sha256 "f0af452bc0d09464b6d089b6d56a0a3c16672e9ed9118fbe37b0b6aeaf069a65"
+ end if MacOS.version == :lion
+
# Patch from MacPorts, reported upstream at https://bugzilla.gnome.org/show_bug.cgi?id=708825
# https://trac.macports.org/browser/trunk/dports/graphics/cogl/files/patch-clock_gettime.diff
patch :DATA
def install
+ resource("grep").stage do
+ system "./configure", "--disable-dependency-tracking",
+ "--disable-nls",
+ "--prefix=#{buildpath}/grep"
+ system "make", "install"
+ ENV["GREP"] = "#{buildpath}/grep/bin/grep"
+ end if MacOS.version == :lion
+
system "./autogen.sh" if build.head?
args = %W[
--disable-dependency-tracking