aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-06 23:13:49 +0200
committerTim D. Smith2015-04-06 21:01:21 -0700
commitcdfd2395570fd7810302f8da1992bf708300a8a9 (patch)
treeececec1fc9f88d7d6f782837fe60942a6fccf03d /Library
parent89284648694b567dd91e7b09830fa5559137a44b (diff)
downloadhomebrew-cdfd2395570fd7810302f8da1992bf708300a8a9.tar.bz2
since: test added
Closes #38418. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/since.rb23
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