1require 'formula' 2 3class Tlsdate < Formula 4 homepage 'https://www.github.com/ioerror/tlsdate/' 5 url 'https://nodeload.github.com/ioerror/tlsdate/tar.gz/master' 6 # This hash will never be correct until we put a tagged version into master 7 # update accordingly until we do a proper release that supports OS X 8 sha1 '2e818eb327af74c6a6c86a8c8b3911e20be9bc0f' 9 version '0.0.6' 10 11 depends_on 'autoconf' => :build 12 depends_on 'automake' => :build 13 depends_on 'libtool' => :build 14 depends_on 'pkg-config' => :build 15 16 def install 17 system "./autogen.sh" 18 system "./configure", "--disable-debug", "--disable-dependency-tracking", 19 "--prefix=#{prefix}" 20 system "make" 21 system "make install" 22 end 23 24 def test 25 system "tlsdate -v -n" 26 end 27end 28