diff options
| author | Jack Nagel | 2013-05-03 23:39:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-03 23:39:01 -0500 |
| commit | 8211571d6b5af4fa282087b1bcca4f18ef745ec0 (patch) | |
| tree | 6709f96d2b9ed4d99efe9dba8f78f4a2d5c5ed9e /Library/Formula | |
| parent | 7557d5e23507d9b79457217637952244c48a8821 (diff) | |
| download | homebrew-8211571d6b5af4fa282087b1bcca4f18ef745ec0.tar.bz2 | |
avidemux: make qt option explicit
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/avidemux.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/avidemux.rb b/Library/Formula/avidemux.rb index 9f6b55cd8..c043fa44e 100644 --- a/Library/Formula/avidemux.rb +++ b/Library/Formula/avidemux.rb @@ -28,6 +28,7 @@ class Avidemux < Formula depends_on 'opencore-amr' depends_on 'xvid' depends_on 'x264' + depends_on 'qt' => :optional # Check if this still exists @ XCode-4.3.4 or 4.4.0. I think it's fixed then # by llvm in clang svn. So this will have to persist for older clang. @@ -141,7 +142,7 @@ class Avidemux < Formula # Two dylibs that are only built as part of the Qt gui need an RPATH # set on their internal deps. Check if Qt4 exists before patching them, # otherwise the inreplaces will fail. - if Formula.factory('qt').linked_keg.exist? + if build.with? 'qt' inreplace 'ADM_videoEncoder/ADM_vidEnc_xvid/qt4/cmake_install.cmake', '"libADM_vidEnc_xvid.dylib"', '"${CMAKE_INSTALL_PREFIX}/lib/ADM_plugins/videoEncoder/libADM_vidEnc_xvid.dylib"' @@ -175,13 +176,12 @@ class Avidemux < Formula end # of plugbuild end - def caveats; <<-EOS.undent - The command line program avidemux2_cli gets installed in your PATH. - The Qt gui is installed if you have Qt4, and its location is - #{prefix}/avidemux2.app - You can double-click it in Finder or link it into ~/Applications with - brew linkapps - EOS + def caveats + if build.with? 'qt' then <<-EOS.undent + The Qt GUI has been installed to + #{opt_prefix}/avidemux2.app + EOS + end end end |
