blob: 990202248fd9f9558487982185963bf439b1f100 (
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
30
31
32
33
|
require 'formula'
class Sleuthkit < Formula
homepage 'http://www.sleuthkit.org/'
url 'http://downloads.sourceforge.net/project/sleuthkit/sleuthkit/3.2.3/sleuthkit-3.2.3.tar.gz'
sha1 '85d100ffde54f051916a4ea9452563ff85fad4ac'
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
def patches
# required for new-ish libewf releases (API change)
# fixed in the upcoming sleuthkit 4.x
if build.stable?
"http://downloads.sourceforge.net/project/libewf/patches%20for%203rd%20party%20software/sleuthkit/tsk3.2.3-libewf.patch"
end
end
def install
system "./bootstrap" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
|