From ca8a34da1b25ea3c3cc2de9e0e195dab06af530a Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Mon, 28 Apr 2014 21:41:52 +0200 Subject: dict 1.12.1 Closes #28811. Signed-off-by: Jack Nagel --- Library/Formula/dict.rb | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) (limited to 'Library') 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 -# 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 -- cgit v1.2.3