aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/podiff.rb
diff options
context:
space:
mode:
authorJannis Leidel2013-03-11 22:14:48 +0100
committerAdam Vandenberg2013-03-12 09:11:35 -0700
commitc86fbe4d18022806196a9f47c3f1f5ce92646868 (patch)
tree544139e70fed1b2637f5ec4e2f26c63b9814f909 /Library/Formula/podiff.rb
parenta9479fcc87de0d5fad1c8b4e03ba2d8012a69709 (diff)
downloadhomebrew-c86fbe4d18022806196a9f47c3f1f5ce92646868.tar.bz2
podiff 1.1
Closes #18410. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/podiff.rb')
-rw-r--r--Library/Formula/podiff.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/podiff.rb b/Library/Formula/podiff.rb
new file mode 100644
index 000000000..5164928a9
--- /dev/null
+++ b/Library/Formula/podiff.rb
@@ -0,0 +1,32 @@
+require 'formula'
+
+class Podiff < Formula
+ homepage 'http://puszcza.gnu.org.ua/software/podiff/'
+ url 'http://download.gnu.org.ua/pub/release/podiff/podiff-1.1.tar.gz'
+ sha1 'c354a42c215d0b7768b30c1db13729177cec4c7a'
+
+ def install
+ system "make"
+ bin.install "podiff"
+ man1.install "podiff.1"
+ end
+
+ def caveats; <<-EOS.undent
+ To use with git, add this to your .git/config or global git config file:
+
+ [diff "podiff"]
+ command = #{HOMEBREW_PREFIX}/bin/podiff -D-u
+
+ Then add the following line to the .gitattributes file in
+ the directory with your PO files:
+
+ *.po diff=podiff
+
+ See `man podiff` for more information.
+ EOS
+ end
+
+ test do
+ system "podiff -v"
+ end
+end