diff options
| author | Adam Vandenberg | 2012-08-26 22:25:33 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2012-08-26 22:25:33 -0700 | 
| commit | 927e21ac7e7e3ceac6c4b5aec62037785f794750 (patch) | |
| tree | 9ba60c8eebacb5dd0dd745e822e0c8a1009f56ac | |
| parent | 6d35d19d81d9d66c0cb411a191c72348d7a556e0 (diff) | |
| download | homebrew-927e21ac7e7e3ceac6c4b5aec62037785f794750.tar.bz2 | |
dcmtk: use new dsl
| -rw-r--r-- | Library/Formula/dcmtk.rb | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/dcmtk.rb b/Library/Formula/dcmtk.rb index 3379d8f5d..ff7d2b803 100644 --- a/Library/Formula/dcmtk.rb +++ b/Library/Formula/dcmtk.rb @@ -5,13 +5,11 @@ class Dcmtk < Formula    url 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.tar.gz'    sha1 '469e017cffc56f36e834aa19c8612111f964f757' +  option 'with-docs', 'Install development libraries/headers and HTML docs' +    depends_on :libpng    depends_on 'libtiff' -  depends_on 'doxygen' if ARGV.include? '--with-docs' - -  def options -    [['--with-docs', 'Install development libraries/headers and HTML docs']] -  end +  depends_on 'doxygen' if build.include? 'with-docs'    fails_with :clang do      build 421 @@ -21,11 +19,11 @@ class Dcmtk < Formula      ENV.m64 if MacOS.prefer_64_bit?      args = std_cmake_args -    args << '-DDCMTK_WITH_DOXYGEN=YES' if ARGV.include? '--with-docs' +    args << '-DDCMTK_WITH_DOXYGEN=YES' if build.include? 'with-docs'      mkdir 'build' do        system 'cmake', '..', *args -      system 'make DOXYGEN' if ARGV.include? '--with-docs' +      system 'make DOXYGEN' if build.include? 'with-docs'        system 'make install'      end    end  | 
