sleuthkit: use new dsl

This commit is contained in:
Adam Vandenberg 2012-08-23 15:17:39 -07:00
parent 26b299d2c3
commit 83d6eb6938

View file

@ -7,7 +7,7 @@ class Sleuthkit < Formula
head 'https://github.com/sleuthkit/sleuthkit.git'
if ARGV.build_head?
if build.head?
depends_on :autoconf
depends_on :automake
depends_on :libtool
@ -19,13 +19,13 @@ class Sleuthkit < Formula
def patches
# required for new-ish libewf releases (API change)
# fixed in the upcoming sleuthkit 4.x
if ARGV.build_stable?
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 ARGV.build_head?
system "./bootstrap" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"