Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

cuty_capt: test added #38092

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 11 additions & 8 deletions Library/Formula/cuty_capt.rb
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice test 👍

end