diff options
| author | Jack Nagel | 2014-08-24 19:53:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-24 19:53:36 -0500 |
| commit | 4a939cc6613049a134d87f9091594cd4989bf6a4 (patch) | |
| tree | 2327cdbd7b714a007d259b31fb5bdbdce5e814b2 /Library/Formula/libcaca.rb | |
| parent | c5c5c5c528e1890a74420cb6d67a9288e49805e3 (diff) | |
| download | homebrew-4a939cc6613049a134d87f9091594cd4989bf6a4.tar.bz2 | |
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.
Diffstat (limited to 'Library/Formula/libcaca.rb')
| -rw-r--r-- | Library/Formula/libcaca.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Library/Formula/libcaca.rb b/Library/Formula/libcaca.rb index d85f8de85..995dce7ae 100644 --- a/Library/Formula/libcaca.rb +++ b/Library/Formula/libcaca.rb @@ -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 |
