diff options
| author | Nicolas Despres | 2012-01-22 00:46:09 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-28 12:30:08 -0800 |
| commit | 6b489e259836f3f46da6634ddf13c2aa7eae345a (patch) | |
| tree | 2587814daa8d7c9c1825b93aa2c32dae098b6b38 /Library/Formula | |
| parent | 61ed504fd8e7ea864e220e0f9dee0e2772f9e345 (diff) | |
| download | homebrew-6b489e259836f3f46da6634ddf13c2aa7eae345a.tar.bz2 | |
Fix 'dict' formula.
- Use a valid URL (it has been reported to webmaster@dict.org).
- Install man page in 'share/'.
- Write 'etc/dict.conf' in its Cellar instead of HOMEBREW_PREFIX.
- Remove Ruby warning.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dict.rb | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/Library/Formula/dict.rb b/Library/Formula/dict.rb index e0cbc6010..90ae18318 100644 --- a/Library/Formula/dict.rb +++ b/Library/Formula/dict.rb @@ -1,6 +1,20 @@ require 'formula' -DICT_CONF=<<-EOS +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/' + md5 '68c1cffa952012ba85a7271311de55e9' + + 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 # /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 @@ -18,20 +32,5 @@ DICT_CONF=<<-EOS server localhost server dict.org EOS - -class Dict < Formula - url 'ftp://ftp.dict.org/dict/dictd-1.9.15.tar.gz' - homepage 'http://www.dict.org/' - md5 '68c1cffa952012ba85a7271311de55e9' - - def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--sysconfdir=#{etc}" - # install the client - system "make install.dict" - - # set up the conf file - (etc+'dict.conf').write DICT_CONF end end |
