zint: modernize, https, sha256

Closes Homebrew/homebrew#37557.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
CNA-Bld 2015-03-10 18:52:26 +08:00 committed by Mike McQuaid
parent 827bc6aa37
commit 4e3478c339

View file

@ -1,24 +1,22 @@
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'
homepage "https://zint.github.io/"
url "https://github.com/downloads/zint/zint/zint-2.4.3.tar.gz"
sha256 "de2f4fd0d008530511f5dea2cff7f96f45df4c029b57431b2411b7e1f3a523e8"
revision 1
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
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
depends_on "cmake" => :build
depends_on "libpng"
depends_on "qt" => :optional
def install
mkdir 'zint-build' do
mkdir "zint-build" do
system "cmake", "..", *std_cmake_args
system "make install"
system "make", "install"
end
end