Navigation Menu

Skip to content

Commit

Permalink
capstone: fix pkg-config references
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#36871.

Closes Homebrew/legacy-homebrew#36872.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
DomT4 authored and MikeMcQuaid committed Feb 22, 2015
1 parent 7f395be commit 8f51e53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Formula/capstone.rb
@@ -1,5 +1,3 @@
require "formula"

class Capstone < Formula
homepage "http://capstone-engine.org"
url "http://capstone-engine.org/download/3.0.1/capstone-3.0.1.tgz"
Expand All @@ -21,6 +19,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
end
end

test do
Expand Down

0 comments on commit 8f51e53

Please sign in to comment.