aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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