2010-09-27 14:08:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Zint < Formula
|
2011-02-16 11:36:06 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/zint/zint/2.4.1/zint-2.4.1.tar.gz'
|
2010-09-27 14:08:16 +00:00
|
|
|
homepage 'http://www.zint.org.uk'
|
2011-02-16 11:36:06 +00:00
|
|
|
md5 '7ec4441907827fa613b11847a467c61d'
|
2010-09-27 14:08:16 +00:00
|
|
|
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
|
|
|
|
|
|
|
|
depends_on 'cmake'
|
|
|
|
|
|
|
|
def install
|
|
|
|
cd('build')
|
2011-04-18 02:45:22 +00:00
|
|
|
system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{prefix} -DCMAKE_C_FLAGS=-I/usr/X11/include"
|
2010-09-27 14:08:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-14 20:48:20 +00:00
|
|
|
|
|
|
|
def test
|
|
|
|
system "zint -o test-zing.png -d 'This Text'"
|
|
|
|
system "open test-zing.png"
|
|
|
|
puts "You may want to `rm test-zing.png`"
|
|
|
|
end
|
2010-09-27 14:08:16 +00:00
|
|
|
end
|