binwalk 2.0.1
This commit is contained in:
parent
82fff6cdab
commit
2644887b52
1 changed files with 9 additions and 23 deletions
|
@ -3,14 +3,8 @@ require 'formula'
|
|||
class Binwalk < Formula
|
||||
homepage 'http://binwalk.org/'
|
||||
stable do
|
||||
url 'https://github.com/devttys0/binwalk/archive/v1.3.0.tar.gz'
|
||||
sha1 '6cab158b69e508081302305b354da12f45658272'
|
||||
|
||||
# Fix install locations; submitted upstream as various PRs
|
||||
patch do
|
||||
url "https://gist.github.com/balr0g/e3a5c97151b6c03619b3/raw/2a67afc3613b435ef785b18ff1ed44b676576dbf/binwalk-1.3.0-setup.patch"
|
||||
sha1 "893e6b7d9df93ace304e07ac7897498108870fc6"
|
||||
end
|
||||
url "https://github.com/devttys0/binwalk/archive/v2.0.1.tar.gz"
|
||||
sha1 "b0ec783cbf72db358c5118a3052fc1ccf446d8f3"
|
||||
end
|
||||
|
||||
head do
|
||||
|
@ -42,13 +36,13 @@ class Binwalk < Formula
|
|||
end
|
||||
|
||||
resource 'numpy' do
|
||||
url 'http://downloads.sourceforge.net/project/numpy/NumPy/1.8.0/numpy-1.8.0.tar.gz'
|
||||
sha1 'a2c02c5fb2ab8cf630982cddc6821e74f5769974'
|
||||
url "http://downloads.sourceforge.net/project/numpy/NumPy/1.8.1/numpy-1.8.1.tar.gz"
|
||||
sha1 "8fe1d5f36bab3f1669520b4c7d8ab59a21a984da"
|
||||
end
|
||||
|
||||
resource 'scipy' do
|
||||
url 'http://downloads.sourceforge.net/project/scipy/scipy/0.13.3/scipy-0.13.3.tar.gz'
|
||||
sha1 '2c7d53fc1d7bfe0a3ab5818ef6d84cb5d8cfcca4'
|
||||
url "http://downloads.sourceforge.net/project/scipy/scipy/0.14.0/scipy-0.14.0.tar.gz"
|
||||
sha1 "faf16ddf307eb45ead62a92ffadc5288a710feb8"
|
||||
end
|
||||
|
||||
def install
|
||||
|
@ -62,17 +56,9 @@ class Binwalk < Formula
|
|||
pyqtgraph_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
|
||||
resource('pyqtgraph').stage { system "python", *pyqtgraph_args }
|
||||
|
||||
if build.head?
|
||||
system "autoreconf -f"
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
system "make install"
|
||||
else
|
||||
cd "src" do
|
||||
binwalk_args = [ "install", "--prefix=#{prefix}", "--yes" ]
|
||||
system "python", "setup.py", *binwalk_args
|
||||
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
||||
end
|
||||
end
|
||||
system "autoreconf -f" if build.head?
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-bundles"
|
||||
system "make install"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue