homebrew-core/Formula/capstone.rb
Nguyen Anh Quynh 16ffbd6e37 capstone: install to proper lib folder
Closes Homebrew/homebrew#26826.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-21 07:39:45 -08:00

16 lines
481 B
Ruby

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
# Fixed upstream in next version:
# https://github.com/aquynh/capstone/commit/dc0d04522fa6ca7222124f390f51eb9e106906f7.diff
inreplace 'Makefile', 'lib64', 'lib'
system "./make.sh"
ENV["PREFIX"] = prefix
system "./make.sh", "install"
end
end