aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dcal.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/dcal.rb b/Library/Formula/dcal.rb
index 3d58ac956..8cbd8ddfa 100644
--- a/Library/Formula/dcal.rb
+++ b/Library/Formula/dcal.rb
@@ -1,13 +1,15 @@
-require 'formula'
-
class Dcal < Formula
- homepage 'http://alexeyt.freeshell.org/'
- url 'http://alexeyt.freeshell.org/code/dcal.c'
- version '0.1.0'
- sha1 '3b1d4ed45ed0192df4841ed9e371c89fe87bdeac'
+ homepage "http://alexeyt.freeshell.org/"
+ url "http://alexeyt.freeshell.org/code/dcal.c"
+ version "0.1.0"
+ sha256 "d637fd27fc8d2a3c567b215fc05ee0fd9d88ba9fc5ddd5f0b07af3b8889dcba7"
def install
system ENV.cxx, "dcal.c", "-o", "dcal"
- bin.install 'dcal'
+ bin.install "dcal"
+ end
+
+ test do
+ system "#{bin}/dcal", "-3"
end
end