From 2c13fa5410e80b9190999f5e4070c99c4eb562d8 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Thu, 26 Mar 2015 09:46:37 +0100 Subject: cuty_capt: test added Closes #38092. Signed-off-by: Xu Cheng --- Library/Formula/cuty_capt.rb | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Library') diff --git a/Library/Formula/cuty_capt.rb b/Library/Formula/cuty_capt.rb index 444b791eb..ec58303ef 100644 --- a/Library/Formula/cuty_capt.rb +++ b/Library/Formula/cuty_capt.rb @@ -1,16 +1,19 @@ -require 'formula' - class CutyCapt < Formula - homepage 'http://cutycapt.sourceforge.net/' - url 'http://ftp.de.debian.org/debian/pool/main/c/cutycapt/cutycapt_0.0~svn6.orig.tar.gz' - version '0.0.6' - sha1 '9c35cff498e8dfc351cbfeb884ad69f6ba29ae2e' + homepage "http://cutycapt.sourceforge.net/" + url "http://ftp.de.debian.org/debian/pool/main/c/cutycapt/cutycapt_0.0~svn6.orig.tar.gz" + version "0.0.6" + sha256 "cf85226a25731aff644f87a4e40b8878154667a6725a4dc0d648d7ec2d842264" - depends_on 'qt' + depends_on "qt" def install - system "qmake CONFIG-=app_bundle" + system "qmake", "CONFIG-=app_bundle" system "make" bin.install "CutyCapt" end + + test do + system "#{bin}/CutyCapt", "--url=http://brew.sh", "--out=brew.png" + assert File.exist? "brew.png" + end end -- cgit v1.2.3