8d5948cb27
Closes Homebrew/homebrew#19660. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
38 lines
951 B
Ruby
38 lines
951 B
Ruby
require 'formula'
|
|
|
|
class Sleuthkit < Formula
|
|
homepage 'http://www.sleuthkit.org/'
|
|
url 'http://downloads.sourceforge.net/project/sleuthkit/sleuthkit/4.0.2/sleuthkit-4.0.2.tar.gz'
|
|
sha1 'e5394d53eb07615e6e78ff7fa73340cc6f6e98d4'
|
|
|
|
head 'https://github.com/sleuthkit/sleuthkit.git'
|
|
|
|
option 'with-jni', "Build Sleuthkit with JNI bindings"
|
|
|
|
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"
|
|
|
|
if build.with? 'jni'
|
|
cd 'bindings/java' do
|
|
system 'ant'
|
|
end
|
|
prefix.install 'bindings'
|
|
end
|
|
end
|
|
end
|