aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMark A. Matienzo2013-05-07 13:26:33 -0400
committerAdam Vandenberg2013-05-09 19:45:01 -0700
commitb82ec4fa35488f5a20743e91709ec8d166273f58 (patch)
treec54bc98ca308ab77c98636c7ff29002dbfcbc46b /Library/Formula
parent4cc1cec0a2f352fb510282c535272fca35f3aadf (diff)
downloadhomebrew-b82ec4fa35488f5a20743e91709ec8d166273f58.tar.bz2
sleuthkit: build JNI bindings
Closes #19660. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sleuthkit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/sleuthkit.rb b/Library/Formula/sleuthkit.rb
index 3b0f266c2..035edc847 100644
--- a/Library/Formula/sleuthkit.rb
+++ b/Library/Formula/sleuthkit.rb
@@ -7,6 +7,8 @@ class Sleuthkit < Formula
head 'https://github.com/sleuthkit/sleuthkit.git'
+ option 'with-jni', "Build Sleuthkit with JNI bindings"
+
if build.head?
depends_on :autoconf
depends_on :automake
@@ -25,5 +27,12 @@ class Sleuthkit < Formula
"--prefix=#{prefix}"
system "make"
system "make install"
+
+ if build.with? 'jni'
+ cd 'bindings/java' do
+ system 'ant'
+ end
+ prefix.install 'bindings'
+ end
end
end