aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBastien Dejean2014-04-28 21:41:52 +0200
committerJack Nagel2014-05-01 20:51:52 -0500
commitca8a34da1b25ea3c3cc2de9e0e195dab06af530a (patch)
tree15841ea7f642c03ecf959018be5fed3250ff9504 /Library/Formula
parent660d5eb3fa956f9210d415be76918588e0e9c1bc (diff)
downloadhomebrew-ca8a34da1b25ea3c3cc2de9e0e195dab06af530a.tar.bz2
dict 1.12.1
Closes #28811. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dict.rb38
1 files changed, 12 insertions, 26 deletions
diff --git a/Library/Formula/dict.rb b/Library/Formula/dict.rb
index 3389e9772..d3d391371 100644
--- a/Library/Formula/dict.rb
+++ b/Library/Formula/dict.rb
@@ -1,34 +1,20 @@
-require 'formula'
+require "formula"
class Dict < Formula
- homepage 'http://www.dict.org/'
- url 'http://en.sourceforge.jp/frs/g_redir.php?m=jaist&f=%2Fdict%2Fdictd%2Fdictd-1.9.15%2Fdictd-1.9.15.tar.gz'
- sha1 '081ea97a4a6a936855af30d9c2a31f5733985822'
+ homepage "http://www.dict.org/"
+ url "https://downloads.sourceforge.net/project/dict/dictd/dictd-1.12.1/dictd-1.12.1.tar.gz"
+ sha1 "5870cc0f727f89091d0ae8a054b37e891f4cf145"
+
+ depends_on "libtool" => :build
+ depends_on "libmaa"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--sysconfdir=#{etc}",
+ ENV["LIBTOOL"] = "glibtool"
+ system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}",
"--mandir=#{man}"
- # install the client
- system "make install"
-
- # 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
-# 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.
-
+ system "make"
+ system "make", "install"
+ (prefix+"etc/dict.conf").write <<-EOS
server localhost
server dict.org
EOS