2010-08-02 22:00:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Parsley < Formula
|
2010-08-02 22:00:03 +00:00
|
|
|
head 'git://github.com/fizx/parsley.git'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/fizx/parsley'
|
2010-08-02 22:00:03 +00:00
|
|
|
|
|
|
|
depends_on 'json-c'
|
|
|
|
depends_on 'pcre'
|
2010-09-29 15:56:41 +00:00
|
|
|
depends_on 'argp-standalone'
|
2010-08-02 22:00:03 +00:00
|
|
|
|
|
|
|
def install
|
2010-09-29 15:56:41 +00:00
|
|
|
argp = Formula.factory("argp-standalone").prefix
|
2010-08-02 22:00:03 +00:00
|
|
|
|
|
|
|
# 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}"
|
2010-08-02 22:00:03 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|