2010-09-27 14:08:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Zint < Formula
|
2012-06-07 21:58:17 +00:00
|
|
|
homepage 'http://zint.github.com/'
|
|
|
|
url 'https://github.com/downloads/zint/zint/zint-2.4.3.tar.gz'
|
2012-06-19 15:09:35 +00:00
|
|
|
sha1 '300732d03c77ccf1031c485a20f09b51495ef5a3'
|
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'
|
|
|
|
|
2012-06-19 15:09:35 +00:00
|
|
|
option 'qt', 'Build the zint-qt GUI.'
|
|
|
|
|
2011-09-01 20:00:28 +00:00
|
|
|
depends_on 'cmake' => :build
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2012-06-19 15:09:35 +00:00
|
|
|
depends_on 'qt' => :optional if build.include? 'qt'
|
2010-09-27 14:08:16 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'zint-build' do
|
2012-06-19 15:09:35 +00:00
|
|
|
system "cmake", "..", *std_cmake_args
|
2012-02-22 04:48:36 +00:00
|
|
|
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
|
2012-05-15 18:31:21 +00:00
|
|
|
system "#{bin}/zint", "-o", "test-zing.png", "-d", "This Text"
|
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
|