2013-03-28 15:23:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pev < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "PE analysis toolkit"
|
2013-03-28 15:23:31 +00:00
|
|
|
homepage 'http://pev.sf.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/pev/pev-0.70/pev-0.70.tar.gz'
|
2014-02-16 18:20:12 +00:00
|
|
|
sha1 'b2d1191c3b57049c78ef77b8f54f7f78838af129'
|
2013-03-28 15:23:31 +00:00
|
|
|
|
|
|
|
head 'https://github.com/merces/pev.git'
|
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'src/Makefile' do |s|
|
2014-02-16 18:20:12 +00:00
|
|
|
s.gsub! '/usr', prefix
|
2013-03-28 15:23:31 +00:00
|
|
|
s.change_make_var! "SHAREDIR", share
|
|
|
|
s.change_make_var! "MANDIR", man
|
|
|
|
end
|
|
|
|
|
|
|
|
inreplace 'lib/libpe/Makefile' do |s|
|
2014-02-16 18:20:12 +00:00
|
|
|
s.gsub! '/usr', prefix
|
2013-03-28 15:23:31 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
system "make", "CC=#{ENV.cc}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/pedis", "--version"
|
|
|
|
end
|
|
|
|
end
|