From 518daef5c9837478bc51bd8a157f7900be31f60c Mon Sep 17 00:00:00 2001 From: Chen Wen Date: Sat, 27 Apr 2013 00:33:24 +0800 Subject: ydict 1.2.6 Closes #19456. Signed-off-by: Adam Vandenberg --- Library/Formula/ydict.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Library/Formula/ydict.rb (limited to 'Library/Formula') diff --git a/Library/Formula/ydict.rb b/Library/Formula/ydict.rb new file mode 100644 index 000000000..5a7ca2978 --- /dev/null +++ b/Library/Formula/ydict.rb @@ -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 -- cgit v1.2.3