homebrew-core/Formula/zint.rb

30 lines
730 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Zint < Formula
homepage 'http://zint.github.com/'
url 'https://github.com/downloads/zint/zint/zint-2.4.3.tar.gz'
md5 '2b47caff88cb746f212d6a0497185358'
2012-02-22 04:48:36 +00:00
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
depends_on 'cmake' => :build
depends_on :x11
def install
2012-02-22 04:48:36 +00:00
mkdir 'zint-build' do
system "cmake", "..",
"-DCMAKE_PREFIX_PATH=#{prefix}",
"-DCMAKE_C_FLAGS=-I#{MacOS::X11.include}",
*std_cmake_args
2012-02-22 04:48:36 +00:00
system "make install"
end
end
2011-03-14 20:48:20 +00:00
def test
mktemp do
system "#{bin}/zint", "-o", "test-zing.png", "-d", "This Text"
system "/usr/bin/qlmanage", "-p", "test-zing.png"
end
2011-03-14 20:48:20 +00:00
end
end