aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/parsley.rb
blob: 433e503b099424a9563f9abf28e57bceacdffa78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Parsley < Formula
  head 'git://github.com/fizx/parsley.git'
  homepage 'https://github.com/fizx/parsley'

  depends_on 'json-c'
  depends_on 'pcre'
  depends_on 'argp-standalone'

  def install
    argp = Formula.factory("argp-standalone").prefix

    # remove the refs to /opt/local and use this opportunity to link to argp
    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