homebrew-core/Formula/zint.rb

28 lines
614 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Zint < Formula
2013-04-07 02:34:41 +00:00
homepage 'http://zint.github.io/'
url 'https://github.com/downloads/zint/zint/zint-2.4.3.tar.gz'
sha1 '300732d03c77ccf1031c485a20f09b51495ef5a3'
2014-03-23 02:51:41 +00:00
revision 1
2012-02-22 04:48:36 +00:00
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
option 'qt', 'Build the zint-qt GUI.'
depends_on 'cmake' => :build
2014-03-23 02:51:41 +00:00
depends_on 'libpng'
2013-02-02 03:57:37 +00:00
depends_on 'qt' if build.include? 'qt'
def install
2012-02-22 04:48:36 +00:00
mkdir 'zint-build' do
system "cmake", "..", *std_cmake_args
2012-02-22 04:48:36 +00:00
system "make install"
end
end
2011-03-14 20:48:20 +00:00
2013-02-02 05:12:59 +00:00
test do
system "#{bin}/zint", "-o", "test-zing.png", "-d", "This Text"
2011-03-14 20:48:20 +00:00
end
end