25 lines
777 B
Ruby
25 lines
777 B
Ruby
|
class Hesiod < Formula
|
||
|
desc "Library for the simple string lookup service built on top of DNS"
|
||
|
homepage "https://github.com/achernya/hesiod"
|
||
|
url "https://github.com/achernya/hesiod/archive/hesiod-3.2.1.tar.gz"
|
||
|
sha256 "813ccb091ad15d516a323bb8c7693597eec2ef616f36b73a8db78ff0b856ad63"
|
||
|
|
||
|
depends_on "automake" => :build
|
||
|
depends_on "autoconf" => :build
|
||
|
depends_on "libtool" => :build
|
||
|
depends_on "libidn"
|
||
|
|
||
|
def install
|
||
|
system "autoreconf", "-fvi"
|
||
|
system "./configure", "--disable-dependency-tracking",
|
||
|
"--disable-silent-rules",
|
||
|
"--prefix=#{prefix}"
|
||
|
system "make", "install"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system "#{bin}/hesinfo", "sipbtest", "passwd"
|
||
|
system "#{bin}/hesinfo", "sipbtest", "filsys"
|
||
|
end
|
||
|
end
|