diff options
| -rw-r--r-- | Library/Formula/since.rb | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Library/Formula/since.rb b/Library/Formula/since.rb index 0329392d2..a12df2296 100644 --- a/Library/Formula/since.rb +++ b/Library/Formula/since.rb @@ -1,13 +1,20 @@ -require 'formula' - class Since < Formula - homepage 'http://welz.org.za/projects/since' - url 'http://welz.org.za/projects/since/since-1.1.tar.gz' - sha1 '67f07e8237d63f846cd8ca60b5a16fc32d4f81a5' + homepage "http://welz.org.za/projects/since" + url "http://welz.org.za/projects/since/since-1.1.tar.gz" + sha256 "739b7f161f8a045c1dff184e0fc319417c5e2deb3c7339d323d4065f7a3d0f45" def install - system "make" - bin.install "since" - man1.install "since.1" + bin.mkpath + man1.mkpath + system "make", "install", "prefix=#{prefix}", "INSTALL=install" + end + + test do + (testpath/"test").write <<-EOS.undent + foo + bar + EOS + system "#{bin}/since", "-z", "test" + assert File.exist? ".since" end end |
