homebrew-core/Formula/dwdiff.rb
Brett Koonce 0e9c3ba58e dwdiff 2.0.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-07-16 19:41:48 -05:00

24 lines
654 B
Ruby

require 'formula'
class Dwdiff < Formula
homepage 'http://os.ghalkes.nl/dwdiff.html'
url 'http://os.ghalkes.nl/dist/dwdiff-2.0.5.tgz'
sha1 '896f3b8e7210c8e73c8850f88c9d3b6ba0c382f0'
depends_on 'gettext'
depends_on 'icu4c'
def install
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}"
system "./configure", "--prefix=#{prefix}"
system "make install"
# Remove non-English man pages
(man+"nl").rmtree
(man+"nl.UTF-8").rmtree
(share+"locale/nl").rmtree
end
end