23 lines
625 B
Ruby
23 lines
625 B
Ruby
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
|