homebrew-core/Formula/autotrace.rb

31 lines
928 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Autotrace < Formula
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'
2013-02-01 00:10:39 +00:00
depends_on 'imagemagick' => :recommended
# Issue 16569: Use MacPorts patch to port input-png.c to libpng 1.5.
# Fix underquoted m4
def patches
{:p0 => [
'https://trac.macports.org/export/100575/trunk/dports/graphics/autotrace/files/patch-libpng-1.5.diff',
'https://trac.macports.org/export/77101/trunk/dports/graphics/autotrace/files/patch-autotrace.m4.diff'
]}
end
def install
2012-07-30 21:08:07 +00:00
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"]
2013-02-01 00:10:39 +00:00
args << "--without-magick" if build.without? 'imagemagick'
system "./configure", *args
system "make install"
end
2011-03-10 05:11:03 +00:00
end