2010-07-26 00:48:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dwdiff < Formula
|
2010-07-26 00:48:40 +00:00
|
|
|
homepage 'http://os.ghalkes.nl/dwdiff.html'
|
2013-07-16 21:27:36 +00:00
|
|
|
url 'http://os.ghalkes.nl/dist/dwdiff-2.0.5.tgz'
|
|
|
|
sha1 '896f3b8e7210c8e73c8850f88c9d3b6ba0c382f0'
|
2010-07-26 00:48:40 +00:00
|
|
|
|
|
|
|
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"
|
2012-03-11 04:13:26 +00:00
|
|
|
|
|
|
|
# Remove non-English man pages
|
|
|
|
(man+"nl").rmtree
|
|
|
|
(man+"nl.UTF-8").rmtree
|
|
|
|
(share+"locale/nl").rmtree
|
2010-07-26 00:48:40 +00:00
|
|
|
end
|
|
|
|
end
|