blob: 1cf2c63e29d118fc5f45b6de376287ff275c5b91 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 | class Testdisk < Formula
  homepage "http://www.cgsecurity.org/wiki/TestDisk"
  url "http://www.cgsecurity.org/testdisk-7.0.tar.bz2"
  sha256 "00bb3b6b22e6aba88580eeb887037aef026968c21a87b5f906c6652cbee3442d"
  bottle do
    cellar :any
    sha256 "0ca542c57ca8ed24c3ecb5d5b449dc18fda306744309fb59598e2a7e9c55c08b" => :yosemite
    sha256 "e537da6b508c8aac5842c3d2094b5b914effea9ea04484cf09ac9bb80d46e3f0" => :mavericks
    sha256 "afbf7d1f54c14b40d86baadc34efeaed0399257598d60755d910aec978aee7ef" => :mountain_lion
  end
  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end
  test do
    path = "test.dmg"
    system "hdiutil", "create", "-megabytes", "10", path
    system "#{bin}/testdisk", "/list", path
  end
end
 |