homebrew-core/Formula/autotrace.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

30 lines
929 B
Ruby

require 'formula'
class Autotrace < Formula
homepage 'http://autotrace.sourceforge.net'
url 'https://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz'
sha1 '679e4912528030b86f23db5b99e60f8e7df883fd'
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
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"]
args << "--without-magick" if build.without? 'imagemagick'
system "./configure", *args
system "make install"
end
end