capstone: actually fix pkg-config references

See Homebrew/homebrew#36871 and Homebrew/homebrew#36872.

Closes Homebrew/homebrew#37089.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Asger Hautop Drewsen 2015-02-23 01:09:46 +01:00 committed by Mike McQuaid
parent ff89cc70ad
commit 73d72535d9

View file

@ -24,7 +24,7 @@ class Capstone < Formula
# 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
s.gsub! "/usr/include/capstone", "#{include}/capstone"
end
end