homebrew-core/Formula/bulk_extractor.rb
Mark A. Matienzo fcc1b84c5b bulk_extractor 1.4.4
Closes Homebrew/homebrew#25966.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-16 23:47:31 +00:00

36 lines
1.2 KiB
Ruby

require 'formula'
class BulkExtractor < Formula
homepage 'https://github.com/simsong/bulk_extractor/wiki'
url 'http://digitalcorpora.org/downloads/bulk_extractor/bulk_extractor-1.4.4.tar.gz'
sha1 'e95ed6db74d9998842089b53eb4322dd0a730a82'
depends_on :autoconf
depends_on :automake
depends_on 'afflib' => :optional
depends_on 'exiv2' => :optional
depends_on 'libewf' => :optional
def patches
# Error in exec install hooks; installing java GUI manually. Reported in
# https://groups.google.com/group/bulk_extractor-users/browse_thread/thread/ff7cc11e8e6d8e8d
"https://gist.github.com/raw/3785687/3a61d57539c2b9ecde44121b370db85ff9d4f86e/makefile.in.patch"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make install"
# Install documentation
(share/'bulk_extractor/doc').install Dir['doc/*.{html,txt,pdf}']
(lib/'python2.7/site-packages').install Dir['python/*.py']
# Install the GUI the Homebrew way
libexec.install 'java_gui/BEViewer.jar'
bin.write_jar_script libexec/"BEViewer.jar", "BEViewer", "-Xmx1g"
end
end