homebrew-core/Formula/parsley.rb

24 lines
604 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Parsley < Formula
head 'git://github.com/fizx/parsley.git'
homepage 'https://github.com/fizx/parsley'
depends_on 'json-c'
depends_on 'pcre'
2010-09-29 15:56:41 +00:00
depends_on 'argp-standalone'
def install
2010-09-29 15:56:41 +00:00
argp = Formula.factory("argp-standalone").prefix
# remove the refs to /opt/local and use this opportunity to link to argp
2011-03-26 05:37:14 +00:00
inrepace "configure" do |s|
s.gsub! '-L/opt/local/lib', "-L#{argp}"
s.gsub! '-I/opt/local/include', "-I#{argp}"
end
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end