aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ydict.rb
blob: b14d096024a899a83f4e8250665de7eb174e366a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Ydict < Formula
  homepage 'http://code.google.com/p/ydict/'
  url 'http://ydict.googlecode.com/files/ydict-1.3.1.tar.gz'
  sha1 'ac144b75cd221f69cc24b66340146341808871dd'

  def ydict_wrapper; <<-EOS.undent
    #!/bin/sh
    LC_ALL=en_US.UTF-8 "#{bin}/ydict.py" "$@"
    EOS
  end

  def install
    bin.install 'ydict' => 'ydict.py'
    (bin/'ydict').write(ydict_wrapper)
  end
end