2012-01-21 23:46:09 +00:00
|
|
|
class Dict < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Dictionary Server Protocol (RFC2229) client"
|
2014-04-28 19:41:52 +00:00
|
|
|
homepage "http://www.dict.org/"
|
|
|
|
url "https://downloads.sourceforge.net/project/dict/dictd/dictd-1.12.1/dictd-1.12.1.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "a237f6ecdc854ab10de5145ed42eaa2d9b6d51ffdc495f7daee59b05cc363656"
|
2014-04-28 19:41:52 +00:00
|
|
|
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "libmaa"
|
2012-01-21 23:46:09 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-28 19:41:52 +00:00
|
|
|
ENV["LIBTOOL"] = "glibtool"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}",
|
2012-01-21 23:46:09 +00:00
|
|
|
"--mandir=#{man}"
|
2014-04-28 19:41:52 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
(prefix+"etc/dict.conf").write <<-EOS
|
2009-09-01 04:34:42 +00:00
|
|
|
server localhost
|
|
|
|
server dict.org
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|