aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorChen Wen2013-04-27 00:33:24 +0800
committerAdam Vandenberg2013-04-27 10:27:18 -0700
commit518daef5c9837478bc51bd8a157f7900be31f60c (patch)
tree8952129379766233a948dae9d92c94160009dcd2 /Library
parent48348bb16f2fd3a8d6e5ba60a84090560d5e76d6 (diff)
downloadhomebrew-518daef5c9837478bc51bd8a157f7900be31f60c.tar.bz2
ydict 1.2.6
Closes #19456. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ydict.rb18
1 files changed, 18 insertions, 0 deletions
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