2011-04-14 01:57:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class BulkExtractor < Formula
|
2012-06-07 22:01:54 +00:00
|
|
|
homepage 'https://github.com/simsong/bulk_extractor/wiki'
|
2012-04-30 12:26:39 +00:00
|
|
|
url 'https://github.com/downloads/simsong/bulk_extractor/bulk_extractor-1.2.2.tar.gz'
|
|
|
|
md5 '11ccee3709ac862a41edad309153c7a3'
|
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
|
2012-05-15 21:17:32 +00:00
|
|
|
depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3
|
|
|
|
depends_on 'automake' => :build if MacOS.xcode_version.to_f >= 4.3
|
2011-04-14 01:57:04 +00:00
|
|
|
|
|
|
|
def install
|
2012-04-23 04:16:49 +00:00
|
|
|
system "autoreconf", "-i"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-04-14 01:57:04 +00:00
|
|
|
"--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
|