aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/podiff.rb
blob: 1324595eaed42dfd38ccdbf220f1ed845c59a195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 "#{bin}/podiff", "-v"
  end
end