a772f26f15
Closes Homebrew/homebrew#27640. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
18 lines
409 B
Ruby
18 lines
409 B
Ruby
require 'formula'
|
|
|
|
class Ydict < Formula
|
|
homepage 'https://github.com/chenpc/ydict'
|
|
url 'https://github.com/chenpc/ydict/archive/1.3.4.tar.gz'
|
|
sha1 'e88030060d752dc5486cf0f156d3f6ec41d84a55'
|
|
|
|
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
|