2011-03-10 05:11:03 +00:00
|
|
|
class Dwdiff < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Diff that operates at the word level"
|
2014-08-08 04:12:11 +00:00
|
|
|
homepage "http://os.ghalkes.nl/dwdiff.html"
|
2015-06-27 19:31:08 +00:00
|
|
|
url "http://os.ghalkes.nl/dist/dwdiff-2.1.0.tar.bz2"
|
|
|
|
sha256 "45308f2f07c08c75c6ebd1eae3e3dcf7f836e5af1467cefc1b4829777c07743a"
|
2015-11-26 03:30:14 +00:00
|
|
|
revision 1
|
2010-07-26 00:48:40 +00:00
|
|
|
|
2014-08-08 04:12:12 +00:00
|
|
|
bottle do
|
2015-11-27 00:58:12 +00:00
|
|
|
sha256 "d00c28b5574b5a2bd0fd7ca9643c8f815957eaed12e1177bb4e8b97b3215b67c" => :el_capitan
|
|
|
|
sha256 "89788050709f2415513f2bfd46d17d18b7df888ff825cb4556de4278c8773fd1" => :yosemite
|
|
|
|
sha256 "4d82456bc15ea17dfff0cb2d3e839aa1dfb423e019b714b9a9bff306cf530872" => :mavericks
|
2014-08-08 04:12:12 +00:00
|
|
|
end
|
|
|
|
|
2014-08-08 04:12:11 +00:00
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "icu4c"
|
2010-07-26 00:48:40 +00:00
|
|
|
|
|
|
|
def install
|
2014-08-08 04:12:11 +00:00
|
|
|
gettext = Formula["gettext"]
|
|
|
|
icu4c = Formula["icu4c"]
|
2010-04-07 05:58:35 +00:00
|
|
|
ENV.append "CFLAGS", "-I#{gettext.include} -I#{icu4c.include}"
|
2015-06-27 19:31:08 +00:00
|
|
|
ENV.append "LDFLAGS", "-L#{gettext.lib} -L#{icu4c.lib} -lintl"
|
|
|
|
|
2010-07-26 00:48:40 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-02-04 12:12:40 +00:00
|
|
|
system "make", "install"
|
2012-03-11 04:13:26 +00:00
|
|
|
|
|
|
|
# Remove non-English man pages
|
2015-02-04 12:12:40 +00:00
|
|
|
(man/"nl").rmtree
|
|
|
|
(man/"nl.UTF-8").rmtree
|
|
|
|
(share/"locale/nl").rmtree
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"a").write "I like beers"
|
|
|
|
(testpath/"b").write "I like formulae"
|
|
|
|
diff = shell_output("#{bin}/dwdiff a b", 1)
|
|
|
|
assert_equal "I like [-beers-] {+formulae+}", diff
|
2010-07-26 00:48:40 +00:00
|
|
|
end
|
|
|
|
end
|