2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 04:34:42 +00:00
|
|
|
|
2012-01-21 23:46:09 +00:00
|
|
|
class Dict < Formula
|
|
|
|
url 'http://en.sourceforge.jp/frs/g_redir.php?m=jaist&f=%2Fdict%2Fdictd%2Fdictd-1.9.15%2Fdictd-1.9.15.tar.gz'
|
|
|
|
homepage 'http://www.dict.org/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '081ea97a4a6a936855af30d9c2a31f5733985822'
|
2012-01-21 23:46:09 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
# install the client
|
|
|
|
system "make install.dict"
|
|
|
|
|
|
|
|
# set up the conf file
|
|
|
|
(prefix+'etc/dict.conf').write <<-EOS
|
2009-09-01 04:34:42 +00:00
|
|
|
# /etc/dict.conf Written by Bob Hilliard <hilliard@debian.org>
|
|
|
|
# 1998/03/20. Last revised Sun, 22 Nov 1998 18:10:04 -0500 This is
|
|
|
|
# the configuration file for /usr/bin/dict. In most cases only the
|
|
|
|
# server keyword need be specified.
|
|
|
|
|
|
|
|
# This default configuration will try to access a dictd server on the
|
|
|
|
# local host, failing that, it will try the public server. In many
|
|
|
|
# cases this will be slow, so you should comment out the line for the
|
|
|
|
# server that you don't want to use. To use any other server, enter
|
|
|
|
# its IP address in place of "dict.org".
|
|
|
|
|
|
|
|
# Refer to the dict manpage (man dict) for other options that could
|
|
|
|
# be inserted in here.
|
|
|
|
|
|
|
|
server localhost
|
|
|
|
server dict.org
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|