aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 21:51:17 -0700
committerAdam Vandenberg2012-08-09 21:51:17 -0700
commit75013cccedc81a19e75039deb16f0e181c5f237a (patch)
tree5847bc52e4db52768582951a986de1f96d36cd32
parent0f227264773fd34259ad92bb360648ed8726eefc (diff)
downloadhomebrew-75013cccedc81a19e75039deb16f0e181c5f237a.tar.bz2
gegl: use options dsl
-rw-r--r--Library/Formula/gegl.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/Library/Formula/gegl.rb b/Library/Formula/gegl.rb
index 8ba3979e6..d13829056 100644
--- a/Library/Formula/gegl.rb
+++ b/Library/Formula/gegl.rb
@@ -1,28 +1,29 @@
require 'formula'
class Gegl < Formula
- url 'ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2'
homepage 'http://www.gegl.org/'
+ url 'ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2'
md5 '32b00002f1f1e316115c4ed922e1dec8'
+ option :universal
+
depends_on 'babl'
depends_on 'glib'
depends_on 'gettext'
depends_on 'intltool' => :build
depends_on 'pkg-config' => :build
- def options
- [
- ["--universal", "Builds a universal binary"],
- ]
- end
-
def install
# ./configure breaks when optimization is enabled with llvm
ENV.no_optimization if ENV.compiler == :llvm
- argv = ["--disable-docs", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
- if ARGV.build_universal?
+ argv = %W[
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --disable-docs
+ ]
+ if build.universal?
ENV.universal_binary
# ffmpeg's formula is currently not universal-enabled
argv << "--without-libavformat"