aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sleuthkit.rb
blob: 1bda651aa411d8fa597b84fb7e09e316d3cbbb55 (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
27
28
29
require 'formula'

class Sleuthkit < Formula
  homepage 'http://www.sleuthkit.org/'
  url 'http://downloads.sourceforge.net/project/sleuthkit/sleuthkit/4.0.1/sleuthkit-4.0.1.tar.gz'
  sha1 '5364ffe9c6354e9f9461972ebd906fff8175db3a'

  head 'https://github.com/sleuthkit/sleuthkit.git'

  if build.head?
    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  depends_on 'afflib' => :optional
  depends_on 'libewf' => :optional

  conflicts_with 'ffind',
    :because => "both install a 'ffind' executable."

  def install
    system "./bootstrap" if build.head?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end