2010-07-26 00:48:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dwdiff <Formula
|
2010-08-12 19:25:53 +00:00
|
|
|
url 'http://os.ghalkes.nl/dist/dwdiff-1.8.2.tgz'
|
2010-07-26 00:48:40 +00:00
|
|
|
homepage 'http://os.ghalkes.nl/dwdiff.html'
|
2010-08-12 19:25:53 +00:00
|
|
|
md5 '3217486292ab4771f9bbc1097201a4e0'
|
2010-07-26 00:48:40 +00:00
|
|
|
|
|
|
|
# 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
|
2010-04-07 05:58:35 +00:00
|
|
|
gettext = Formula.factory('gettext')
|
|
|
|
icu4c = Formula.factory('icu4c')
|
|
|
|
ENV.append "CFLAGS", "-I#{gettext.include} -I#{icu4c.include}"
|
|
|
|
ENV.append "LDFLAGS", "-L#{gettext.lib} -L#{icu4c.lib}"
|
2010-07-26 00:48:40 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|