homebrew-core/Formula/parsley.rb

21 lines
587 B
Ruby
Raw Normal View History

require 'formula'
class Parsley <Formula
head 'git://github.com/fizx/parsley.git'
homepage 'http://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
2010-09-29 15:56:41 +00:00
inreplace 'configure', '-L/opt/local/lib', "-L#{argp}"
inreplace 'configure', '-I/opt/local/include', "-I#{argp}"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end