aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/since.rb
blob: a12df22967c1ecfd77ae6d07a892b60b9495b2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Since < Formula
  homepage "http://welz.org.za/projects/since"
  url "http://welz.org.za/projects/since/since-1.1.tar.gz"
  sha256 "739b7f161f8a045c1dff184e0fc319417c5e2deb3c7339d323d4065f7a3d0f45"

  def install
    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