homebrew-core/Formula/dict.rb

24 lines
625 B
Ruby
Raw Normal View History

require "formula"
class Dict < Formula
desc "Dictionary Server Protocol (RFC2229) client"
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
ENV["LIBTOOL"] = "glibtool"
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}",
"--mandir=#{man}"
system "make"
system "make", "install"
(prefix+"etc/dict.conf").write <<-EOS
server localhost
server dict.org
EOS
end
end