aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-07-09 16:01:26 -0500
committerJack Nagel2013-07-09 16:01:31 -0500
commit650a07e8c80c82ce3a9c422cba898dadec889efa (patch)
treee0ec4834d86004919af719af37dc5bfaf71586df /Library/Formula
parent5c7b818c3331e61809419ae1e3008034dea69212 (diff)
downloadhomebrew-650a07e8c80c82ce3a9c422cba898dadec889efa.tar.bz2
doxygen: style
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/doxygen.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/doxygen.rb b/Library/Formula/doxygen.rb
index a09f77801..4382eaf51 100644
--- a/Library/Formula/doxygen.rb
+++ b/Library/Formula/doxygen.rb
@@ -12,9 +12,9 @@ class Doxygen < Formula
option 'with-doxywizard', 'Build GUI frontend with qt support.'
option 'with-libclang', 'Build with libclang support.'
- depends_on 'graphviz' if build.include? 'with-dot'
- depends_on 'qt' if build.include? 'with-doxywizard'
- depends_on 'llvm' => '--with-clang' if build.include? 'with-libclang'
+ depends_on 'graphviz' if build.with? 'dot'
+ depends_on 'qt' if build.with? 'doxywizard'
+ depends_on 'llvm' => 'with-clang' if build.with? 'libclang'
def install
args = ["--prefix", prefix]
@@ -30,8 +30,7 @@ class Doxygen < Formula
# otherwise clang may use up large amounts of RAM while
# processing localization files
# gcc doesn't support the flag
- s.gsub! '-Wno-invalid-source-encoding', '' \
- unless ENV.compiler == :clang
+ s.gsub! '-Wno-invalid-source-encoding', '' unless ENV.compiler == :clang
# makefiles hardcode both cc and c++
s.gsub! /cc$/, ENV.cc
s.gsub! /c\+\+$/, ENV.cxx