diff options
| author | Ali Asad Lotia | 2010-07-25 20:48:40 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-25 19:29:07 -0700 |
| commit | a1ac8b40d842c01eaff1da8cf0cf0c80834cd48c (patch) | |
| tree | aeede747d1237dedc90bb6f5f6ca45ffba926963 /Library | |
| parent | f74b9320d53773e88f97b6786b549138f36b9e67 (diff) | |
| download | homebrew-a1ac8b40d842c01eaff1da8cf0cf0c80834cd48c.tar.bz2 | |
Initial commit of formula for dwdiff.
This adds a formula for dwdiff which is a frontend to diff that operates
at the word level instead of the line level. For more details go to
http://os.ghalkes.nl/dwdiff.html
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/dwdiff.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/dwdiff.rb b/Library/Formula/dwdiff.rb new file mode 100644 index 000000000..036fd453c --- /dev/null +++ b/Library/Formula/dwdiff.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Dwdiff <Formula + url 'http://os.ghalkes.nl/dist/dwdiff-1.8.1.tgz' + homepage 'http://os.ghalkes.nl/dwdiff.html' + md5 '37971be9e905aa3eeb4d494ad40a6318' + + # TODO: possibly set command line arguments to compile without the below + # dependencies. Or set arguments to compile with and compile without by + # default. + depends_on 'gettext' + depends_on 'icu4c' + + def install + gettext_prefix = Formula.factory('gettext').prefix + icu4c_prefix = Formula.factory('icu4c').prefix + ENV.append "CFLAGS", "-I#{gettext_prefix}/include -I#{icu4c_prefix}/include" + ENV.append "LDFLAGS", "-L#{gettext_prefix}/lib -L#{icu4c_prefix}/lib" + system "./configure", "--prefix=#{prefix}" + system "make install" + end +end |
