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'
|
2012-07-07 18:08:22 +00:00
|
|
|
sha1 '2f0a2049259f826afe253cf5baeeb139b795dddb'
|
|
|
|
|
2012-07-26 15:19:38 +00:00
|
|
|
devel do
|
|
|
|
url 'https://github.com/downloads/simsong/bulk_extractor/bulk_extractor-1.3b5.tar.gz'
|
|
|
|
sha1 '04a3d49f35efc7381ae1d3f516bdad273a0f49ee'
|
|
|
|
end
|
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
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
|
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
|
2012-07-26 15:19:38 +00:00
|
|
|
(share/'bulk_extractor/doc').install Dir['doc/*.{html,txt,pdf}']
|
2011-07-05 19:49:07 +00:00
|
|
|
|
2011-06-14 16:21:14 +00:00
|
|
|
# Install Python utilities
|
2012-07-26 15:19:38 +00:00
|
|
|
(share/'bulk_extractor/python').install Dir['python/*.py']
|
2011-06-14 16:21:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You may need to add the directory containing the Python bindings to your PYTHONPATH:
|
2012-07-26 15:19:38 +00:00
|
|
|
#{share}/bulk_extractor/python
|
2011-06-14 16:21:14 +00:00
|
|
|
EOS
|
2011-04-14 01:57:04 +00:00
|
|
|
end
|
|
|
|
end
|