aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bulk_extractor.rb
blob: 72aab6c06c1069f5e98524d0cb308c88e78cb3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'

class BulkExtractor < Formula
  homepage 'http://afflib.org/software/bulk_extractor'
  url 'http://afflib.org/downloads/bulk_extractor-1.2.0.tar.gz'
  md5 '95172e2a149681054b712890e8fdad57'

  depends_on 'afflib' => :optional
  depends_on 'exiv2' => :optional
  depends_on 'libewf' => :optional

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"

    # Install documentation
    (share+name+'doc').install Dir['doc/*.{html,txt,pdf}']

    # 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
  end
end