homebrew-core/Formula/zint.rb
Jack Nagel c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00

28 lines
724 B
Ruby

require 'formula'
class Zint < Formula
homepage 'http://www.zint.org.uk'
url 'http://downloads.sourceforge.net/project/zint/zint/2.4.3/zint-2.4.3.tar.gz'
md5 '2b47caff88cb746f212d6a0497185358'
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
depends_on 'cmake' => :build
def install
mkdir 'zint-build' do
system "cmake", "..",
"-DCMAKE_PREFIX_PATH=#{prefix}",
"-DCMAKE_C_FLAGS=-I/usr/X11/include",
*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