homebrew-core/Formula/dwdiff.rb

25 lines
638 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Dwdiff < Formula
homepage 'http://os.ghalkes.nl/dwdiff.html'
url 'http://os.ghalkes.nl/dist/dwdiff-2.0.9.tgz'
sha1 '01cb2230b9147347bcfd1770898e435e4a57fa25'
depends_on 'gettext'
depends_on 'icu4c'
def install
2014-02-25 05:22:07 +00:00
gettext = Formula['gettext']
icu4c = Formula['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"
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
end
end