2010-09-02 12:53:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Autotrace < Formula
|
2010-09-02 12:53:10 +00:00
|
|
|
homepage 'http://autotrace.sourceforge.net'
|
2012-07-30 21:08:07 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz'
|
|
|
|
sha1 '679e4912528030b86f23db5b99e60f8e7df883fd'
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2012-07-30 21:08:07 +00:00
|
|
|
option 'without-imagemagick', 'Compile without ImageMagick'
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2012-07-30 21:08:07 +00:00
|
|
|
depends_on 'imagemagick' unless build.include? 'without-imagemagick'
|
2010-09-02 12:53:10 +00:00
|
|
|
|
|
|
|
def install
|
2012-07-30 21:08:07 +00:00
|
|
|
args = ["--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"]
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2012-07-30 21:08:07 +00:00
|
|
|
args << "--without-magick" if build.include? 'without-imagemagick'
|
2010-09-02 12:53:10 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|