26 lines
855 B
Ruby
26 lines
855 B
Ruby
class Htpdate < Formula
|
|
desc "Synchronize time with remote web servers"
|
|
homepage "http://www.vervest.org/htp/"
|
|
url "http://www.vervest.org/htp/archive/c/htpdate-1.2.1.tar.xz"
|
|
sha256 "186c69509ba68178e2894cb8900e240bb688870ec25de2ac4676724e1e1d1cbf"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "d47cbbcdf265b8997e5d496851e5d30d010723950616c09cc1881830967a34cb" => :mojave
|
|
sha256 "6c0525a59ea4312ade6e748dc4dab10798a918b1b978f0234637a95688f734f7" => :high_sierra
|
|
end
|
|
|
|
depends_on :macos => :high_sierra # needs <sys/timex.h>
|
|
|
|
def install
|
|
system "make", "prefix=#{prefix}",
|
|
"STRIP=/usr/bin/strip",
|
|
"CC=#{ENV.cc}",
|
|
"CFLAGS=#{ENV.cflags}",
|
|
"install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/htpdate", "-q", "-d", "-u", ENV["USER"], "example.org"
|
|
end
|
|
end
|