diff options
| author | Adam Vandenberg | 2012-07-30 14:08:07 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:01:39 -0700 |
| commit | a938087da7a245826a49b4b2f4d551ec6ea823e3 (patch) | |
| tree | ea1141b35075858a318a91897fdbd8019a2c8095 /Library/Formula/autotrace.rb | |
| parent | fd85db5f2a527f03cfb70198f475d2fd91e4eab3 (diff) | |
| download | homebrew-a938087da7a245826a49b4b2f4d551ec6ea823e3.tar.bz2 | |
autotrace: use options dsl
Diffstat (limited to 'Library/Formula/autotrace.rb')
| -rw-r--r-- | Library/Formula/autotrace.rb | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Library/Formula/autotrace.rb b/Library/Formula/autotrace.rb index fa9a0f764..bd5ffad7b 100644 --- a/Library/Formula/autotrace.rb +++ b/Library/Formula/autotrace.rb @@ -1,27 +1,21 @@ require 'formula' -def without_imagemagick? - ARGV.include? '--without-imagemagick' -end - class Autotrace < Formula - url 'http://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz' homepage 'http://autotrace.sourceforge.net' - md5 '54eabbb38d2076ded6d271e1ee4d0783' + url 'http://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz' + sha1 '679e4912528030b86f23db5b99e60f8e7df883fd' - depends_on 'imagemagick' unless without_imagemagick? + option 'without-imagemagick', 'Compile without ImageMagick' - def options - [['--without-imagemagick', 'Compile without ImageMagick (non-bloaty)']] - end + depends_on 'imagemagick' unless build.include? 'without-imagemagick' def install - args = [ "--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--mandir=#{man}" ] + args = ["--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--mandir=#{man}"] - args << "--without-magick" if without_imagemagick? + args << "--without-magick" if build.include? 'without-imagemagick' system "./configure", *args system "make install" |
