diff options
| author | Adam Vandenberg | 2010-09-29 08:56:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-29 08:56:41 -0700 |
| commit | 904e84ab4cc03857dbfc2cbe44f285914fa80c97 (patch) | |
| tree | 6789ba7044b123c8bcaf47c1d4af148f8578e717 /Library | |
| parent | 4ee2aed673f6d1e89468eae4ac9f9529c71e56a5 (diff) | |
| download | homebrew-904e84ab4cc03857dbfc2cbe44f285914fa80c97.tar.bz2 | |
parsley - use argp dep
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/parsley.rb | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/Library/Formula/parsley.rb b/Library/Formula/parsley.rb index d07265dd1..693e351fa 100644 --- a/Library/Formula/parsley.rb +++ b/Library/Formula/parsley.rb @@ -1,33 +1,19 @@ require 'formula' -class ArgpStandalone <Formula - url 'http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz' - homepage 'http://www.freshports.org/devel/argp-standalone/?ref=darwinports.com' - md5 '720704bac078d067111b32444e24ba69' -end - class Parsley <Formula head 'git://github.com/fizx/parsley.git' homepage 'http://github.com/fizx/parsley' depends_on 'json-c' depends_on 'pcre' + depends_on 'argp-standalone' def install - argpwd = Pathname.getwd+'argp' - argpwd.mkpath - - ArgpStandalone.new.brew do - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{argpwd}" - system "make" - argpwd.install ["libargp.a"] - argpwd.install ["argp.h", "argp-fmtstream.h", "argp-namefrob.h"] - end + 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#{argpwd}" - inreplace 'configure', '-I/opt/local/include', "-I#{argpwd}" + 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 |
