libcaca: fix optional dep

Declaring an optional dependency inside a conditional defeats the
purpose of optional dependencies.

pkg-config is basically free, let's avoid conditional dependency
problems here.
This commit is contained in:
Jack Nagel 2014-08-24 19:53:36 -05:00
parent 379c1b0e30
commit 92c1ff3ee7

View file

@ -13,15 +13,10 @@ class Libcaca < Formula
sha1 "bd28b6f61505fbf474de658c7ae169da3c3a4366" => :lion
end
option 'with-imlib2', 'Build with Imlib2 support'
depends_on 'pkg-config' => :build
depends_on 'imlib2' => :optional
depends_on :x11 if build.with? "imlib2"
if build.with? "imlib2"
depends_on 'pkg-config' => :build
depends_on 'imlib2' => :optional
end
fails_with :llvm do
cause "Unsupported inline asm: input constraint with a matching output constraint of incompatible type"
end