Skip to content

Commit

Permalink
package: update Brew formula (copied from upstream)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Feb 24, 2015
1 parent 9f4b373 commit eb36af9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/homebrew/capstone.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
require "formula"

class Capstone < Formula
homepage "http://capstone-engine.org"
url "http://capstone-engine.org/download/3.0.1/capstone-3.0.1.tgz"
sha1 "7f206c853c6b8d05de22e919c2455ab661654093"

bottle do
cellar :any
sha1 "319b41766dd67e3017b83b1ce3df3cc81e6feb6a" => :yosemite
sha1 "4f1bbe6b886c174924b1996aac7ed8d9850ff773" => :mavericks
sha1 "5a73b99066037a6270f550e07bee8cbcb8e30a2c" => :mountain_lion
revision 3
sha1 "63e887ea699a71bbd3f08d5dfa8cbbb8f061f768" => :yosemite
sha1 "210d46b2de72092f42df324e29297397405acbb0" => :mavericks
sha1 "eb835f4d9bdcd7d465224f7bd6ab47b21287da94" => :mountain_lion
end

def install
Expand All @@ -21,6 +20,12 @@ def install
ENV["HOMEBREW_CAPSTONE"] = "1"
system "./make.sh"
system "./make.sh", "install"

# As per the above inreplace, the pkgconfig file needs fixing as well.
inreplace lib/"pkgconfig/capstone.pc" do |s|
s.gsub! "/usr/lib", lib
s.gsub! "/usr/include/capstone", "#{include}/capstone"
end
end

test do
Expand Down

0 comments on commit eb36af9

Please sign in to comment.