ydict 1.2.6

Closes Homebrew/homebrew#19456.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Chen Wen 2013-04-27 00:33:24 +08:00 committed by Adam Vandenberg
parent 8a92d14417
commit 67abe566d3

18
Formula/ydict.rb Normal file
View file

@ -0,0 +1,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