aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/capstone.rb
blob: ebcdaf0a8c480f0044ae7ac9c1652ea36e9f0e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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