homebrew-core/Formula/ddrescue.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

24 lines
798 B
Ruby

class Ddrescue < Formula
desc "GNU data recovery tool"
homepage "https://www.gnu.org/software/ddrescue/ddrescue.html"
url "http://ftpmirror.gnu.org/ddrescue/ddrescue-1.19.tar.lz"
mirror "https://ftp.gnu.org/gnu/ddrescue/ddrescue-1.19.tar.lz"
sha256 "ed8d0c9d9aac80a9110e9cb0d0a91a7390d3bf9f816b67a62ca4eb140f4747b8"
bottle do
cellar :any
sha1 "e3a30bbbd40b51f4ec0d71f215406e0e511f5d04" => :mavericks
sha1 "9917eb5ba28f1acb4f02b52b9cab9cb8e7768dfc" => :mountain_lion
sha1 "6cca70194ffc701ab511665630db71cdd46425ae" => :lion
end
def install
system "./configure", "--prefix=#{prefix}",
"CXX=#{ENV.cxx}"
system "make", "install"
end
test do
system bin/"ddrescue", "--force", "--size=64Ki", "/dev/zero", "/dev/null"
end
end