2014-02-04 09:03:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Capstone < Formula
|
|
|
|
homepage 'http://capstone-engine.org'
|
|
|
|
url 'http://capstone-engine.org/download/2.0/capstone-2.0.tgz'
|
|
|
|
sha1 '209cdc69518f754c5d7d07672d8e28cdda9feae7'
|
|
|
|
|
|
|
|
def install
|
2014-02-18 23:43:20 +00:00
|
|
|
# Fixed upstream in next version:
|
|
|
|
# https://github.com/aquynh/capstone/commit/dc0d04522fa6ca7222124f390f51eb9e106906f7.diff
|
|
|
|
inreplace 'Makefile', 'lib64', 'lib'
|
2014-02-04 09:03:34 +00:00
|
|
|
system "./make.sh"
|
|
|
|
ENV["PREFIX"] = prefix
|
|
|
|
system "./make.sh", "install"
|
|
|
|
end
|
|
|
|
end
|