2013-04-26 16:33:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ydict < Formula
|
|
|
|
homepage 'http://code.google.com/p/ydict/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://ydict.googlecode.com/files/ydict-1.3.1.tar.gz'
|
2013-08-16 23:04:40 +00:00
|
|
|
sha1 'ac144b75cd221f69cc24b66340146341808871dd'
|
2013-04-26 16:33:24 +00:00
|
|
|
|
|
|
|
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
|