aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-03-03 19:44:05 +0800
committerXu Cheng2015-03-04 00:34:20 +0800
commit337e9bee967c13d66f4692b8f158f397af3fa88d (patch)
treeb2c6aa9e59fcddc8b0fee987549e8d1bf002854c /Library
parentad4cebe2364c2e404dae52c954fae9f0cb1ae3d8 (diff)
downloadhomebrew-337e9bee967c13d66f4692b8f158f397af3fa88d.tar.bz2
chcase: drop ScriptFileFormula
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/chcase.rb20
1 files changed, 13 insertions, 7 deletions
diff --git a/Library/Formula/chcase.rb b/Library/Formula/chcase.rb
index 5b86a8431..046518ff4 100644
--- a/Library/Formula/chcase.rb
+++ b/Library/Formula/chcase.rb
@@ -1,13 +1,19 @@
-require 'formula'
-
-class Chcase < ScriptFileFormula
- homepage 'http://www.primaledge.ca/chcase.html'
- url 'http://www.primaledge.ca/chcase'
- version '2.0'
- sha1 'ec81ad76d85cf9162d422e801092ddc5e0841e39'
+class Chcase < Formula
+ homepage "http://www.primaledge.ca/chcase.html"
+ url "http://www.primaledge.ca/chcase"
+ version "2.0"
+ sha1 "ec81ad76d85cf9162d422e801092ddc5e0841e39"
# add a shebang so that brew properly sets it executable
patch :DATA
+
+ def install
+ bin.install "chcase"
+ end
+
+ test do
+ system bin/"chcase", "-e"
+ end
end
__END__