aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/htpdate.rb
blob: 104d3e3f69976740cee66333a29562365c24df02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Htpdate < Formula
  homepage 'http://www.clevervest.com/htp'
  url 'http://www.clevervest.com/htp/archive/c/htpdate-0.9.1.tar.gz'
  sha1 '0c8ca300491d12d0bbb3950c8b6c41ba5225c3fa'

  def install
    system "make", "prefix=#{prefix}",
                   "STRIP=/usr/bin/strip",
                   "CC=#{ENV.cc}",
                   "CFLAGS=#{ENV.cflags}",
                   "install"
  end

  def test
    system "#{bin}/htpdate", "-h"
  end
end