aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-10 18:09:15 -0800
committerAdam Vandenberg2012-03-10 18:09:15 -0800
commitb92a8cfd819b808c0144f0558000dc4ff68c3f0e (patch)
treeda66c92bc710cf16808cea7d4bca2c9bfb9ca363 /Library
parent620c037f4a612ea3449e31629d33a38176ae0b3e (diff)
downloadhomebrew-b92a8cfd819b808c0144f0558000dc4ff68c3f0e.tar.bz2
babl: style nit-picks
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/babl.rb21
1 files changed, 10 insertions, 11 deletions
diff --git a/Library/Formula/babl.rb b/Library/Formula/babl.rb
index c46d9e8c9..7cc6986e7 100644
--- a/Library/Formula/babl.rb
+++ b/Library/Formula/babl.rb
@@ -1,8 +1,8 @@
require 'formula'
class Babl < Formula
- url 'ftp://ftp.gimp.org/pub/babl/0.1/babl-0.1.6.tar.bz2'
homepage 'http://www.gegl.org/babl/'
+ url 'ftp://ftp.gimp.org/pub/babl/0.1/babl-0.1.6.tar.bz2'
md5 'dc960981a5ec5330fc1c177be9f59068'
head 'git://git.gnome.org/babl'
@@ -10,27 +10,26 @@ class Babl < Formula
depends_on 'pkg-config' => :build
def options
- [
- ["--universal", "Builds a universal binary"],
- ]
+ [["--universal", "Builds a universal binary"]]
end
def patches
- # Fixes an error when compiling with clang
- # The fix was found on macports: https://trac.macports.org/browser/trunk/dports/graphics/babl/files/clang.patch
+ # Fixes an error when compiling with clang. See:
+ # https://trac.macports.org/browser/trunk/dports/graphics/babl/files/clang.patch
{ :p0 => DATA }
end
def install
if ARGV.build_universal?
ENV.universal_binary
- opoo 'Compilation may fail at babl-cpuaccel.c using gcc for a universal build' if ENV.compiler == :gcc
+ if ENV.compiler == :gcc
+ opoo 'Compilation may fail at babl-cpuaccel.c using gcc for a universal build'
+ end
end
- argv = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
-
- system "./configure", *argv
- system "/usr/bin/make install"
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
end
end