blob: 87c4cc348004f4c78e16534df67ed280ac90cdd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  | 
require 'formula'
class Zint < Formula
  homepage 'http://zint.github.io/'
  url 'https://github.com/downloads/zint/zint/zint-2.4.3.tar.gz'
  sha1 '300732d03c77ccf1031c485a20f09b51495ef5a3'
  revision 1
  head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
  option "with-qt", "Build the zint-qt GUI"
  deprecated_option "qt" => "with-qt"
  depends_on 'cmake' => :build
  depends_on 'libpng'
  depends_on 'qt' => :optional
  def install
    mkdir 'zint-build' do
      system "cmake", "..", *std_cmake_args
      system "make install"
    end
  end
  test do
    system "#{bin}/zint", "-o", "test-zing.png", "-d", "This Text"
  end
end
  |