Skip to content

Commit

Permalink
cuty_capt: test added
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#38092.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
bfontaine authored and xu-cheng committed Mar 27, 2015
1 parent dc45141 commit b677994
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions 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

0 comments on commit b677994

Please sign in to comment.