2010-09-02 12:53:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
def without_imagemagick?
|
|
|
|
ARGV.include? '--without-imagemagick'
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Autotrace < Formula
|
2010-09-02 12:53:10 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz'
|
|
|
|
homepage 'http://autotrace.sourceforge.net'
|
|
|
|
md5 '54eabbb38d2076ded6d271e1ee4d0783'
|
|
|
|
|
|
|
|
depends_on 'imagemagick' unless without_imagemagick?
|
|
|
|
|
|
|
|
def options
|
2011-03-14 22:13:57 +00:00
|
|
|
[['--without-imagemagick', 'Compile without ImageMagick (non-bloaty)']]
|
2010-09-02 12:53:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = [ "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}" ]
|
|
|
|
|
|
|
|
args << "--without-magick" if without_imagemagick?
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|