From 8ad410965099cf7bd204e843a47b34b431d7872e Mon Sep 17 00:00:00 2001 From: dinkypumpkin Date: Fri, 4 Mar 2011 14:22:38 +0000 Subject: [PATCH] dcmtk: added --install-all option The "--install-all" option also installs the developer documentation and header files. Signed-off-by: Adam Vandenberg --- Formula/dcmtk.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Formula/dcmtk.rb b/Formula/dcmtk.rb index 19185e36f1..54ab499e69 100644 --- a/Formula/dcmtk.rb +++ b/Formula/dcmtk.rb @@ -4,9 +4,13 @@ class Dcmtk < Formula homepage 'http://dicom.offis.de/dcmtk.php.en' url 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.tar.gz' md5 '19409e039e29a330893caea98715390e' - version '3.6.0' depends_on 'libtiff' + depends_on 'doxygen' if ARGV.include? '--install-all' + + def options + [['--install-all', 'Install development libraries/headers and HTML docs']] + end def install ENV.deparallelize @@ -16,6 +20,10 @@ class Dcmtk < Formula "--prefix=#{prefix}", "--disable-threads" system "make all" - system "make install" + if ARGV.include? '--install-all' + system "make install-all" + else + system "make install" + end end end