2010-09-27 14:08:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Zint < Formula
|
2010-09-27 14:08:16 +00:00
|
|
|
homepage 'http://www.zint.org.uk'
|
2012-02-22 04:48:36 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/zint/zint/2.4.3/zint-2.4.3.tar.gz'
|
2011-08-30 21:49:10 +00:00
|
|
|
md5 '2b47caff88cb746f212d6a0497185358'
|
2012-02-22 04:48:36 +00:00
|
|
|
|
2010-09-27 14:08:16 +00:00
|
|
|
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
|
|
|
|
|
2011-09-01 20:00:28 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-09-27 14:08:16 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'zint-build' do
|
|
|
|
system "cmake #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{prefix} -DCMAKE_C_FLAGS=-I/usr/X11/include .."
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-09-27 14:08:16 +00:00
|
|
|
end
|
2011-03-14 20:48:20 +00:00
|
|
|
|
|
|
|
def test
|
2011-09-01 20:00:28 +00:00
|
|
|
mktemp do
|
|
|
|
system "#{bin}/zint -o test-zing.png -d 'This Text'"
|
2012-02-22 04:48:36 +00:00
|
|
|
system "/usr/bin/qlmanage -p test-zing.png"
|
2011-09-01 20:00:28 +00:00
|
|
|
end
|
2011-03-14 20:48:20 +00:00
|
|
|
end
|
2010-09-27 14:08:16 +00:00
|
|
|
end
|