2011-04-14 01:57:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class BulkExtractor < Formula
|
2011-12-09 13:02:44 +00:00
|
|
|
url 'http://afflib.org/downloads/bulk_extractor-1.1.1.tar.gz'
|
2011-04-14 01:57:04 +00:00
|
|
|
homepage 'http://afflib.org/software/bulk_extractor'
|
2011-12-09 13:02:44 +00:00
|
|
|
md5 'ce95df931f63dedd6d0e5bd1a57288a7'
|
2011-04-14 01:57:04 +00:00
|
|
|
|
|
|
|
depends_on 'afflib' => :optional
|
2011-04-14 03:22:48 +00:00
|
|
|
depends_on 'exiv2' => :optional
|
2011-04-14 01:57:04 +00:00
|
|
|
depends_on 'libewf' => :optional
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
2011-06-14 16:21:14 +00:00
|
|
|
|
2011-07-05 19:49:07 +00:00
|
|
|
# Install documentation
|
|
|
|
(share+name+'doc').install Dir['doc/*.{html,txt,pdf}']
|
|
|
|
|
2011-06-14 16:21:14 +00:00
|
|
|
# Install Python utilities
|
|
|
|
(share+name+'python').install Dir['python/*.py']
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You may need to add the directory containing the Python bindings to your PYTHONPATH:
|
|
|
|
#{share+name}/python
|
|
|
|
EOS
|
2011-04-14 01:57:04 +00:00
|
|
|
end
|
|
|
|
end
|