diff options
| author | Adam Vandenberg | 2013-05-31 13:50:13 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-31 13:55:33 -0700 |
| commit | 87cc5eb7f337adc9d5945504760eb1ff63e22c21 (patch) | |
| tree | b794ed5fad73088b3939be1d86431476f53fa7e0 /Library/Formula | |
| parent | a8aca9e520667b5e163bf99a167b7b6d96a716b5 (diff) | |
| download | homebrew-87cc5eb7f337adc9d5945504760eb1ff63e22c21.tar.bz2 | |
libmtp: does not compile on Snow Leopard if libgcrypt is linked
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libmtp.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Library/Formula/libmtp.rb b/Library/Formula/libmtp.rb index 3c051d187..95bf7c03c 100644 --- a/Library/Formula/libmtp.rb +++ b/Library/Formula/libmtp.rb @@ -1,13 +1,26 @@ require 'formula' +class NoGcrypt < Requirement + satisfy(:build_env => false) { !Formula.factory("libgcrypt").installed? } + + def message; <<-EOS.undent + This software can fail to compile when libgcrypt is installed. + You may need to try: + brew unlink libgcrypt + brew install libmtp + brew link libgcrypt + EOS + end +end + class Libmtp < Formula homepage 'http://libmtp.sourceforge.net/' url 'http://sourceforge.net/projects/libmtp/files/libmtp/1.1.6/libmtp-1.1.6.tar.gz' sha1 'f9e55c75399fc5f4deabcdfa58e1b01b2e6e3283' + depends_on NoGcrypt depends_on "pkg-config" => :build depends_on "libusb-compat" - depends_on "libgcrypt" => :optional def install system "./configure", "--disable-dependency-tracking", |
