diff options
| author | Dominyk Tiller | 2014-10-26 01:20:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-26 11:37:01 +0000 |
| commit | e0f9919f56351b0a684eedb58352f6b5a6240a4e (patch) | |
| tree | 5b0bd008031aa3d9931b4fb441bd813d816e8650 /Library/Formula | |
| parent | 040c1bcbfde761dc34819a3083ddbe8c3f7e0c5d (diff) | |
| download | homebrew-e0f9919f56351b0a684eedb58352f6b5a6240a4e.tar.bz2 | |
gegl: added head
Part 2/2 of Closing #33582.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gegl.rb | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/Library/Formula/gegl.rb b/Library/Formula/gegl.rb index c562fa68a..8a3d7da86 100644 --- a/Library/Formula/gegl.rb +++ b/Library/Formula/gegl.rb @@ -1,17 +1,38 @@ -require 'formula' +require "formula" class Gegl < Formula - homepage 'http://www.gegl.org/' - url 'ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2' - sha1 '764cc66cb3c7b261b8fc18a6268a0e264a91d573' + homepage "http://www.gegl.org/" + + stable do + # Use Debian because the official URL is unreliable. + url "https://mirrors.kernel.org/debian/pool/main/g/gegl/gegl_0.2.0.orig.tar.bz2" + mirror "ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2" + sha1 "764cc66cb3c7b261b8fc18a6268a0e264a91d573" + end + + head do + # Use the Github mirror because official git unreliable. + url "https://github.com/GNOME/gegl.git" + + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + end option :universal - depends_on 'babl' - depends_on 'glib' - depends_on 'gettext' - depends_on 'intltool' => :build - depends_on 'pkg-config' => :build + depends_on "intltool" => :build + depends_on "pkg-config" => :build + depends_on "babl" + depends_on "glib" + depends_on "gettext" + depends_on "libpng" + depends_on "jpeg" => :optional + depends_on "lua" => :optional + depends_on "cairo" => :optional + depends_on "pango" => :optional + depends_on "librsvg" => :optional + depends_on "sdl" => :optional def install # ./configure breaks when optimization is enabled with llvm @@ -23,15 +44,17 @@ class Gegl < Formula --prefix=#{prefix} --disable-docs ] + if build.universal? ENV.universal_binary # ffmpeg's formula is currently not universal-enabled argv << "--without-libavformat" - opoo 'Compilation may fail at gegl-cpuaccel.c using gcc for a universal build' if ENV.compiler == :gcc + opoo "Compilation may fail at gegl-cpuaccel.c using gcc for a universal build" if ENV.compiler == :gcc end + system "./autogen.sh" if build.head? system "./configure", *argv - system "make install" + system "make", "install" end end |
