blob: 379ee8347cb3301b301e7ef008884bda2e5bf2fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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'
depends_on 'libpng'
depends_on 'imagemagick' unless without_imagemagick?
def options
[
['--without-imagemagick', 'Compile without ImageMagick (non-bloaty)']
]
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
end
|