aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ydict.rb
blob: 5a7ca29784c513967a36ad63f1877d1a6b22fc34 (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.2.6.tar.gz'
  sha1 '08eb840c31964fb80c5f9af54a26e2bd6e622d6b'

  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