homebrew-core/Formula/zint.rb
samueljohn 4d1c18decc zint: Remove redundnat flags.
- the std_cmake_args already include the prefix.
- The CMAKE_C_FLAGS are no longer needed for cmake >= 2.8.8
- Update to options DSL.

Closes Homebrew/homebrew#12921.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-22 06:16:10 -07:00

29 lines
692 B
Ruby

require 'formula'
class Zint < Formula
homepage 'http://zint.github.com/'
url 'https://github.com/downloads/zint/zint/zint-2.4.3.tar.gz'
sha1 '300732d03c77ccf1031c485a20f09b51495ef5a3'
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
option 'qt', 'Build the zint-qt GUI.'
depends_on 'cmake' => :build
depends_on :x11
depends_on 'qt' => :optional if build.include? 'qt'
def install
mkdir 'zint-build' do
system "cmake", "..", *std_cmake_args
system "make install"
end
end
def test
mktemp do
system "#{bin}/zint", "-o", "test-zing.png", "-d", "This Text"
system "/usr/bin/qlmanage", "-p", "test-zing.png"
end
end
end