aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBenjamin Maus2010-09-02 14:53:10 +0200
committerDavid Höppner2010-09-03 18:58:51 +0200
commit575b533fa332feafbadab104a4d9088dcbe50499 (patch)
tree47ffef54581c606916759c0f673c422c8149736b /Library/Formula
parentd0c19cc2502db6a374a40ed2bf8d71714afa4956 (diff)
downloadhomebrew-575b533fa332feafbadab104a4d9088dcbe50499.tar.bz2
Added formula for autotrace utility
Autotrace is a small utility for tracing bitmap files to vector graphics. The tool has been updated years ago, but still works and compiles nicely. As default it is compiled with ImageMagick (as the default configure script would do). To disable it set "--without-imagemagick" Signed-off-by: David Höppner <0xffea@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/autotrace.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/autotrace.rb b/Library/Formula/autotrace.rb
new file mode 100644
index 000000000..379ee8347
--- /dev/null
+++ b/Library/Formula/autotrace.rb
@@ -0,0 +1,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 \ No newline at end of file